abc50905fa
This adds some new playbooks to be used by the new multinode mixed os job (See topic at [1] for related reviews). Also updates the extras-common and undercloud-deploy roles to allow the mixed-os job to use the correct content provider. [1] https://review.opendev.org/q/topic:oooci_mixed_rhel Change-Id: Ie7a95056bfb0a90d2e6fb6e5ec9c8ed66f8ef31e
70 lines
1.6 KiB
YAML
70 lines
1.6 KiB
YAML
---
|
|
- name: Add the overcloud nodes to the generated inventory
|
|
hosts: undercloud
|
|
gather_facts: true
|
|
tags:
|
|
- overcloud-deploy
|
|
vars:
|
|
inventory: multinode_mixed_os
|
|
roles:
|
|
- tripleo-inventory
|
|
|
|
- name: Create configs on subnodes
|
|
hosts: overcloud_control
|
|
roles:
|
|
- role: repo-setup
|
|
when: not mixed_upgrade|default(false)|bool
|
|
tasks:
|
|
- name: Create a clean hosts file on subnodes
|
|
copy:
|
|
dest: /etc/hosts
|
|
content: |
|
|
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
|
|
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
|
|
become: true
|
|
|
|
- name: Run atop on overcloud node if configured
|
|
include_role:
|
|
name: undercloud-setup
|
|
tasks_from: atop
|
|
|
|
tags:
|
|
- undercloud-setup
|
|
|
|
- name: Prepare the undercloud for installation
|
|
hosts: undercloud
|
|
roles:
|
|
- undercloud-setup
|
|
tags:
|
|
- undercloud-setup
|
|
|
|
- name: Install built packages on subnodes
|
|
hosts: overcloud_control
|
|
vars:
|
|
ib_repo_host: undercloud
|
|
roles:
|
|
- role: repo-setup
|
|
when: not mixed_upgrade|default(false)|bool
|
|
- role: install-built-repo
|
|
when: hostvars['undercloud']['compressed_gating_repo'] is defined and not mixed_upgrade|default(false)|bool
|
|
|
|
tags:
|
|
- build
|
|
|
|
- name: Install the undercloud
|
|
hosts: undercloud
|
|
roles:
|
|
- undercloud-deploy
|
|
|
|
- name: Validate the undercloud
|
|
hosts: undercloud
|
|
roles:
|
|
- validate-undercloud
|
|
|
|
- name: Set Libvirt type
|
|
hosts: overcloud
|
|
roles:
|
|
- set-libvirt-type
|
|
tags:
|
|
- overcloud-deploy
|