Use the UBI8 image for testing

This change converts our use of CentOS7/88 to UBI8, which should
provide a better test environment which will match that of
production for future releases of TripleO. While this image change
will better match production clouds thanks in large part to TCIB,
it will also remove our use of docker.io (dockerhub) which fraught
with peril due to the ongoing API rate limits saga.

Story: 2006061
Task: 34774

Change-Id: I067046e5fd4d56cd88712f553e25a61db60ced7f
Signed-off-by: Kevin Carter <kecarter@redhat.com>
This commit is contained in:
Kevin Carter 2020-09-15 14:49:58 -05:00
parent f9ed14f58c
commit c28dde7469
No known key found for this signature in database
GPG Key ID: CE94BD890A47B20A
68 changed files with 848 additions and 1302 deletions

View File

@ -5,33 +5,30 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip 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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -25,6 +25,9 @@ PyYAML [platform:rpm !platform:rhel-8 !platform:centos-8]
python3-pyyaml [platform:rpm !platform:rhel-7 !platform:centos-7] python3-pyyaml [platform:rpm !platform:rhel-7 !platform:centos-7]
python3-dnf [platform:rpm !platform:rhel-7 !platform:centos-7] python3-dnf [platform:rpm !platform:rhel-7 !platform:centos-7]
# RH Mechanisms
python-rhsm-certificates [platform:redhat]
# SELinux cent7 # SELinux cent7
libselinux-python3 [platform:rpm !platform:rhel-8 !platform:centos-8] libselinux-python3 [platform:rpm !platform:rhel-8 !platform:centos-8]
libsemanage-python3 [platform:redhat !platform:rhel-8 !platform:centos-8] libsemanage-python3 [platform:redhat !platform:rhel-8 !platform:centos-8]

View File

@ -5,33 +5,31 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -5,33 +5,31 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -5,33 +5,31 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -44,7 +44,7 @@
block: block:
- name: Fetch latest repo version - name: Fetch latest repo version
uri: uri:
url: https://trunk.rdoproject.org/{{ (ansible_distribution | lower) }}{{ ansible_distribution_major_version }}/current/delorean.repo url: https://trunk.rdoproject.org/centos{{ ansible_distribution_major_version }}/current/delorean.repo
return_content: true return_content: true
register: tripleo_packages register: tripleo_packages

View File

@ -5,33 +5,31 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -5,33 +5,31 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -5,33 +5,31 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -5,33 +5,31 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -5,37 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory: inventory:
hosts: hosts:
all: all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
vars: vars:
ansible_user: root ansible_user: root
log: true log: true

View File

@ -5,37 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory: inventory:
hosts: hosts:
all: all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
vars: vars:
ansible_user: root ansible_user: root
log: true log: true

View File

@ -5,37 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory: inventory:
hosts: hosts:
all: all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
vars: vars:
ansible_user: root ansible_user: root
log: true log: true

View File

@ -5,37 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory: inventory:
hosts: hosts:
all: all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
vars: vars:
ansible_user: root ansible_user: root
log: true log: true

View File

@ -5,34 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,34 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,13 +5,18 @@ driver:
log: true log: true
platforms: platforms:
- name: centos8 - name: ubi8
hostname: centos8 hostname: ubi8
image: centos:8 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python*-setuptools pkg_extras: python*setuptools
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') }}"
@ -20,6 +25,12 @@ platforms:
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,34 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,34 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,34 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,34 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,21 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos8 - name: ubi8
hostname: centos8 hostname: ubi8
image: centos:8 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python*-setuptools pkg_extras: python*setuptools
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') }}"
ulimts: &ulimit ulimits: &ulimit
- host - host
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,13 +5,18 @@ driver:
log: true log: true
platforms: platforms:
- name: centos8 - name: ubi8
hostname: centos8 hostname: ubi8
image: centos:8 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python*-setuptools pkg_extras: python*setuptools
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') }}"
@ -20,6 +25,12 @@ platforms:
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,34 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit
- name: centos8 - host
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
provisioner: provisioner:
name: ansible name: ansible
inventory: inventory:
hosts: hosts:
all: all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
vars: vars:
all_nodes_extra_map_data: {} all_nodes_extra_map_data: {}
cloud_domain: localdomain cloud_domain: localdomain
@ -258,8 +256,7 @@ provisioner:
validate_ntp: true validate_ntp: true
Standalone: Standalone:
hosts: hosts:
centos8: {} ubi8: {}
centos7: {}
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,34 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,37 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory: inventory:
hosts: hosts:
all: all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
vars: vars:
all_nodes_extra_map_data: {} all_nodes_extra_map_data: {}
cloud_domain: localdomain cloud_domain: localdomain
@ -261,8 +256,7 @@ provisioner:
validate_ntp: true validate_ntp: true
Standalone: Standalone:
hosts: hosts:
centos8: {} ubi8: {}
centos7: {}
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,40 +5,35 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml
name: ansible
inventory: inventory:
hosts: hosts:
all: all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
vars: vars:
# use a tmp hosts path since /etc/hosts isn't writeable in the # use a tmp hosts path since /etc/hosts isn't writeable in the
# molecule test containers # molecule test containers
@ -62,14 +57,10 @@ provisioner:
children: children:
allovercloud: allovercloud:
hosts: hosts:
centos8: ubi8:
hostname_resolve_network: ctlplane hostname_resolve_network: ctlplane
ctlplane_ip: 192.168.24.1 ctlplane_ip: 192.168.24.1
internal_api_ip: 172.17.0.1 internal_api_ip: 172.17.0.1
centos7:
hostname_resolve_network: ctlplane
ctlplane_ip: 192.168.24.2
internal_api_ip: 172.17.0.2
scenario: scenario:
test_sequence: test_sequence:

