Created
March 11, 2016 16:51
-
-
Save omgjlk/fee1554c15d11b9085f5 to your computer and use it in GitHub Desktop.
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 characters
subnets: | |
- name: internal_v4 | |
network_name: internal | |
ip_version: 4 | |
cidr: 172.16.255.0/24 | |
pool_start: 172.16.255.2 | |
pool_end: 172.16.255.254 | |
enable_dhcp: "true" | |
gateway_ip: 172.16.255.1 | |
dns_nameservers: '8.8.8.8,8.8.4.4' | |
- name: internal_v6 | |
network_name: internal | |
ip_version: 6 | |
cidr: 2db8:1::/64 | |
enable_dhcp: "true" | |
gateway_ip: 2db8:1::1 | |
ipv6_address_mode: dhcpv6-stateless | |
ipv6_ra_mode: dhcpv6-stateless | |
dns_nameservers: '2001:4860:4860::8888,2001:4860:4860::8844' | |
- name: external | |
network_name: external | |
ip_version: 4 | |
cidr: 192.168.255.0/24 | |
enable_dhcp: "false" | |
gateway_ip: 192.168.255.1 | |
dns_nameservers: '8.8.8.8,8.8.4.4' | |
- name: neutron subnets | |
os_subnet: | |
name: "{{ item.name }}" | |
network_name: "{{ item.network_name }}" | |
cidr: "{{ item.cidr }}" | |
enable_dhcp: "{{ item.enable_dhcp }}" | |
gateway_ip: "{{ item.gateway_ip }}" | |
ip_version: "{{ item.ip_version }}" | |
ipv6_ra_mode: "{{ item.ipv6_ra_mode | default(omit) }}" | |
ipv6_address_mode: "{{ item.ipv6_ra_mode | default(omit) }}" | |
dns_nameservers: "{{ item.dns_nameservers|default(omit) }}" | |
allocation_pool_start: "{{ item.pool_start|default(omit) }}" | |
allocation_pool_end: "{{ item.pool_end|default(omit) }}" | |
state: present | |
auth: | |
auth_url: "{{ endpoints.auth_uri }}" | |
project_name: admin | |
username: admin | |
password: "{{ secrets.admin_password }}" | |
with_items: "{{ neutron.subnets }}" | |
run_once: true | |
task path: /Users/jkeating/src/ursula/roles/openstack-setup/tasks/networks.yml:17 | |
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'network_name' | |
failed: [173.247.105.11] => (item={'name': 'internal_v4', 'enable_dhcp': 'true', 'pool_end': '172.16.255.254', | |
'dns_nameservers': '8.8.8.8,8.8.4.4', 'pool_start': '172.16.255.2', 'gateway_ip': '172.16.255.1', 'ip_version': 4, | |
'cidr': '172.16.255.0/24', 'network_name': 'internal'}) => | |
{"failed": true, "item": {"cidr": "172.16.255.0/24", "dns_nameservers": "8.8.8.8,8.8.4.4", "enable_dhcp": "true", | |
"gateway_ip": "172.16.255.1", "ip_version": 4, "name": "internal_v4", "network_name": "internal", | |
"pool_end": "172.16.255.254", "pool_start": "172.16.255.2"}, "parsed": false} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment