Skip to content

Commit

Permalink
Merge pull request #19 from blueboxgroup/neutron
Browse files Browse the repository at this point in the history
Re-enable auto-creation of neutron routers and router-interfaces.
  • Loading branch information
echohead committed Sep 10, 2013
2 parents 77fdaf1 + fa9bd3d commit b306366
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 24 deletions.
7 changes: 7 additions & 0 deletions envs/example/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ neutron:
enable_dhcp: "true"
gateway_ip: 172.16.255.1
ip_version: 4
routers:
- name: default
tenant_name: admin
router_interfaces:
- router_name: default
subnet_name: internal
tenant_name: admin

glance:
rev: 563c71c1
Expand Down
48 changes: 24 additions & 24 deletions roles/openstack-setup/tasks/networks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,28 @@
cacert=/opt/stack/ssl/openstack.crt
with_items: neutron.subnets

#- name: neutron routers
# action: |
# neutron_router
# state=present
# name={{ item.name }}
# tenant_name={{ item.tenant_name }}
# admin_state_up=true
# auth_url=https://{{ endpoints.main }}:5001/v2.0/
# login_tenant_name=admin
# login_password={{ secrets.admin_password }}
# cacert=/opt/stack/ssl/openstack.crt
# with_items: neutron.routers
- name: neutron routers
action: |
neutron_router
state=present
name={{ item.name }}
tenant_name={{ item.tenant_name }}
admin_state_up=true
auth_url=https://{{ endpoints.main }}:5001/v2.0/
login_tenant_name=admin
login_password={{ secrets.admin_password }}
cacert=/opt/stack/ssl/openstack.crt
with_items: neutron.routers

#- name: neutron router interfaces
# action: |
# neutron_router_interface
# router_name={{ item.router_name }}
# subnet_name={{ item.subnet_name }}
# tenant_name={{ item.tenant_name }}
# state=present
# auth_url=https://{{ endpoints.main }}:5001/v2.0/
# login_tenant_name=admin
# login_password={{ secrets.admin_password }}
# cacert=/opt/stack/ssl/openstack.crt
# with_items: neutron.router_interfaces
- name: neutron router interfaces
action: |
neutron_router_interface
router_name={{ item.router_name }}
subnet_name={{ item.subnet_name }}
tenant_name={{ item.tenant_name }}
state=present
auth_url=https://{{ endpoints.main }}:5001/v2.0/
login_tenant_name=admin
login_password={{ secrets.admin_password }}
cacert=/opt/stack/ssl/openstack.crt
with_items: neutron.router_interfaces

0 comments on commit b306366

Please sign in to comment.