summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apex/tests/test_apex_overcloud_deploy.py4
-rw-r--r--lib/ansible/playbooks/post_deploy_undercloud.yml14
2 files changed, 16 insertions, 2 deletions
diff --git a/apex/tests/test_apex_overcloud_deploy.py b/apex/tests/test_apex_overcloud_deploy.py
index 57d74bdd..b598e40e 100644
--- a/apex/tests/test_apex_overcloud_deploy.py
+++ b/apex/tests/test_apex_overcloud_deploy.py
@@ -160,7 +160,7 @@ class TestOvercloudDeploy(unittest.TestCase):
assert_in('/usr/share/openstack-tripleo-heat-templates/environments/'
'storage-environment.yaml', result_cmd)
assert_in('/usr/share/openstack-tripleo-heat-templates/environments'
- '/services-docker/neutron-opendaylight.yaml', result_cmd)
+ '/services/neutron-opendaylight.yaml', result_cmd)
ds['deploy_options']['os_version'] = 'master'
result_cmd = create_deploy_cmd(ds, ns, inv, '/tmp', virt)
assert_in('/usr/share/openstack-tripleo-heat-templates/environments'
@@ -673,6 +673,6 @@ class TestOvercloudDeploy(unittest.TestCase):
output = get_docker_sdn_file(ds_opts)
self.assertEqual(output,
('/usr/share/openstack-tripleo-heat-templates'
- '/environments/services-docker/neutron-opendaylight'
+ '/environments/services/neutron-opendaylight'
'.yaml')
)
diff --git a/lib/ansible/playbooks/post_deploy_undercloud.yml b/lib/ansible/playbooks/post_deploy_undercloud.yml
index 24be1ded..52057dd6 100644
--- a/lib/ansible/playbooks/post_deploy_undercloud.yml
+++ b/lib/ansible/playbooks/post_deploy_undercloud.yml
@@ -74,6 +74,20 @@
become: yes
become_user: stack
with_items: "{{ overcloudrc_files }}"
+ - name: Grab Heat Environment variables
+ shell: "{{ stackrc }} && openstack stack environment show overcloud -f json"
+ register: heat_env
+ become: yes
+ become_user: stack
+ - name: Write SDN controller password to overcloudrc for ODL
+ lineinfile:
+ line: "export SDN_CONTROLLER_PASSWORD={{(heat_env.stdout|from_json)['parameter_defaults']['OpenDaylightPassword']}}"
+ regexp: 'SDN_CONTROLLER_PASSWORD'
+ path: "/home/stack/{{ item }}"
+ when: sdn == 'opendaylight'
+ become: yes
+ become_user: stack
+ with_items: "{{ overcloudrc_files }}"
- name: Register OS Region
shell: "{{ overcloudrc }} && openstack endpoint list -c Region -f json"
register: region