summaryrefslogtreecommitdiffstats
path: root/lib/ansible/playbooks
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2018-10-23 10:50:25 -0400
committerTim Rozet <trozet@redhat.com>2018-11-01 00:15:58 +0000
commite985bdd42efa05b9bed7352e36f37f84eed9b34a (patch)
tree123861e468b4922b1d2a86d729f4039bd3d29d52 /lib/ansible/playbooks
parent737708b6e4a3dd6d897c2d8af3459bab060d30c2 (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> (cherry picked from commit 63792906e8681bef2f0e03ee12ea422af53d9c12)
Diffstat (limited to 'lib/ansible/playbooks')
-rw-r--r--lib/ansible/playbooks/post_deploy_undercloud.yml11
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