Skip to main content

A simple ssh wrapper to execute commands for many hosts.

Project description

https://secure.travis-ci.org/oinume/tomahawk.png?branch=0.6-hotfix

Examples

$ tomahawk -h host1,host2,host3 uptime

–> ‘uptime’ command is executed in host1, host2 and host3 as follows.

kazuhiro@host1 % uptime 22:41:27 up 10 days, 3:26, 1 users, load average: 1.11, 1.13, 1.11

kazuhiro@host2 % uptime 22:41:28 up 20 days, 4:26, 2 users, load average: 2.11, 2.13, 2.11

kazuhiro@host3 % uptime 22:41:29 up 30 days, 5:26, 3 users, load average: 3.11, 3.13, 3.11

$ tomahawk-rsync -h host1,host2,host3 test.py /tmp/test.py

–> ‘test.py’ is copied to host1, host2 and host3.

See more usages: http://readthedocs.org/docs/tomahawk/en/latest/

How to contribute

Send a patch

Fork, modify code, add tests, run tests, send pull request.

For developers

Install tomahawk in develop mode.

$ python setup.py develop

Install following modules for testing.

$ pip install flexmock>=0.8 pytest>=2.2 pytest-cov>=1.5

Run tests

$ py.test tests/internal/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
tomahawk-0.6.0.tar.gz (28.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page