View File

@ -26,12 +26,9 @@
register: hosts_result register: hosts_result
check_mode: true check_mode: true
loop: loop:
- 192.168.24.2 centos7.localdomain centos7 - 192.168.24.1 ubi8.localdomain ubi8
- 192.168.24.2 centos7.ctlplane.localdomain centos7.ctlplane - 192.168.24.1 ubi8.ctlplane.localdomain ubi8.ctlplane
- 172.17.0.2 centos7.internalapi.localdomain centos7.internalapi - 172.17.0.1 ubi8.internalapi.localdomain ubi8.internalapi
- 192.168.24.1 centos8.localdomain centos8
- 192.168.24.1 centos8.ctlplane.localdomain centos8.ctlplane
- 172.17.0.1 centos8.internalapi.localdomain centos8.internalapi
- name: slurp /tmp/hosts - name: slurp /tmp/hosts
slurp: slurp:

View File

@ -5,42 +5,34 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
easy_install: command: /sbin/init
- pip capabilities:
- ALL
volumes:
- /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') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -5,42 +5,34 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
easy_install: command: /sbin/init
- pip capabilities:
- ALL
volumes:
- /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') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -5,33 +5,31 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -5,33 +5,31 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -5,33 +5,31 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -5,30 +5,31 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit
- name: centos8 - host
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -5,46 +5,36 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
easy_install: command: /sbin/init
- pip capabilities:
- ALL
volumes:
- /dev:/dev
- /lib/modules:/lib/modules
- /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') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /dev:/dev
- /lib/modules:/lib/modules
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /dev:/dev
- /lib/modules:/lib/modules
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -5,46 +5,36 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
easy_install: command: /sbin/init
- pip capabilities:
- ALL
volumes:
- /dev:/dev
- /lib/modules:/lib/modules
- /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') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /dev:/dev
- /lib/modules:/lib/modules
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /dev:/dev
- /lib/modules:/lib/modules
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: *ulimit
provisioner: provisioner:
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
name: ansible name: ansible
log: true log: true
env: env:

View File

@ -5,47 +5,37 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
easy_install: command: /sbin/init
- pip capabilities:
- ALL
volumes:
- /dev:/dev
- /lib/modules:/lib/modules
- /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') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /dev:/dev
- /lib/modules:/lib/modules
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /dev:/dev
- /lib/modules:/lib/modules
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,61 +5,41 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
easy_install:
- pip
environment: &env
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
command: >- command: >-
/sbin/init && /sbin/init &&
/bin/mkdir -p /var/run/dbus && /bin/mkdir -p /var/run/dbus &&
/usr/bin/dbus-uuidgen > /var/lib/dbus/machine-id && /usr/bin/dbus-uuidgen > /var/lib/dbus/machine-id &&
/usr/bin/dbus-daemon --config-file=/usr/share/dbus-1/system.conf /usr/bin/dbus-daemon --config-file=/usr/share/dbus-1/system.conf
capabilities: capabilities:
- ALL - ALL
volumes: volumes:
- /dev:/dev - /dev:/dev
- /lib/modules:/lib/modules - /lib/modules:/lib/modules
- /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 privileged: true
environment: &env
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
# TODO(cloudnull): when RDO has centos8 repos this test node should be re-enabled.
#
# - name: centos8
# hostname: centos8
# image: centos:8
# dockerfile: Dockerfile
# pkg_extras: python*-setuptools
# environment:
# http_proxy: "{{ lookup('env', 'http_proxy') }}"
# https_proxy: "{{ lookup('env', 'https_proxy') }}"
# command: >-
# /sbin/init &&
# /bin/mkdir -p /var/run/dbus &&
# /usr/bin/dbus-uuidgen > /var/lib/dbus/machine-id &&
# /usr/bin/dbus-daemon --config-file=/usr/share/dbus-1/system.conf
#
# tmpfs:
# - /run
# - /tmp
# capabilities:
# - ALL
# volumes:
# - /dev:/dev
# - /lib/modules:/lib/modules
# privileged: true
# ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -1,37 +0,0 @@
# Molecule managed
# Copyright 2019 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install sudo python*-devel python*-dnf bash {{ item.pkg_extras | default('') }} && dnf clean all; \
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl python-setuptools bash {{ item.pkg_extras | default('') }} && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml {{ item.pkg_extras | default('') }} && zypper clean -a; \
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates {{ item.pkg_extras | default('') }}; \
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates {{ item.pkg_extras | default('') }} && xbps-remove -O; fi
{% for pkg in item.easy_install | default([]) %}
# install pip for centos where there is no python-pip rpm in default repos
RUN easy_install {{ pkg }}
{% endfor %}
CMD ["sh", "-c", "while true; do sleep 10000; done"]

