Created
June 26, 2015 04:56
-
-
Save jameswnl/3cfcc3d19f683feef3cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### after running this, manually update the Name tag and assign EIP. Run the bbin.yml playbook | |
- hosts: localhost | |
name: Provision kyoto | |
connection: local | |
gather_facts: False | |
vars: | |
- ami_id: ami-6bceb41c # with 1x500GB EBS | |
- key_name: operations | |
- username: JamesWong | |
- region: eu-west-1 | |
- instance_type: r3.4xlarge | |
- nodename: bbin005 | |
- env: prod | |
- security_groups: [ "rtb_prod_Kyoto", "rtb_prod_default" ] | |
tasks: | |
- name: Provision bbin001x2 | |
ec2: | |
key_name: "{{ key_name }}" | |
group: "{{ security_groups }}" | |
instance_type: "{{ instance_type }}" | |
image: "{{ ami_id }}" | |
region: "{{ region }}" | |
zone: eu-west-1a | |
count: 2 | |
count_tag: | |
Name: "bbin001.{{ region }}.mgnt.cc" | |
assign_public_ip: no | |
vpc_subnet_id: subnet-d5e595b0 | |
wait: true | |
instance_tags: | |
Name: "bbin001.{{ region }}.mgnt.cc" | |
Type: Kyoto | |
Owner: "{{ username }}" | |
Environment: "{{ env }}" | |
Team: platform | |
- name: Provision bbin003x2 | |
ec2: | |
key_name: "{{ key_name }}" | |
group: "{{ security_groups }}" | |
instance_type: "{{ instance_type }}" | |
image: "{{ ami_id }}" | |
region: "{{ region }}" | |
zone: eu-west-1b | |
count: 2 | |
count_tag: | |
Name: "bbin003.{{ region }}.mgnt.cc" | |
assign_public_ip: no | |
vpc_subnet_id: subnet-cd77efba | |
wait: true | |
instance_tags: | |
Name: "bbin003.{{ region }}.mgnt.cc" | |
Type: Kyoto | |
Owner: "{{ username }}" | |
Environment: "{{ env }}" | |
Team: platform | |
- name: Provision bbin005x2 | |
ec2: | |
key_name: "{{ key_name }}" | |
group: "{{ security_groups }}" | |
instance_type: "{{ instance_type }}" | |
image: "{{ ami_id }}" | |
region: "{{ region }}" | |
zone: eu-west-1c | |
count: 1 | |
count_tag: | |
Name: "bbin005.{{ region }}.mgnt.cc" | |
assign_public_ip: no | |
vpc_subnet_id: subnet-ee02b0b7 | |
wait: true | |
instance_tags: | |
Name: "bbin005.{{ region }}.mgnt.cc" | |
Type: Kyoto | |
Owner: "{{ username }}" | |
Environment: "{{ env }}" | |
Team: platform | |
tags: | |
- provision | |
- kyoto | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment