fix deprecated syntax
This commit is contained in:
parent
75e07b2c30
commit
670be2873c
1 changed files with 11 additions and 11 deletions
|
@ -795,7 +795,7 @@
|
|||
|
||||
- name: Create roles for additional tenants
|
||||
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
|
||||
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:
|
||||
|
@ -905,14 +905,14 @@
|
|||
auth_url="https://{{controller_publicname}}:35357/v2.0"
|
||||
tenant_name="{{ item }}"
|
||||
name="ext-to-{{ item }}"
|
||||
with_items: all_tenants
|
||||
with_items: "{{all_tenants}}"
|
||||
- name: "Connect router's gateway to the external network"
|
||||
neutron_router_gateway:
|
||||
login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
|
||||
auth_url="https://{{controller_publicname}}:35357/v2.0"
|
||||
router_name="ext-to-{{ item }}"
|
||||
network_name="external"
|
||||
with_items: all_tenants
|
||||
with_items: "{{all_tenants}}"
|
||||
- name: Create a private network for all tenants
|
||||
neutron_network:
|
||||
login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
|
||||
|
@ -961,7 +961,7 @@
|
|||
tenant_name="{{ item }}"
|
||||
router_name="ext-to-{{ item }}"
|
||||
subnet_name="{{ item }}-subnet"
|
||||
with_items: all_tenants
|
||||
with_items: "{{all_tenants}}"
|
||||
|
||||
#################
|
||||
# Security Groups
|
||||
|
@ -983,7 +983,7 @@
|
|||
ethertype: "IPv4"
|
||||
protocol: "tcp"
|
||||
remote_ip_prefix: "0.0.0.0/0"
|
||||
with_items: all_tenants
|
||||
with_items: "{{all_tenants}}"
|
||||
|
||||
- name: "Allow nagios checks"
|
||||
neutron_sec_group:
|
||||
|
@ -1078,7 +1078,7 @@
|
|||
ethertype: "IPv4"
|
||||
protocol: "tcp"
|
||||
remote_ip_prefix: "0.0.0.0/0"
|
||||
with_items: all_tenants
|
||||
with_items: "{{all_tenants}}"
|
||||
|
||||
- name: "Create 'web-443-anywhere' security group"
|
||||
neutron_sec_group:
|
||||
|
@ -1097,7 +1097,7 @@
|
|||
ethertype: "IPv4"
|
||||
protocol: "tcp"
|
||||
remote_ip_prefix: "0.0.0.0/0"
|
||||
with_items: all_tenants
|
||||
with_items: "{{all_tenants}}"
|
||||
|
||||
- name: "Create 'docker-registry-5000-anywhere' security group"
|
||||
neutron_sec_group:
|
||||
|
@ -1116,7 +1116,7 @@
|
|||
ethertype: "IPv4"
|
||||
protocol: "tcp"
|
||||
remote_ip_prefix: "0.0.0.0/0"
|
||||
with_items: all_tenants
|
||||
with_items: "{{all_tenants}}"
|
||||
|
||||
- name: "Create 'wide-open' security group"
|
||||
neutron_sec_group:
|
||||
|
@ -1141,7 +1141,7 @@
|
|||
ethertype: "IPv4"
|
||||
protocol: "udp"
|
||||
remote_ip_prefix: "0.0.0.0/0"
|
||||
with_items: all_tenants
|
||||
with_items: "{{all_tenants}}"
|
||||
|
||||
- name: "Create 'ALL ICMP' security group"
|
||||
neutron_sec_group:
|
||||
|
@ -1158,7 +1158,7 @@
|
|||
ethertype: "IPv4"
|
||||
protocol: "icmp"
|
||||
remote_ip_prefix: "0.0.0.0/0"
|
||||
with_items: all_tenants
|
||||
with_items: "{{all_tenants}}"
|
||||
|
||||
- name: "Create 'keygen-persistent' security group"
|
||||
neutron_sec_group:
|
||||
|
@ -1201,7 +1201,7 @@
|
|||
ethertype: "IPv4"
|
||||
protocol: "tcp"
|
||||
remote_ip_prefix: "0.0.0.0/0"
|
||||
with_items: all_tenants
|
||||
with_items: "{{all_tenants}}"
|
||||
|
||||
|
||||
# Update quota for Copr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue