From e985bdd42efa05b9bed7352e36f37f84eed9b34a Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Tue, 23 Oct 2018 10:50:25 -0400 Subject: Adds SDN Port variables to overcloudrc Functest needs these values to be set in overcloudrc to know which ports to query ODL on. JIRA: APEX-621 Change-Id: I41e34efccedc26edd98c6dd3f45e553ea76db195 Signed-off-by: Tim Rozet (cherry picked from commit 63792906e8681bef2f0e03ee12ea422af53d9c12) --- lib/ansible/playbooks/post_deploy_undercloud.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/ansible/playbooks/post_deploy_undercloud.yml') diff --git a/lib/ansible/playbooks/post_deploy_undercloud.yml b/lib/ansible/playbooks/post_deploy_undercloud.yml index d03f1a1e..8cdfedfe 100644 --- a/lib/ansible/playbooks/post_deploy_undercloud.yml +++ b/lib/ansible/playbooks/post_deploy_undercloud.yml @@ -74,6 +74,17 @@ become: yes become_user: stack with_items: "{{ overcloudrc_files }}" + - name: Write SDN WEB and REST PORT to overcloudrc + lineinfile: + line: "export {{ item[0] }}=8081" + regexp: "{{ item[0] }}" + path: "/home/stack/{{ item[1] }}" + when: sdn != false + become: yes + become_user: stack + with_nested: + - [ 'SDN_CONTROLLER_WEBPORT', 'SDN_CONTROLLER_RESTCONFPORT' ] + - "{{ overcloudrc_files }}" - name: Grab Heat Environment variables shell: "{{ stackrc }} && openstack stack environment show overcloud -f json" register: heat_env -- cgit 1.2.3-korg