View File

@ -1,47 +0,0 @@
---
# Copyright 2019 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
- name: Converge
hosts: all
tasks:
- name: Import TripleO packages role (step|0)
include_role:
name: tripleo_packages
tasks_from: upgrade.yml
vars:
step: 0
- name: Import TripleO packages role (step|2)
include_role:
name: tripleo_packages
tasks_from: upgrade.yml
vars:
step: 2
- name: Import TripleO packages role (step|3)
include_role:
name: tripleo_packages
tasks_from: upgrade.yml
vars:
step: 3
- name: Import TripleO packages role (step|4)
include_role:
name: tripleo_packages
tasks_from: upgrade.yml
vars:
step: 4

View File

@ -1,72 +0,0 @@
---
driver:
name: podman
log: true
platforms:
- name: centos7
hostname: centos7
image: centos:7
dockerfile: Dockerfile
pkg_extras: python-setuptools openvswitch numactl-libs* unbound-libs*
easy_install:
- pip
environment: &env
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /dev:/dev
- /lib/modules:/lib/modules
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: &ulimit
- host
# TODO(cloudnull): when RDO has centos8 repos this test node should be re-enabled.
#
# - name: centos8
# hostname: centos8
# image: centos:8
# dockerfile: Dockerfile
# pkg_extras: python*-setuptools openvswitch 'dnf-command(download)' unbound-libs*
# environment:
# http_proxy: "{{ lookup('env', 'http_proxy') }}"
# https_proxy: "{{ lookup('env', 'https_proxy') }}"
# command: /sbin/init
#
# tmpfs:
# - /run
# - /tmp
# capabilities:
# - ALL
# volumes:
# - /dev:/dev
# - /lib/modules:/lib/modules
# privileged: true
# ulimits: *ulimit
provisioner:
name: ansible
log: true
env:
ANSIBLE_STDOUT_CALLBACK: yaml
ANSIBLE_ROLES_PATH: "${ANSIBLE_ROLES_PATH:-/usr/share/ansible/roles}:${HOME}/zuul-jobs/roles"
ANSIBLE_LIBRARY: "${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}"
ANSIBLE_FILTER_PLUGINS: "${ANSIBLE_FILTER_PLUGINS:-/usr/share/ansible/plugins/filter}"
ANSIBLE_ACTION_PLUGINS: "${ANSIBLE_ACTION_PLUGINS:-/usr/share/ansible/plugins/action}"
scenario:
test_sequence:
- destroy
- create
- prepare
- converge
- verify
- destroy
verifier:
name: testinfra

View File

@ -1,26 +0,0 @@
---
# Copyright 2019 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
- name: Prepare
hosts: all
tasks:
- include_role:
name: test_deps
vars:
test_deps_setup_tripleo: true
test_deps_extra_packages:
- openvswitch

View File

@ -5,34 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,43 +5,35 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools cronie rsyslog pkg_extras: python*setuptools cronie rsyslog
easy_install: command: /sbin/init
- pip capabilities:
- ALL
volumes:
- /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') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools cronie rsyslog
environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -19,3 +19,6 @@
hosts: all hosts: all
roles: roles:
- role: test_deps - role: test_deps
test_deps_extra_packages:
- cronie
- rsyslog

View File

