Update to new quay.io images

This updates the freeipa-server image to fedora-36 and
molecule images to stream9.

Change-Id: I026207760d917524cee69dddd41448f3bc0245d2
This commit is contained in:
Grzegorz Grasza 2022-07-21 14:36:02 +02:00
parent fa63e4f3d9
commit e404fe19a8
10 changed files with 33 additions and 54 deletions

View File

@ -30,7 +30,7 @@ RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y pyth
{% for pkg in item.easy_install | default([]) %} {% for pkg in item.easy_install | default([]) %}
# install pip for centos where there is no python-pip rpm in default repos # install pip for centos where there is no python-pip rpm in default repos
RUN easy_install {{ pkg }} RUN pip install {{ pkg }}
{% endfor %} {% endfor %}

View File

@ -15,7 +15,7 @@
# under the License. # under the License.
- name: Setup server - name: Setup server
hosts: centos8 hosts: centos9
vars: vars:
ipa_domain: example.test ipa_domain: example.test
ipa_server_ip: 10.88.0.22 ipa_server_ip: 10.88.0.22
@ -24,15 +24,6 @@
ipa_server_hostname: ipa.example.test ipa_server_hostname: ipa.example.test
undercloud_fqdn: test-0.example.test undercloud_fqdn: test-0.example.test
tasks: tasks:
- name: install python urllib gssapi
pip:
name: urllib_gssapi
- name: install ipa client
package:
name: ipa-client
state: present
- name: set resolv.conf to point to the ipa server - name: set resolv.conf to point to the ipa server
shell: shell:
cmd: cat > /etc/resolv.conf cmd: cat > /etc/resolv.conf
@ -92,7 +83,7 @@
- name: Setup dummy server - name: Setup dummy server
hosts: centos8-dummy hosts: centos9-dummy
vars: vars:
ipa_domain: example.test ipa_domain: example.test
ipa_server_ip: 10.88.0.22 ipa_server_ip: 10.88.0.22
@ -101,15 +92,6 @@
ipa_server_hostname: ipa.example.test ipa_server_hostname: ipa.example.test
undercloud_fqdn: dummy.example.test undercloud_fqdn: dummy.example.test
tasks: tasks:
- name: install python urllib gssapi
pip:
name: urllib_gssapi
- name: install ipa client
package:
name: ipa-client
state: present
- name: set resolv.conf to point to the ipa server - name: set resolv.conf to point to the ipa server
shell: shell:
cmd: cat > /etc/resolv.conf cmd: cat > /etc/resolv.conf
@ -162,7 +144,7 @@
- name: Converge - add host and relevant services - name: Converge - add host and relevant services
hosts: centos8 hosts: centos9
vars: vars:
tripleo_ipa_enroll_base_server: true tripleo_ipa_enroll_base_server: true
tripleo_ipa_base_server_fqdn: test-0.example.test tripleo_ipa_base_server_fqdn: test-0.example.test
@ -226,7 +208,7 @@
- name: Converge - add dns entries - name: Converge - add dns entries
hosts: centos8 hosts: centos9
vars: vars:
cloud_domain: ooo.test cloud_domain: ooo.test
hosts_entry: hosts_entry:

View File

@ -1,15 +1,19 @@
--- ---
driver: driver:
name: podman name: podman
log: true log: true
platforms: platforms:
- name: centos8 - name: centos9
hostname: test-0.example.test hostname: test-0.example.test
image: centos/centos:stream8 image: centos/centos:stream9
registry: registry:
url: quay.io url: quay.io
command: /sbin/init command: /sbin/init
pkg_extras: systemd ipa-client pip
easy_install:
- urllib_gssapi
tmpfs: tmpfs:
- /run - /run
- /tmp - /tmp
@ -22,12 +26,15 @@ platforms:
http_proxy: "{{ lookup('env', 'http_proxy') }}" http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}" https_proxy: "{{ lookup('env', 'https_proxy') }}"
- name: centos8-dummy - name: centos9-dummy
hostname: dummy.example.test hostname: dummy.example.test
image: centos/centos:stream8 image: centos/centos:stream9
registry: registry:
url: quay.io url: quay.io
command: /sbin/init command: /sbin/init
pkg_extras: systemd ipa-client pip
easy_install:
- urllib_gssapi
tmpfs: tmpfs:
- /run - /run
- /tmp - /tmp
@ -50,9 +57,9 @@ provisioner:
hosts: hosts:
all: all:
hosts: hosts:
centos8: centos9:
ansible_python_interpreter: /usr/bin/python3 ansible_python_interpreter: /usr/bin/python3
centos8-dummy: centos9-dummy:
ansible_python_interpreter: /usr/bin/python3 ansible_python_interpreter: /usr/bin/python3
scenario: scenario:

View File

