Skip to main content

Tiny multi-server automation tool.

Project description

😽 kitten

Build Status Maintainability PyPI - Python Version

Tiny multi-server automation tool.

It's designed to be as simple as possible and play nice with Unix tools.

Screenshot

Install

pip install kitten

Prerequisites

Kitten can get IP addresses from AWS resources for you. For that you'll need to have your AWS credentials set up. You can do that using awscli:

pip install awscli

Then:

aws configure

Examples

Get IP addresses from AWS resources

Use kitten ip with either id, asg, elb or opsworks:

$ kitten ip id i-04703bf3e6fab1926 i-07f234d0f29113ef2
18.135.117.17
24.129.235.48

You can change region using --region.

By default only private IP addresses are printed. Use --public if you prefer public IPs.

Run command on servers

$ kitten run uptime ubuntu 18.105.107.20 34.229.135.48
18.105.107.20	run	uptime
34.229.135.48	run	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

Replace ubuntu with the user used to log in on the servers.

Commands are always run in parallel. Use --threads to specify the maximum number of concurrent connections (defaults to 10).

Use --sudo to run commands via sudo.

Use -i to specify a private key.

Download files

kitten ip opsworks a283c671-d4c1-4dfa-a7c2-823b7f7b2c2c | xargs kitten get /tmp/system.log ubuntu

Upload file

kitten ip asg big-prod-asg | xargs kitten put cat.jpg /root/cat.jpg root

Project details


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.2.10.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kitten-0.2.10-py2.py3-none-any.whl (6.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file kitten-0.2.10.tar.gz.

File metadata

  • Download URL: kitten-0.2.10.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kitten-0.2.10.tar.gz
Algorithm Hash digest
SHA256 9cef5240a75b757045e34bee4f90ae6194640a26e5b0abf8c3065e29cd3cc18b
MD5 88ad5b20763d2174d2e99d3c19f5c5a1
BLAKE2b-256 f5b9321a1ea114d336517889905871c08954126e7e5d5ac0448a06a7ddcd6f4f

See more details on using hashes here.

File details

Details for the file kitten-0.2.10-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for kitten-0.2.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 da3204597096f272227d12096ddd6717609429e0ec3bcdc2545449a6186d2bc1
MD5 707dccd47bd3e5809ed50422858d992e
BLAKE2b-256 189d9c5d41bc50503f3b839d0da59efec375384aa973b0f17c5bc937b864df00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page