Skip to content

v1.0.0 - First release

Compare
Choose a tag to compare
@odino odino released this 17 Apr 23:35
· 27 commits to master since this release

With this first release godo is born :)

~/projects/namshi/godo (master ✔) ᐅ ./build/godo-v1.0.0-linux_amd64
NAME:
   godo - Stop SSHing into your server and run the same old commands. Automate. Automate. Automate.

USAGE:
   godo [global options] command [command options] [arguments...]

VERSION:
   v1.0.0

AUTHOR(S): 

COMMANDS:
   help, h  Shows a list of commands or help for one command
   uptime   Retrieves uptime info for all machines
   slow-queries mysql-log -n 10
   nginx-logs   sudo tail -10f /var/log/nginx/access.log

GLOBAL OPTIONS:
   --config, -c "./godo.yml"    configuration file to be used for running godo [$GODO_CONFIG]
   --help, -h           show help
   --version, -v        print the version

We can currently do most of the stuff we need to implement, and other things are noted down in the issues.

You can already define your configuration

servers:
  web1:
    address: "xxx.xxx.xx.xxx:22"
    user:    "me"
  web2:
    address: "xxx.xxx.xx.xxx:22"
    user:    "me"
  db:
    address: "xxx.xxx.xx.xxx:22"
    tunnel:  "tunnel.yourcompany.com:22"
    user:    "me"
groups:
  all: [web, db]
  web: [web1, web2]
commands:
  uptime:
    target:       all
    exec:         "uptime"  
    description:  "Retrieves uptime info for all machines"  
  nginx-logs:
    target: web
    exec: "sudo tail -10f /var/log/nginx/access.log"
hostfile: "/home/YOU/.ssh/known_hosts"
timeout: 5

and then run godo:

godo uptime

godo uptime @ web

godo uptime @ web1

godo uptime @ all

Feel free to open an issue, but have a look at the gotchas section first ;-)