@ -24,7 +24,7 @@
- name: Download FreeIPA Container - name: Download FreeIPA Container
containers.podman.podman_image: containers.podman.podman_image:
name: docker.io/freeipa/freeipa-server:fedora-28 name: quay.io/freeipa/freeipa-server:fedora-36
pull: true pull: true
become: true become: true
@ -61,8 +61,9 @@
-h ipa.{{ domain }} -h ipa.{{ domain }}
--read-only --tmpfs /run --tmpfs /tmp --read-only --tmpfs /run --tmpfs /tmp
-v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /sys/fs/cgroup:/sys/fs/cgroup:ro
-v /tmp/ipa-data:/data:Z freeipa/freeipa-server:fedora-28 no-exit -v /tmp/ipa-data:/data:Z freeipa/freeipa-server:fedora-36 no-exit
-U -r {{ domain | upper }} --setup-dns --no-reverse --no-ntp -U -r {{ domain | upper }} --setup-dns --no-reverse --no-ntp
--no-dnssec-validation
--forwarder={{ nameservers[0] | default('8.8.8.8') }} --forwarder={{ nameservers[0] | default('8.8.8.8') }}
vars: vars:
nameservers: "{{ nmcli_device_show.stdout | regex_findall('\\s*IP4.DNS\\[.\\]:\\s*(.*)') }}" nameservers: "{{ nmcli_device_show.stdout | regex_findall('\\s*IP4.DNS\\[.\\]:\\s*(.*)') }}"

View File

@ -7,7 +7,7 @@ import testinfra.utils.ansible_runner
inventory = os.environ['MOLECULE_INVENTORY_FILE'] inventory = os.environ['MOLECULE_INVENTORY_FILE']
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
inventory).get_hosts('centos8') inventory).get_hosts('centos9')
def setup_module(module): def setup_module(module):

View File

@ -2,7 +2,7 @@
# This is an example playbook to execute Ansible tests. # This is an example playbook to execute Ansible tests.
- name: Verify - name: Verify
hosts: centos8 hosts: centos9
tasks: tasks:
- name: Example assertion - name: Example assertion
assert: assert:

View File

@ -30,7 +30,7 @@ RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y pyth
{% for pkg in item.easy_install | default([]) %} {% for pkg in item.easy_install | default([]) %}
# install pip for centos where there is no python-pip rpm in default repos # install pip for centos where there is no python-pip rpm in default repos
RUN easy_install {{ pkg }} RUN pip install {{ pkg }}
{% endfor %} {% endfor %}

View File

@ -24,21 +24,6 @@
ipa_server_hostname: ipa.example.test ipa_server_hostname: ipa.example.test
undercloud_fqdn: test-0.example.test undercloud_fqdn: test-0.example.test
tasks: tasks:
- name: copy requirements file
copy:
src: "{{ playbook_dir }}/../../../requirements.txt"
dest: /tmp/requirements.txt
- name: install requirements
pip:
requirements: /tmp/requirements.txt
- name: install python urllib gssapi
pip:
name: urllib_gssapi
- name: install ipa client
package:
name: ipa-client
state: present
- name: set resolv.conf to point to the ipa server - name: set resolv.conf to point to the ipa server
shell: shell:
cmd: cat > /etc/resolv.conf cmd: cat > /etc/resolv.conf

View File

@ -5,12 +5,15 @@ driver:
log: true log: true
platforms: platforms:
- name: centos8 - name: centos9
hostname: test-0.example.test hostname: test-0.example.test
image: centos/centos:stream8 image: centos/centos:stream9
registry: registry:
url: quay.io url: quay.io
command: /sbin/init command: /sbin/init
pkg_extras: systemd ipa-client pip
easy_install:
- urllib_gssapi
tmpfs: tmpfs:
- /run - /run
- /tmp - /tmp
@ -35,7 +38,7 @@ provisioner:
hosts: hosts:
all: all:
hosts: hosts:
centos8: centos9:
ansible_python_interpreter: /usr/bin/python3 ansible_python_interpreter: /usr/bin/python3
scenario: scenario:

View File

@ -24,7 +24,7 @@
- name: Download FreeIPA Container - name: Download FreeIPA Container
containers.podman.podman_image: containers.podman.podman_image:
name: docker.io/freeipa/freeipa-server:fedora-28 name: quay.io/freeipa/freeipa-server:fedora-36
pull: true pull: true
become: true become: true
@ -61,8 +61,9 @@
-h ipa.{{ domain }} -h ipa.{{ domain }}
--read-only --tmpfs /run --tmpfs /tmp --read-only --tmpfs /run --tmpfs /tmp
-v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /sys/fs/cgroup:/sys/fs/cgroup:ro
-v /tmp/ipa-data:/data:Z freeipa/freeipa-server:fedora-28 exit-on-finished -v /tmp/ipa-data:/data:Z freeipa/freeipa-server:fedora-36 exit-on-finished
-U -r {{ domain | upper }} --setup-dns --no-reverse --no-ntp -U -r {{ domain | upper }} --setup-dns --no-reverse --no-ntp
--no-dnssec-validation
--forwarder={{ nameservers[0] | default('8.8.8.8') }} --forwarder={{ nameservers[0] | default('8.8.8.8') }}
vars: vars:
nameservers: "{{ nmcli_device_show.stdout | regex_findall('\\s*IP4.DNS\\[.\\]:\\s*(.*)') }}" nameservers: "{{ nmcli_device_show.stdout | regex_findall('\\s*IP4.DNS\\[.\\]:\\s*(.*)') }}"