Skip to content

Commit

Permalink
option for virtual_uc on instack firstnode
Browse files Browse the repository at this point in the history
  • Loading branch information
asyedham committed May 15, 2020
1 parent 33e9b11 commit 4b04f1e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ force_reprovision: false
#do not enable this while running from your desktop
virtual_uc: false
undercloud_host: 172.16.0.2
undercloud_hypervisor: redhat.com
vm_external_interface: eth0
undercloud_local_interface: eth0
virtual_uc_ctlplane_interface: em1
virtual_uc_ctlplane_interface: em2
# RHEL 7 image url
vm_image_url: https://url.corp.redhat.com/rhel-guest-image-7-6-210-x86-64-qcow2
# RHEL 8 image url
Expand Down
9 changes: 9 additions & 0 deletions tasks/load_instackenv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,16 @@
- name: set undercloud hostname
set_fact:
undercloud_hostname: "{{ undercloud_host }}"

- name: first node in instackenv
set_fact:
instack_firstnode: "{{ (instackenv_content.nodes[0].pm_addr | replace('mgmt-','') | replace('-drac', '')) }}"
when: lab_name in ['scale', 'alias']

- name: undercloud hypervisor
set_fact:
instack_firstnode: "{{ undercloud_hypervisor }}"
when: lab_name not in ['scale', 'alias']

- name: set overcloud_instackenv content
set_fact:
Expand Down
6 changes: 0 additions & 6 deletions virtual_undercloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@
ansible_ssh_private_key_file: "{{ ansible_ssh_key }}"
ansible_python_interpreter: "{{ python_interpreter }}"

- name: ignore errors for the task waiting for the undercloud to be available
lineinfile:
path: "{{ ansible_user_dir }}/.infrared/plugins/tripleo-undercloud/tasks/update_and_reboot.yml"
insertafter: "uc_reachable is succeeded"
line: " ignore_errors: true "

- hosts: undercloud
vars:
user: "stack"
Expand Down

0 comments on commit 4b04f1e

Please sign in to comment.