Sapan Bhatia | d8e129a | 2014-11-19 15:26:11 -0500 | [diff] [blame] | 1 | --- |
| 2 | - hosts: 127.0.0.1 |
Sapan | d3e9617 | 2014-12-03 01:27:56 -0500 | [diff] [blame] | 3 | connection: local |
| 4 | tasks: |
| 5 | - nova_keypair: |
| 6 | state: present |
| 7 | auth_url: {{ endpoint }} |
| 8 | login_username: {{ admin_user }} |
| 9 | login_password: {{ admin_password }} |
| 10 | login_tenant_name: {{ admin_tenant }} |
| 11 | name: {{ key_name }} |
| 12 | public_key: "{{ key.public_key}}" |
Sapan Bhatia | d8e129a | 2014-11-19 15:26:11 -0500 | [diff] [blame] | 13 | |
Sapan | d3e9617 | 2014-12-03 01:27:56 -0500 | [diff] [blame] | 14 | - nova_compute: |
| 15 | state: present |
| 16 | auth_url: {{ endpoint }} |
| 17 | login_username: {{ admin_user }} |
| 18 | login_password: {{ admin_password }} |
| 19 | login_tenant_name: {{ admin_tenant }} |
| 20 | availability_zone: {{ availability_zone }} |
| 21 | name: {{ name }} |
| 22 | image_id: {{ image_id }} |
| 23 | key_name: {{ key_name }} |
| 24 | wait_for: 200 |
| 25 | flavor_id: {{ flavor_id }} |
| 26 | user_data: "{{ user_data }}" |
| 27 | nics: |
| 28 | {% for net in nics %} |
| 29 | - net-id: {{ net }} |
| 30 | {% endfor %} |
Sapan | 28b9c43 | 2014-12-03 00:03:56 -0500 | [diff] [blame] | 31 | |
Sapan | d3e9617 | 2014-12-03 01:27:56 -0500 | [diff] [blame] | 32 | {% if meta %} |
| 33 | meta: |
| 34 | {% for k,v in meta.items() %} |
| 35 | {{ k }} : "{{ v }}" |
| 36 | {% endfor %} |
| 37 | {% endif %} |