-
-
Save abeyt/f786fc15c8e61a0d1d78 to your computer and use it in GitHub Desktop.
Revisions
-
geowa4 created this gist
Nov 28, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ [a] {% for a in a_provision.instances %} {{ a.rax_accessipv4 }} {% endfor %} [b] {% for b in b_provision.instances %} {{ b.rax_accessipv4 }} {% endfor %} This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,40 @@ --- - name: a - build request local_action: module: rax username: username api_key: key name: test-a count: 1 flavor: 3 image: a-image-id files: /root/.ssh/authorized_keys: ~/.ssh/id_rsa.pub state: present wait: yes wait_timeout: 1000 networks: - private - public register: a_provision - name: b - build request local_action: module: rax username: username api_key: key name: test-b flavor: 5 image: b-image-id files: /root/.ssh/authorized_keys: ~/.ssh/id_rsa.pub state: present wait: yes wait_timeout: 1000 networks: - private - public register: b_provision - name: add new nodes to hosts configuration template: 'src=hosts.j2 dest=provisioned_hosts'