Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
show_help() {
echo "Usage: s3get OPTIONS"
echo "-r region"
echo "-b bucket"
echo "-f filename"
exit 0
}
heat_template_version: 2016-04-08
parameters:
ssh_keypair_name:
description: Nova keypair name for ssh access to the server
type: string
ssh_private_key:
description: private key to access the created servers
type: string
@aaronmehar
aaronmehar / keybase.md
Created October 3, 2016 11:51
keybase.md

Keybase proof

I hereby claim:

  • I am aaronmehar on github.
  • I am aaronmehar (https://keybase.io/aaronmehar) on keybase.
  • I have a public key whose fingerprint is D6F4 2EA7 2D6F 86F1 1B8F 391A 8D79 DE13 BA19 4D2F

To claim this, I am signing this object:

#!/usr/bin/env bash
r="\033[31m"
b="\033[1;34m"
g="\033[32m"
w="\033[0m"
bold="\033[1m"
underline="\033[4m"
print_info() { echo -e "$b[ INFO ]$w $1"; }
Build a host file
http://docs.ansible.com/ansible/intro_inventory.html
Create a play:
----------------------------------------------
- name: Transfer and execute a script. <--- name of the play
hosts: all <--- which servesr to run this one, in this case, all of them
tasks: <--- start to define the jobs to do
- name: Copy and Execute the script <--- Name the first task
script: /home/user/userScript.sh <--- http://docs.ansible.com/ansible/script_module.html