@ -1,37 +0,0 @@
# Molecule managed
# Copyright 2019 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install sudo python*-devel python*-dnf bash {{ item.pkg_extras | default('') }} && dnf clean all; \
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl python-setuptools bash {{ item.pkg_extras | default('') }} && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml {{ item.pkg_extras | default('') }} && zypper clean -a; \
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates {{ item.pkg_extras | default('') }}; \
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates {{ item.pkg_extras | default('') }} && xbps-remove -O; fi
{% for pkg in item.easy_install | default([]) %}
# install pip for centos where there is no python-pip rpm in default repos
RUN easy_install {{ pkg }}
{% endfor %}
CMD ["sh", "-c", "while true; do sleep 10000; done"]

View File

@ -1,24 +0,0 @@
---
# Copyright 2019 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
- name: Converge
hosts: all
tasks:
- name: Run ntp stop
include_role:
name: tripleo_ptp
tasks_from: tripleo_ntp_stop.yml

View File

@ -1,43 +0,0 @@
---
driver:
name: podman
log: true
platforms:
- name: centos7
hostname: centos7
image: centos:7
dockerfile: Dockerfile
pkg_extras: python-setuptools ntp cronie rsyslog
easy_install:
- pip
environment: &env
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: &ulimit
- host
provisioner:
name: ansible
log: true
env:
ANSIBLE_STDOUT_CALLBACK: yaml
scenario:
test_sequence:
- destroy
- create
- prepare
- converge
- verify
- destroy
verifier:
name: testinfra

View File

@ -1,27 +0,0 @@
---
# Copyright 2019 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
- name: Prepare
hosts: all
roles:
- role: test_deps
post_tasks:
- name: Start ntpd
systemd:
name: ntpd
state: started
enabled: true

View File

@ -5,34 +5,34 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
capabilities:
- ALL
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -24,6 +24,9 @@
roles: roles:
- role: test_deps - role: test_deps
post_tasks: post_tasks:
- name: Create tripleo repos
command: tripleo-repos current-tripleo
become: true
- name: Install required packages - name: Install required packages
become: true become: true
package: package:

View File

@ -5,31 +5,34 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
capabilities:
- ALL
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit
- name: centos8 - host
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,34 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,34 +5,32 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,58 +5,44 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory: inventory:
hosts: hosts:
all: all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
children: children:
allovercloud: allovercloud:
hosts: hosts:
centos8: ubi8:
ansible_ssh_host_key_rsa_public: AAAATEST ansible_ssh_host_key_rsa_public: AAAATEST
ctlplane_ip: 10.0.0.1 ctlplane_ip: 10.0.0.1
ctlplane_hostname: centos8.ctlplane.localdomain ctlplane_hostname: ubi8.ctlplane.localdomain
internal_api_ip: 10.0.1.1 internal_api_ip: 10.0.1.1
internal_api_hostname: centos8.internalapi.localdomain internal_api_hostname: ubi8.internalapi.localdomain
management_ip: 10.0.0.1 # no management_hostname management_ip: 10.0.0.1 # no management_hostname
canonical_hostname: centos8.localdomain canonical_hostname: ubi8.localdomain
tripleo_role_networks: [ctlplane, internal_api, management] tripleo_role_networks: [ctlplane, internal_api, management]
centos7:
ansible_ssh_host_key_rsa_public: BBBBTEST
hostname_resolve_network: ctlplane
ctlplane_ip: 10.0.0.2
ctlplane_hostname: centos7.ctlplane.localdomain
internal_api_ip: 10.0.1.2
internal_api_hostname: centos7.internalapi.localdomain
canonical_hostname: centos7.localdomain
tripleo_role_networks: [ctlplane, internal_api]
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -25,8 +25,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
def test_ssh_host_keys(host): def test_ssh_host_keys(host):
expected = [ expected = [
'[10.0.0.1]*,[centos8.ctlplane.localdomain]*,[10.0.1.1]*,[centos8.internalapi.localdomain]*,[centos8.localdomain]*,[centos8]* ssh-rsa AAAATEST', '[10.0.0.1]*,[ubi8.ctlplane.localdomain]*,[10.0.1.1]*,[ubi8.internalapi.localdomain]*,[ubi8.localdomain]*,[ubi8]* ssh-rsa AAAATEST',
'[10.0.0.2]*,[centos7.ctlplane.localdomain]*,[10.0.1.2]*,[centos7.internalapi.localdomain]*,[centos7.localdomain]*,[centos7]* ssh-rsa BBBBTEST'
] ]
known_hosts = host.file("/etc/ssh/ssh_known_hosts").content_string known_hosts = host.file("/etc/ssh/ssh_known_hosts").content_string
for line in expected: for line in expected:

