Tiny tool to manage multiple servers.
Project description
😽 kitten
Tiny tool to manage multiple servers.
Install
pip install kitten
Examples
Get IPs in Auto Scaling group:
$ kitten aws asg my-asg-name
18.105.107.20
34.229.135.48
Run command on all instances in the Auto Scaling group:
$ kitten aws asg my-asg-name | xargs kitten ssh uptime ubuntu
18.105.107.20 uptime
34.229.135.48 uptime
18.105.107.20 17:11:48 up 1 day, 6:02, 0 users, load average: 0.91, 2.99, 3.49
34.229.135.48 17:11:48 up 5 days, 11:19, 0 users, load average: 6.34, 5.94, 5.72
Commands are always run in parallel. Use xargs
's -L
to not overwhelm your host.
Run command on 10 instances at a time:
$ kitten aws asg big-prod-asg | xargs -L 10 kitten ssh --sudo 'service nginx restart' ubuntu
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kitten-0.1.2.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for kitten-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2650c1abf37d933b2f10fc02e7651970c033d7065bc8c2f9ed24ff09b44eb325 |
|
MD5 | 734ff5e7334a2ec5ac810736c9a2fd4a |
|
BLAKE2b-256 | 48bb6e203ee2c719eac83a227f59f56f9fc3f8f730903632143120b1e440ad4e |