metrics-for-apps: update hosts ocp4-place-ignitionfiles playbook targets

to include new prod ocp hosts

Signed-off-by: David Kirwan <dkirwan@redhat.com>
This commit is contained in:
David Kirwan 2021-09-02 11:01:02 +09:00
parent 7b9e35a562
commit f042ec7a4d

View file

@ -16,7 +16,7 @@
# - 192.168.2.2 # - 192.168.2.2
# gateway # gateway
# deploy_host: # http server serving ignition files # deploy_host: # http server serving ignition files
- hosts: os_control_stg:ocp_controlplane_stg:ocp_workers_stg:ocp_boostrap_stg:ocp_vms_stg - hosts: os_control_stg:os_control:ocp_controlplane_stg:ocp_controlplane:ocp_bootstrap:ocp_boostrap_stg:ocp_vms_stg:ocp_vms
user: root user: root
gather_facts: false gather_facts: false
@ -65,7 +65,7 @@
tags: tags:
- ignition - ignition
- repo - repo
when: inventory_hostname in groups['os_control_stg'] when: inventory_hostname in groups['os_control_stg','os_control']
- name: == OCP KVM provisioning == Downloading RHCOS deploy files - name: == OCP KVM provisioning == Downloading RHCOS deploy files
get_url: get_url:
@ -91,18 +91,18 @@
register: vm_exists register: vm_exists
tags: tags:
- kvm_deploy - kvm_deploy
when: inventory_hostname in groups['ocp_vms_stg'] when: inventory_hostname in groups['ocp_vms_stg','ocp_vms']
- block: - block:
- name: ensure the lv for the guest is made - name: ensure the lv for the guest is made
lvol: lv={{ inventory_hostname }} vg={{ volgroup }} size={{ lvm_size }} state=present lvol: lv={{ inventory_hostname }} vg={{ volgroup }} size={{ lvm_size }} state=present
delegate_to: "{{ vmhost }}" delegate_to: "{{ vmhost }}"
tags: tags:
- kvm_deploy - kvm_deploy
when: inventory_hostname in groups['ocp_vms_stg'] when: inventory_hostname in groups['ocp_vms_stg','ocp_vms']
- name: == OCP KVM provisioning == Deploying the OCP Virtual Guest[s] - name: == OCP KVM provisioning == Deploying the OCP Virtual Guest[s]
command: "{{ virt_install_command }}" command: "{{ virt_install_command }}"
delegate_to: "{{ vmhost }}" delegate_to: "{{ vmhost }}"
tags: tags:
- kvm_deploy - kvm_deploy
when: inventory_hostname in groups['ocp_vms_stg'] when: inventory_hostname in groups['ocp_vms_stg','ocp_vms']
when: vm_exists is failed when: vm_exists is failed