View File

@ -5,44 +5,37 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
volumes: volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory: inventory:
hosts: hosts:
all: all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
children: children:
allovercloud: allovercloud:
hosts: hosts:
centos8: ubi8:
ansible_ssh_host_key_rsa_public: AAAATEST ansible_ssh_host_key_rsa_public: AAAATEST
centos7:
ansible_ssh_host_key_rsa_public: BBBBTEST
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -25,8 +25,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
def test_ssh_host_keys(host): def test_ssh_host_keys(host):
expected = [ expected = [
'[centos8]* ssh-rsa AAAATEST', '[ubi8]* ssh-rsa AAAATEST',
'[centos7]* ssh-rsa BBBBTEST'
] ]
known_hosts = host.file("/etc/ssh/ssh_known_hosts").content_string known_hosts = host.file("/etc/ssh/ssh_known_hosts").content_string
for line in expected: for line in expected:

View File

@ -5,43 +5,35 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
easy_install: command: /sbin/init
- pip capabilities:
- ALL
volumes:
- /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') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,43 +5,35 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
easy_install: command: /sbin/init
- pip capabilities:
- ALL
volumes:
- /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') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,46 +5,36 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
easy_install: command: /sbin/init
- pip capabilities:
- ALL
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup: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') }}"
# needed for systemd stuff
command: /sbin/init
capabilities:
- ALL
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
environment:
<<: *env
# needed for systemd stuff
command: /sbin/init
capabilities:
- ALL
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,43 +5,36 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools cronie rsyslog pkg_extras: python*setuptools
easy_install: command: /sbin/init
- pip capabilities:
- ALL
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup: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') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools cronie rsyslog
environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
command: /sbin/init
capabilities:
- ALL
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
privileged: true
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -19,3 +19,6 @@
hosts: all hosts: all
roles: roles:
- role: test_deps - role: test_deps
test_deps_extra_packages:
- cronie
- rsyslog

View File

@ -7,42 +7,53 @@ log: true
platforms: platforms:
- name: overcloud-controller-0 - name: overcloud-controller-0
hostname: overcloud-controller-0 hostname: overcloud-controller-0
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
easy_install:
- pip
environment: &env
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
command: /sbin/init command: /sbin/init
capabilities: capabilities:
- ALL - ALL
volumes: volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /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 privileged: true
ulimits: &ulimit environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
ulimits:
- host - host
- name: overcloud-controller-1 - name: overcloud-controller-1
hostname: overcloud-controller-1 hostname: overcloud-controller-1
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
easy_install:
- pip
environment:
<<: *env
command: /sbin/init command: /sbin/init
capabilities: capabilities:
- ALL - ALL
volumes: volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /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 privileged: true
ulimits: *ulimit environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
ulimits:
- host
provisioner: provisioner:
name: ansible name: ansible
inventory:
vars:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,34 +5,35 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
capabilities:
- ALL
volumes: volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -5,34 +5,35 @@ driver:
log: true log: true
platforms: platforms:
- name: centos7 - name: ubi8
hostname: centos7 hostname: ubi8
image: centos:7 image: ubi8/ubi-init
registry:
url: registry.access.redhat.com
dockerfile: Dockerfile dockerfile: Dockerfile
pkg_extras: python-setuptools pkg_extras: python*setuptools
capabilities:
- ALL
volumes: volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro - /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
easy_install: - /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
- pip - /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') }}"
ulimits: &ulimit ulimits: &ulimit
- host - host
- name: centos8
hostname: centos8
image: centos:8
dockerfile: Dockerfile
pkg_extras: python*-setuptools
volumes:
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
environment:
<<: *env
ulimits: *ulimit
provisioner: provisioner:
name: ansible name: ansible
inventory:
hosts:
all:
hosts:
ubi8:
ansible_python_interpreter: /usr/bin/python3
log: true log: true
env: env:
ANSIBLE_STDOUT_CALLBACK: yaml ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -19,3 +19,7 @@
hosts: all hosts: all
roles: roles:
- role: test_deps - role: test_deps
post_tasks:
- name: Create tripleo repos
command: tripleo-repos current-tripleo
become: true

View File

@ -84,6 +84,13 @@
* hard nproc 4096 * hard nproc 4096
dest: /etc/security/limits.d/containers.conf dest: /etc/security/limits.d/containers.conf
- name: Copy repos directory to opt workspace
copy:
src: /etc/yum.repos.d
dest: /opt/
remote_src: true
mode: "0777"
- name: Reset ssh connection - name: Reset ssh connection
meta: reset_connection meta: reset_connection
tasks: tasks: