fix deprecated syntax

This commit is contained in:
Kevin Fenzi 2016-07-20 21:19:11 +00:00
parent 75e07b2c30
commit 670be2873c

View file

@ -795,7 +795,7 @@
- name: Create roles for additional tenants - name: Create roles for additional tenants
shell: source /root/keystonerc_admin && keystone role-list |grep ' {{item}} ' || keystone role-create --name {{ item }} shell: source /root/keystonerc_admin && keystone role-list |grep ' {{item}} ' || keystone role-create --name {{ item }}
with_items: all_tenants with_items: "{{all_tenants}}"
- name: Assign users to secondary tentants - name: Assign users to secondary tentants
shell: source /root/keystonerc_admin && keystone user-role-list --user "{{item.user}}" --tenant "{{item.tenant}}" | grep ' {{item.tenant }} ' || keystone user-role-add --user {{item.user}} --role {{item.tenant}} --tenant {{item.tenant}} || true shell: source /root/keystonerc_admin && keystone user-role-list --user "{{item.user}}" --tenant "{{item.tenant}}" | grep ' {{item.tenant }} ' || keystone user-role-add --user {{item.user}} --role {{item.tenant}} --tenant {{item.tenant}} || true
#keystone_user: #keystone_user:
@ -905,14 +905,14 @@
auth_url="https://{{controller_publicname}}:35357/v2.0" auth_url="https://{{controller_publicname}}:35357/v2.0"
tenant_name="{{ item }}" tenant_name="{{ item }}"
name="ext-to-{{ item }}" name="ext-to-{{ item }}"
with_items: all_tenants with_items: "{{all_tenants}}"
- name: "Connect router's gateway to the external network" - name: "Connect router's gateway to the external network"
neutron_router_gateway: neutron_router_gateway:
login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin" login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
auth_url="https://{{controller_publicname}}:35357/v2.0" auth_url="https://{{controller_publicname}}:35357/v2.0"
router_name="ext-to-{{ item }}" router_name="ext-to-{{ item }}"
network_name="external" network_name="external"
with_items: all_tenants with_items: "{{all_tenants}}"
- name: Create a private network for all tenants - name: Create a private network for all tenants
neutron_network: neutron_network:
login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin" login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
@ -961,7 +961,7 @@
tenant_name="{{ item }}" tenant_name="{{ item }}"
router_name="ext-to-{{ item }}" router_name="ext-to-{{ item }}"
subnet_name="{{ item }}-subnet" subnet_name="{{ item }}-subnet"
with_items: all_tenants with_items: "{{all_tenants}}"
################# #################
# Security Groups # Security Groups
@ -983,7 +983,7 @@
ethertype: "IPv4" ethertype: "IPv4"
protocol: "tcp" protocol: "tcp"
remote_ip_prefix: "0.0.0.0/0" remote_ip_prefix: "0.0.0.0/0"
with_items: all_tenants with_items: "{{all_tenants}}"
- name: "Allow nagios checks" - name: "Allow nagios checks"
neutron_sec_group: neutron_sec_group:
@ -1078,7 +1078,7 @@
ethertype: "IPv4" ethertype: "IPv4"
protocol: "tcp" protocol: "tcp"
remote_ip_prefix: "0.0.0.0/0" remote_ip_prefix: "0.0.0.0/0"
with_items: all_tenants with_items: "{{all_tenants}}"
- name: "Create 'web-443-anywhere' security group" - name: "Create 'web-443-anywhere' security group"
neutron_sec_group: neutron_sec_group:
@ -1097,7 +1097,7 @@
ethertype: "IPv4" ethertype: "IPv4"
protocol: "tcp" protocol: "tcp"
remote_ip_prefix: "0.0.0.0/0" remote_ip_prefix: "0.0.0.0/0"
with_items: all_tenants with_items: "{{all_tenants}}"
- name: "Create 'docker-registry-5000-anywhere' security group" - name: "Create 'docker-registry-5000-anywhere' security group"
neutron_sec_group: neutron_sec_group:
@ -1116,7 +1116,7 @@
ethertype: "IPv4" ethertype: "IPv4"
protocol: "tcp" protocol: "tcp"
remote_ip_prefix: "0.0.0.0/0" remote_ip_prefix: "0.0.0.0/0"
with_items: all_tenants with_items: "{{all_tenants}}"
- name: "Create 'wide-open' security group" - name: "Create 'wide-open' security group"
neutron_sec_group: neutron_sec_group:
@ -1141,7 +1141,7 @@
ethertype: "IPv4" ethertype: "IPv4"
protocol: "udp" protocol: "udp"
remote_ip_prefix: "0.0.0.0/0" remote_ip_prefix: "0.0.0.0/0"
with_items: all_tenants with_items: "{{all_tenants}}"
- name: "Create 'ALL ICMP' security group" - name: "Create 'ALL ICMP' security group"
neutron_sec_group: neutron_sec_group:
@ -1158,7 +1158,7 @@
ethertype: "IPv4" ethertype: "IPv4"
protocol: "icmp" protocol: "icmp"
remote_ip_prefix: "0.0.0.0/0" remote_ip_prefix: "0.0.0.0/0"
with_items: all_tenants with_items: "{{all_tenants}}"
- name: "Create 'keygen-persistent' security group" - name: "Create 'keygen-persistent' security group"
neutron_sec_group: neutron_sec_group:
@ -1201,7 +1201,7 @@
ethertype: "IPv4" ethertype: "IPv4"
protocol: "tcp" protocol: "tcp"
remote_ip_prefix: "0.0.0.0/0" remote_ip_prefix: "0.0.0.0/0"
with_items: all_tenants with_items: "{{all_tenants}}"
# Update quota for Copr # Update quota for Copr