fix loss of group vars definition 43/39243/1
authorchigang <chigang@huawei.com>
Mon, 14 Aug 2017 09:26:19 +0000 (17:26 +0800)
committerchigang <chigang@huawei.com>
Mon, 14 Aug 2017 09:26:19 +0000 (17:26 +0800)
JIRA:-
TASK [moon : configure moon.conf for moon slave]
fatal: [host5]: FAILED! => {"failed": true, "msg": "'moon_slave_name' is undefined"}
https://build.opnfv.org/ci/job/compass-deploy-virtual-daily-master/3311/console

Change-Id: Ic6211ef7017e0ed794718f1705ba566af370ea49
Signed-off-by: chigang <chigang@huawei.com>
deploy/compass_conf/templates/ansible_installer/openstack_ocata/vars/HA-ansible-multinodes.tmpl

index 3e68e5a..d0d0b7d 100755 (executable)
@@ -47,7 +47,6 @@ enable_secgroup: $getVar('enable_secgroup', True)
 enable_fwaas: $getVar('enable_fwaas', True)
 enable_vpnaas: $getVar('enable_vpnaas', True)
 odl_l3_agent: $getVar('odl_l3_agent', 'Disable')
-moon: $getVar('moon', 'Disable')
 ha_network: $getVar('ha_network', 'Disable')
 onos_nic: $getVar('onos_nic', 'eth2')
 onos_sfc: $getVar('onos_sfc', 'Disable')
@@ -232,3 +231,10 @@ odl_base_features: ['config', 'standard', 'region', 'package', 'kar', 'ssh', 'ma
 odl_extra_features: ['odl-l2switch-switch', 'odl-ovsdb-plugin', 'odl-ovsdb-openstack', 'odl-ovsdb-northbound','odl-dlux-core', 'odl-restconf-all', 'odl-mdsal-clustering', 'odl-openflowplugin-flow-services', 'odl-netconf-connector', 'odl-netconf-connector-ssh', 'jolokia-osgi']
 odl_features: "{{ odl_base_features + odl_extra_features }}"
 odl_api_port: 8080
+
+#set moon_cfg = $getVar('moon_cfg', {})
+moon_master: $moon_cfg.master.flag
+moon_slave: $moon_cfg.slave.flag
+moon_slave_name: $moon_cfg.slave.name
+moon_master_ip: $moon_cfg.slave.master_ip
+