Use the UBI8 image for testing

check_undercloud_conf was modified by ca884424f4
This patch unifies check_undercloud_conf to the same standards as other
roles

Change-Id: I6b3027ecb806e9c286b4bd493d2a0eb267e6ddeb
This commit is contained in:
Sergii Golovatiuk 2021-04-14 20:20:59 +02:00
parent 66dfe59880
commit 3b12012697
16 changed files with 97 additions and 20 deletions

View File

@ -5,12 +5,18 @@ driver:
log: true log: true
platforms: platforms:
- name: centos8 - name: ubi8
hostname: centos8 hostname: ubi8
image: centos:8 image: ubi8/ubi-init
pkg_extras: python*-setuptools python*-enum34 python*-netaddr ruby epel-release iputils python*-PyYAML registry:
url: registry.access.redhat.com
dockerfile: Dockerfile
pkg_extras: python*-setuptools python*-pyyaml
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
- /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- /opt/yum.repos.d:/etc/yum.repos.d:rw
privileged: true
environment: &env environment: &env
http_proxy: "{{ lookup('env', 'http_proxy') }}" http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}" https_proxy: "{{ lookup('env', 'https_proxy') }}"
@ -21,6 +27,14 @@ provisioner:
name: ansible name: ansible
options: options:
vvv: true vvv: true
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
vars:
ansible_user: root
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -26,6 +26,7 @@
- '!any' - '!any'
- '!min' - '!min'
- env - env
- name: populate undercloud.conf - name: populate undercloud.conf
copy: copy:
dest: "{{ ansible_env.HOME }}/undercloud.conf" dest: "{{ ansible_env.HOME }}/undercloud.conf"

View File

@ -5,12 +5,18 @@ driver:
log: true log: true
platforms: platforms:
- name: centos8 - name: ubi8
hostname: centos8 hostname: ubi8
image: centos:8 image: ubi8/ubi-init
pkg_extras: python*-setuptools python*-enum34 python*-netaddr ruby epel-release iputils python*-PyYAML registry:
url: registry.access.redhat.com
dockerfile: Dockerfile
pkg_extras: python*-setuptools python*-pyyaml
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
- /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- /opt/yum.repos.d:/etc/yum.repos.d:rw
privileged: true
environment: &env environment: &env
http_proxy: "{{ lookup('env', 'http_proxy') }}" http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}" https_proxy: "{{ lookup('env', 'https_proxy') }}"
@ -21,6 +27,14 @@ provisioner:
name: ansible name: ansible
options: options:
vvv: true vvv: true
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
vars:
ansible_user: root
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -25,6 +25,7 @@
- '!any' - '!any'
- '!min' - '!min'
- env - env
- name: populate undercloud.conf - name: populate undercloud.conf
copy: copy:
dest: "{{ ansible_env.HOME }}/undercloud.conf" dest: "{{ ansible_env.HOME }}/undercloud.conf"

View File

@ -5,12 +5,18 @@ driver:
log: true log: true
platforms: platforms:
- name: centos8 - name: ubi8
hostname: centos8 hostname: ubi8
image: centos:8 image: ubi8/ubi-init
pkg_extras: python*-setuptools python*-enum34 python*-netaddr ruby epel-release iputils python*-PyYAML registry:
url: registry.access.redhat.com
dockerfile: Dockerfile
pkg_extras: python*-setuptools python*-pyyaml
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
- /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- /opt/yum.repos.d:/etc/yum.repos.d:rw
privileged: true
environment: &env environment: &env
http_proxy: "{{ lookup('env', 'http_proxy') }}" http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}" https_proxy: "{{ lookup('env', 'https_proxy') }}"
@ -21,6 +27,14 @@ provisioner:
name: ansible name: ansible
options: options:
vvv: true vvv: true
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
vars:
ansible_user: root
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -26,6 +26,7 @@
- '!any' - '!any'
- '!min' - '!min'
- env - env
- name: populate undercloud.conf - name: populate undercloud.conf
copy: copy:
dest: "{{ ansible_env.HOME }}/undercloud.conf" dest: "{{ ansible_env.HOME }}/undercloud.conf"

View File

@ -5,12 +5,18 @@ driver:
log: true log: true
platforms: platforms:
- name: centos8 - name: ubi8
hostname: centos8 hostname: ubi8
image: centos:8 image: ubi8/ubi-init
pkg_extras: python*-setuptools python*-enum34 python*-netaddr ruby epel-release iputils python*-PyYAML registry:
url: registry.access.redhat.com
dockerfile: Dockerfile
pkg_extras: python*-setuptools python*-pyyaml
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
- /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- /opt/yum.repos.d:/etc/yum.repos.d:rw
privileged: true
environment: &env environment: &env
http_proxy: "{{ lookup('env', 'http_proxy') }}" http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}" https_proxy: "{{ lookup('env', 'https_proxy') }}"
@ -21,6 +27,14 @@ provisioner:
name: ansible name: ansible
options: options:
vvv: true vvv: true
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
vars:
ansible_user: root
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -26,6 +26,7 @@
- '!any' - '!any'
- '!min' - '!min'
- env - env
- name: populate undercloud.conf - name: populate undercloud.conf
copy: copy:
dest: "{{ ansible_env.HOME }}/undercloud.conf" dest: "{{ ansible_env.HOME }}/undercloud.conf"

View File

@ -5,12 +5,18 @@ driver:
log: true log: true
platforms: platforms:
- name: centos8 - name: ubi8
hostname: centos8 hostname: ubi8
image: centos:8 image: ubi8/ubi-init
pkg_extras: python*-setuptools python*-enum34 python*-netaddr ruby epel-release iputils python*-PyYAML registry:
url: registry.access.redhat.com
dockerfile: Dockerfile
pkg_extras: python*-setuptools python*-pyyaml
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
- /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- /opt/yum.repos.d:/etc/yum.repos.d:rw
privileged: true
environment: &env environment: &env
http_proxy: "{{ lookup('env', 'http_proxy') }}" http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}" https_proxy: "{{ lookup('env', 'https_proxy') }}"
@ -21,6 +27,14 @@ provisioner:
name: ansible name: ansible
options: options:
vvv: true vvv: true
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
vars:
ansible_user: root
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -26,6 +26,7 @@
- '!any' - '!any'
- '!min' - '!min'
- env - env
- name: populate undercloud.conf - name: populate undercloud.conf
copy: copy:
dest: "{{ ansible_env.HOME }}/undercloud.conf" dest: "{{ ansible_env.HOME }}/undercloud.conf"

View File

@ -14,6 +14,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
- name: Ensure we get needed facts - name: Ensure we get needed facts
setup: setup:
gather_subset: gather_subset:
@ -21,6 +22,7 @@
- '!any' - '!any'
- '!min' - '!min'
- env - env
# "check_undercloud_conf" tasks # "check_undercloud_conf" tasks
- name: "Retrieve {{ ansible_env.HOME }}/undercloud.conf content" - name: "Retrieve {{ ansible_env.HOME }}/undercloud.conf content"
slurp: slurp: