diff options
author | Tim Rozet <trozet@redhat.com> | 2018-10-23 10:50:25 -0400 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2018-10-31 15:44:46 +0000 |
commit | 63792906e8681bef2f0e03ee12ea422af53d9c12 (patch) | |
tree | a8b31b5eba9ddc6e1087caef3ea73888b720b968 /lib | |
parent | f20730a6633a9f910a804d5205fbdbff17e622d0 (diff) |
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 <trozet@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ansible/playbooks/post_deploy_undercloud.yml | 11 |
1 files changed, 11 insertions, 0 deletions
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 |