aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible
diff options
context:
space:
mode:
authorliyuenan <liyuenan@huawei.com>2017-01-12 11:28:13 +0800
committerYuenan Li <liyuenan@huawei.com>2017-01-12 03:54:38 +0000
commite45503dc52311ffa7ddb5fb7b25caac1f8743de5 (patch)
tree73ed0b4d0760ad6a04df9f69d313613cadfd5459 /deploy/adapters/ansible
parent7dcf28a3095568291f3f8d62a9dabcd23c762977 (diff)
FIX external net create
JIRA: - The dictionary public_net_info in network.yml had changed to pass the yamllint: public_net_info: enable: True change to: public_net_info: enable: "True" Because of that, the public_net_info.enable in group_var/all had changed. 'public_net_info': {..., 'enable': True, ...} change to: 'public_net_info': {..., 'enable': 'True', ...} So the conditionals in roles/ext-network/tasks/main.yml should be changed, otherwise the ext-net can not be created. Change-Id: I7b4aeb1d0edec0ad77252849704bdf3055adfa5a Signed-off-by: liyuenan <liyuenan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible')
-rw-r--r--deploy/adapters/ansible/roles/ext-network/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/ext-network/tasks/main.yml b/deploy/adapters/ansible/roles/ext-network/tasks/main.yml
index 0fc3ee3a..d212dd99 100644
--- a/deploy/adapters/ansible/roles/ext-network/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/ext-network/tasks/main.yml
@@ -29,7 +29,7 @@
--provider:network_type {{ public_net_info.type }} \
--provider:physical_network {{ public_net_info.provider_network }} \
--router:external "True"
- when: public_net_info.enable == True
+ when: public_net_info.enable == "True"
and inventory_hostname == groups['controller'][0]
- name: create external subnet
@@ -42,5 +42,5 @@
--allocation-pool \
start={{ public_net_info.floating_ip_start }},end={{ public_net_info.floating_ip_end }} \
{{ public_net_info.network }} {{ public_net_info.floating_ip_cidr }}
- when: public_net_info.enable == True
+ when: public_net_info.enable == "True"
and inventory_hostname == groups['controller'][0]