Tiny tool to manage multiple servers.
Project description
😽 kitten
Tiny tool to manage multiple servers.
Install
pip install kitten
If you haven't yet, install awscli
and configure AWS credentials:
pip install awscli
aws configure
Examples
Get IPs in Auto Scaling group:
$ kitten ip asg my-asg-name
18.105.107.20
34.229.135.48
Run command on all instances in the Auto Scaling group:
$ kitten ip asg my-asg-name | xargs kitten run 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 --threads
to specify the maximum number of concurrent connections (defaults to 10).
Run command on instances using 50 connections:
$ kitten ip asg big-prod-asg | xargs kitten run --threads 50 --sudo 'service nginx restart' ubuntu
Download file:
$ kitten ip elb big-prod-elb | xargs kitten get /var/log/system.log ubuntu
Upload file:
$ kitten ip elb big-prod-elb | xargs kitten put nginx.conf /etc/init/nginx.conf 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.13.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for kitten-0.1.13-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52303a858fafd0fd73c44392b7a802fce5e46ab674cb0a025cad71d56e76a3d3 |
|
MD5 | 4caf28e1458fffb981aeafa755bd9603 |
|
BLAKE2b-256 | e9397f20ab30b635f0c05cc3c16335ec24b4c57b0f38bf7c589898177f235737 |