Skip to content

Instantly share code, notes, and snippets.

@marcy-terui
Created April 30, 2015 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcy-terui/aceaab68584183adb89d to your computer and use it in GitHub Desktop.
Save marcy-terui/aceaab68584183adb89d to your computer and use it in GitHub Desktop.
---
includes:
settings:
command_base: bundle exec knife
option_sets:
- name: ec2
options:
hint: ec2
- name: prod
options:
ssh-user: ec2-user
identity-file: ~/.ssh/xxx.pem
sudo:
commands:
- name: bootstrap_ap1
command: zero bootstrap 52.xx.xxx.xxx
condition:
option_sets:
- prod
- ec2
options:
environment: production
node-name: XXX-AP1
- name: bootstrap_ap2
command: zero bootstrap 52.xx.xxx.xxx
condition:
option_sets:
- prod
- ec2
options:
environment: production
node-name: xxx-AP2
- name: converge_prod
command: zero chef_client
condition: chef_environment:production
option_sets:
- prod
options:
attribute: ec2.public_ipv4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment