commander

A deployment library and remote command runner
Download

commander Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Price:
  • FREE
  • Publisher Name:
  • Jeremiah Orem
  • Publisher web site:
  • http://github.com/oremj/

commander Tags


commander Description

commander is two things:- A deployment library modeled after fabric- A remote command runnerImprovements over fabric- Ability to run commands in parallel- Tasks can be called as functions from python- Avoids using a global state to allow for easier parallelism- Switchable ssh backend (in progress)Why fabric is better- Larger community- More mature- More featuresDeployment LibaryA simple deployment examplefrom commander.deploy import hosts@hosts()def hostname(ctx): ctx.remote("hostname")And then from the commandline# commander -l example.py Available commands: hostname# commander example.py hostnameRunning 'hostname' run: hostname out: host1 run: hostname out: host2 run: hostname out: host3Your deployment definitions can also be called directly from another python scriptfrom example import hostnamehostname()And then# python2.6 example2.py run: hostname out: host1 run: hostname out: host2 run: hostname out: host3Remote Command RunnerAfter defining a dictionary of hosts in /etc/commanderconfig.py e.g.,hostgroups = { 'hostgroup1': ,}From the commandline# issue-multi-command hostgroup1 hostname run: hostname out: host1 run: hostname out: host2 run: hostname out: host3Product's homepage


commander Related Software