-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_containers.yml
43 lines (36 loc) · 1.72 KB
/
install_containers.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
- name: Install covarage
hosts: "{{ test.install.hosts }}"
become: true
tasks:
- name: Set install vars
set_fact:
dfg: "{{ test.dfg }}"
install_rhos_repos: "{{ test.install.rhos.repos }}"
- name: set os_version fact
set_fact:
os_version: "{{ test.openstack.version | openstack_release }}"
- name: Load variables from container environment file
include_vars:
file: "{{ inventory_dir }}/overcloud_container_image_prepare.yaml"
name: container_env
- name: override registry parameters from CLI
set_fact:
container_env:
container-image-prepare:
namespace: "{{ test.get('registry', {}).namespace|default(container_env['container-image-prepare'].namespace) }}"
prefix: "{{ test.get('registry', {}).prefix|default(container_env['container-image-prepare'].prefix) }}"
tag: "{{ test.get('registry', {}).tag|default(container_env['container-image-prepare'].tag) }}"
- name: set docker_registry_undercloud facts
set_fact:
docker_registry_undercloud: "{{ ansible_br_ctlplane['ipv4']['address'] }}:8787"
docker_registry_undercloud_namespace: "{{ test.get('registry', {}).namespace|default('rhosp' + os_version) }}"
- name: set required facts for "container image prepare"
set_fact:
container_image:
openstack_version: "{{ os_version }}"
basereg_relative: "{{ test.get('registry', {}).namespace|default(False)|ternary(test.get('registry', {}).namespace, ''.join(container_env['container-image-prepare']['namespace'].split('/')[1:])) }}"
- name: Install coverage
import_role:
name: openstack-coverage
tasks_from: install_containers.yml