Skip to main content

Easy remote command execution

Project description

Easily run commands on collections of hosts

Install

  • Clone the repository

  • Run python setup.py install or python setup.py develop in a virtualenv

Getting Started

Tues expects a command to execute, followed by the name of a hostname provider and its arguments.

Execute on all hosts in file hostnames.

echo "localhost" > hostnames
tues "ls" file hostnames

Providers

Foreman

Execute on all hosts matching a certain foreman expression.

export FOREMAN_URL="https://user:password@foreman.domain/"
tues "ls" fm "class = my::class"

Nagios (via livestatus)

Execute on all hosts with a given service pattern not in state OK

export NAGIOS_HOST="nagios"
export NAGIOS_LIVESTATUS_SOCKET="/var/lib/nagios3/rw/livestatus"
tues -u root "puppet agent run --test" nagios puppet_status

The values of the environment variables above are the defaults, you do not need to specify them if they match your setup.

Custom Providers

New providers may be added by putting a new executable with a name like “tues-provider-” on your PATH. A provider is expected to return a newline seperated list of hosts.

If the provider returns with an error, the output is considered to be an error message and/or it’s help output. If ‘–help’ is passed through to the provider the output is displayed no matter what exit code is used.

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

tues-1.0.5.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file tues-1.0.5.tar.gz.

File metadata

  • Download URL: tues-1.0.5.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tues-1.0.5.tar.gz
Algorithm Hash digest
SHA256 ab88f110898bf803a1684f4e3fa385a0de99a0fa3f1475de5e5d64fe9c5ae55f
MD5 78863ca0a269c61f80cfabd695123fb0
BLAKE2b-256 c2f080db033f74ae134c56f0b172ecd0b5785f04ff28b738654e365956c51bd8

See more details on using hashes here.

Supported by

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