Sapan Bhatia | 7419af0 | 2014-12-19 13:24:56 -0500 | [diff] [blame] | 1 | --- |
2 | - hosts: 127.0.0.1 | ||||
Andy Bavier | 09da2e4 | 2015-09-24 14:17:27 -0400 | [diff] [blame] | 3 | connection: local |
Sapan Bhatia | 7419af0 | 2014-12-19 13:24:56 -0500 | [diff] [blame] | 4 | tasks: |
5 | - quantum_network: | ||||
Tony Mack | 3ceb16f | 2015-09-14 00:53:39 +0000 | [diff] [blame] | 6 | auth_url={{ endpoint }} |
Tony Mack | c12ee48 | 2015-09-30 18:40:16 +0000 | [diff] [blame] | 7 | login_username={{ admin_user }} |
8 | login_tenant_name={{ tenant_name }} | ||||
9 | login_password={{ admin_password }} | ||||
Sapan Bhatia | 100f997 | 2014-12-22 01:43:32 -0500 | [diff] [blame] | 10 | tenant_name={{ tenant_name }} |
Sapan Bhatia | 100f997 | 2014-12-22 01:43:32 -0500 | [diff] [blame] | 11 | name={{ name }} |
12 | {% if delete %} | ||||
13 | state=absent | ||||
14 | {% else %} | ||||
15 | state=present | ||||
16 | {% endif %} | ||||
Tony Mack | 80c4254 | 2015-01-07 12:48:37 -0500 | [diff] [blame] | 17 | shared=true |
Sapan Bhatia | 78b79e7 | 2015-05-09 18:16:24 +0200 | [diff] [blame] | 18 | {% if not delete %} |
Sapan Bhatia | 7419af0 | 2014-12-19 13:24:56 -0500 | [diff] [blame] | 19 | - quantum_subnet: |
Tony Mack | 3ceb16f | 2015-09-14 00:53:39 +0000 | [diff] [blame] | 20 | auth_url={{ endpoint }} |
Tony Mack | c12ee48 | 2015-09-30 18:40:16 +0000 | [diff] [blame] | 21 | login_username={{ admin_user }} |
22 | login_tenant_name={{ tenant_name }} | ||||
23 | login_password={{ admin_password }} | ||||
Sapan Bhatia | 100f997 | 2014-12-22 01:43:32 -0500 | [diff] [blame] | 24 | tenant_name={{ tenant_name }} |
Andy Bavier | 09da2e4 | 2015-09-24 14:17:27 -0400 | [diff] [blame] | 25 | name={{ subnet_name }} |
26 | network_name={{ name }} | ||||
Sapan Bhatia | 100f997 | 2014-12-22 01:43:32 -0500 | [diff] [blame] | 27 | {% if delete %} |
28 | state=absent | ||||
29 | {% else %} | ||||
Andy Bavier | 09da2e4 | 2015-09-24 14:17:27 -0400 | [diff] [blame] | 30 | state=present |
Scott Baker | 7ab818f | 2016-01-04 22:50:28 -0800 | [diff] [blame] | 31 | {% if use_vtn %} |
32 | gateway_ip={{ gateway }} | ||||
33 | {% else %} | ||||
Andy Bavier | 09da2e4 | 2015-09-24 14:17:27 -0400 | [diff] [blame] | 34 | no_gateway=true |
Scott Baker | 7ab818f | 2016-01-04 22:50:28 -0800 | [diff] [blame] | 35 | {% endif %} |
Scott Baker | 7ea40ce | 2015-07-20 17:25:20 -0700 | [diff] [blame] | 36 | dns_nameservers=8.8.8.8 |
Tony Mack | 80c4254 | 2015-01-07 12:48:37 -0500 | [diff] [blame] | 37 | cidr={{ cidr }} |
Scott Baker | ea77c3e | 2016-05-25 10:12:31 -0700 | [diff] [blame] | 38 | {% if start_ip %} |
Pingping Lin | fc9256a | 2016-03-03 09:52:24 -0800 | [diff] [blame] | 39 | allocation_pool_start={{ start_ip }} |
Scott Baker | ea77c3e | 2016-05-25 10:12:31 -0700 | [diff] [blame] | 40 | {% endif %} |
41 | {% if end_ip %} | ||||
Pingping Lin | fc9256a | 2016-03-03 09:52:24 -0800 | [diff] [blame] | 42 | allocation_pool_end={{ end_ip }} |
Scott Baker | ea77c3e | 2016-05-25 10:12:31 -0700 | [diff] [blame] | 43 | {% endif %} |
Sapan Bhatia | 100f997 | 2014-12-22 01:43:32 -0500 | [diff] [blame] | 44 | {% endif %} |
Sapan Bhatia | 78b79e7 | 2015-05-09 18:16:24 +0200 | [diff] [blame] | 45 | {% endif %} |