mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 03:14:42 +00:00
Merge pull request #732 from rjeffman/ci_enable_c8s
upstream CI: Enable CentOS 8 Stream for PR and nightly tests.
This commit is contained in:
30
molecule/c8s-build/Dockerfile
Normal file
30
molecule/c8s-build/Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
FROM quay.io/centos/centos:stream8
|
||||||
|
ENV container=docker
|
||||||
|
|
||||||
|
RUN rm -fv /var/cache/dnf/metadata_lock.pid; \
|
||||||
|
dnf makecache; \
|
||||||
|
dnf --assumeyes install \
|
||||||
|
/usr/bin/python3 \
|
||||||
|
/usr/bin/python3-config \
|
||||||
|
/usr/bin/dnf-3 \
|
||||||
|
sudo \
|
||||||
|
bash \
|
||||||
|
systemd \
|
||||||
|
procps-ng \
|
||||||
|
iproute && \
|
||||||
|
dnf clean all; \
|
||||||
|
(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
|
||||||
|
rm -f /lib/systemd/system/multi-user.target.wants/*;\
|
||||||
|
rm -f /etc/systemd/system/*.wants/*;\
|
||||||
|
rm -f /lib/systemd/system/local-fs.target.wants/*; \
|
||||||
|
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
|
||||||
|
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
|
||||||
|
rm -f /lib/systemd/system/basic.target.wants/*;\
|
||||||
|
rm -f /lib/systemd/system/anaconda.target.wants/*; \
|
||||||
|
rm -rf /var/cache/dnf/;
|
||||||
|
|
||||||
|
STOPSIGNAL RTMIN+3
|
||||||
|
|
||||||
|
VOLUME ["/sys/fs/cgroup"]
|
||||||
|
|
||||||
|
CMD ["/usr/sbin/init"]
|
||||||
19
molecule/c8s-build/molecule.yml
Normal file
19
molecule/c8s-build/molecule.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
driver:
|
||||||
|
name: docker
|
||||||
|
platforms:
|
||||||
|
- name: c8s-build
|
||||||
|
image: "quay.io/centos/centos:stream8"
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
hostname: ipaserver.test.local
|
||||||
|
dns_servers:
|
||||||
|
- 8.8.8.8
|
||||||
|
volumes:
|
||||||
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
|
command: /usr/sbin/init
|
||||||
|
privileged: true
|
||||||
|
provisioner:
|
||||||
|
name: ansible
|
||||||
|
playbooks:
|
||||||
|
prepare: ../resources/playbooks/prepare-build.yml
|
||||||
|
prerun: false
|
||||||
19
molecule/c8s/molecule.yml
Normal file
19
molecule/c8s/molecule.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
driver:
|
||||||
|
name: docker
|
||||||
|
platforms:
|
||||||
|
- name: c8s
|
||||||
|
image: quay.io/ansible-freeipa/upstream-tests:c8s
|
||||||
|
pre_build_image: true
|
||||||
|
hostname: ipaserver.test.local
|
||||||
|
dns_servers:
|
||||||
|
- 127.0.0.1
|
||||||
|
volumes:
|
||||||
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
|
command: /usr/sbin/init
|
||||||
|
privileged: true
|
||||||
|
provisioner:
|
||||||
|
name: ansible
|
||||||
|
playbooks:
|
||||||
|
prepare: ../resources/playbooks/prepare.yml
|
||||||
|
prerun: false
|
||||||
@@ -18,9 +18,9 @@ stages:
|
|||||||
scenario: fedora-latest
|
scenario: fedora-latest
|
||||||
ansible_version: ">=2.9,<2.10"
|
ansible_version: ">=2.9,<2.10"
|
||||||
|
|
||||||
# CentOS 9
|
# CentOS 9 Stream
|
||||||
|
|
||||||
- stage: CentOS9_Ansible_2_9
|
- stage: c9s_Ansible_2_9
|
||||||
dependsOn: []
|
dependsOn: []
|
||||||
jobs:
|
jobs:
|
||||||
- template: templates/group_tests.yml
|
- template: templates/group_tests.yml
|
||||||
@@ -29,17 +29,28 @@ stages:
|
|||||||
scenario: centos-9
|
scenario: centos-9
|
||||||
ansible_version: ">=2.9,<2.10"
|
ansible_version: ">=2.9,<2.10"
|
||||||
|
|
||||||
# CentOS 8
|
# CentOS 8 Stream
|
||||||
|
|
||||||
- stage: CentOS8_Ansible_2_9
|
- stage: c8s_Ansible_2_9
|
||||||
dependsOn: []
|
dependsOn: []
|
||||||
jobs:
|
jobs:
|
||||||
- template: templates/group_tests.yml
|
- template: templates/group_tests.yml
|
||||||
parameters:
|
parameters:
|
||||||
build_number: $(Build.BuildNumber)
|
build_number: $(Build.BuildNumber)
|
||||||
scenario: centos-8
|
scenario: c8s
|
||||||
ansible_version: ">=2.9,<2.10"
|
ansible_version: ">=2.9,<2.10"
|
||||||
|
|
||||||
|
# # CentOS 8
|
||||||
|
#
|
||||||
|
# - stage: CentOS8_Ansible_2_9
|
||||||
|
# dependsOn: []
|
||||||
|
# jobs:
|
||||||
|
# - template: templates/group_tests.yml
|
||||||
|
# parameters:
|
||||||
|
# build_number: $(Build.BuildNumber)
|
||||||
|
# scenario: centos-8
|
||||||
|
# ansible_version: ">=2.9,<2.10"
|
||||||
|
|
||||||
# CentOS 7
|
# CentOS 7
|
||||||
|
|
||||||
- stage: CentOS7_Ansible_2_9
|
- stage: CentOS7_Ansible_2_9
|
||||||
|
|||||||
@@ -21,11 +21,17 @@ jobs:
|
|||||||
container_name: centos-7
|
container_name: centos-7
|
||||||
build_scenario_name: centos-7-build
|
build_scenario_name: centos-7-build
|
||||||
|
|
||||||
|
# - template: templates/build_container.yml
|
||||||
|
# parameters:
|
||||||
|
# job_name_suffix: Centos8
|
||||||
|
# container_name: centos-8
|
||||||
|
# build_scenario_name: centos-8-build
|
||||||
|
|
||||||
- template: templates/build_container.yml
|
- template: templates/build_container.yml
|
||||||
parameters:
|
parameters:
|
||||||
job_name_suffix: Centos8
|
job_name_suffix: C8S
|
||||||
container_name: centos-8
|
container_name: c8s
|
||||||
build_scenario_name: centos-8-build
|
build_scenario_name: c8s-build
|
||||||
|
|
||||||
- template: templates/build_container.yml
|
- template: templates/build_container.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ stages:
|
|||||||
scenario: fedora-latest
|
scenario: fedora-latest
|
||||||
ansible_version: ""
|
ansible_version: ""
|
||||||
|
|
||||||
# CentoOS 9
|
# CentoOS 9 Stream
|
||||||
|
|
||||||
- stage: CentOS9_Ansible_2_9
|
- stage: CentOS9_Ansible_2_9
|
||||||
dependsOn: []
|
dependsOn: []
|
||||||
@@ -90,18 +90,18 @@ stages:
|
|||||||
scenario: centos-9
|
scenario: centos-9
|
||||||
ansible_version: ""
|
ansible_version: ""
|
||||||
|
|
||||||
# CentOS 8
|
# CentOS 8 Stream
|
||||||
|
|
||||||
- stage: CentOS8_Ansible_2_9
|
- stage: c8s_Ansible_2_9
|
||||||
dependsOn: []
|
dependsOn: []
|
||||||
jobs:
|
jobs:
|
||||||
- template: templates/group_tests.yml
|
- template: templates/group_tests.yml
|
||||||
parameters:
|
parameters:
|
||||||
build_number: $(Build.BuildNumber)
|
build_number: $(Build.BuildNumber)
|
||||||
scenario: centos-8
|
scenario: c8s
|
||||||
ansible_version: ">=2.9,<2.10"
|
ansible_version: ">=2.9,<2.10"
|
||||||
|
|
||||||
- stage: CentOS8_Ansible_Core_2_11
|
- stage: c8s_Ansible_Core_2_11
|
||||||
dependsOn: []
|
dependsOn: []
|
||||||
jobs:
|
jobs:
|
||||||
- template: templates/group_tests.yml
|
- template: templates/group_tests.yml
|
||||||
@@ -110,24 +110,62 @@ stages:
|
|||||||
scenario: centos-8
|
scenario: centos-8
|
||||||
ansible_version: "-core >=2.11,<2.12"
|
ansible_version: "-core >=2.11,<2.12"
|
||||||
|
|
||||||
- stage: CentOS8_Ansible_Core_2_12
|
- stage: c8s_Ansible_Core_2_12
|
||||||
dependsOn: []
|
dependsOn: []
|
||||||
jobs:
|
jobs:
|
||||||
- template: templates/group_tests.yml
|
- template: templates/group_tests.yml
|
||||||
parameters:
|
parameters:
|
||||||
build_number: $(Build.BuildNumber)
|
build_number: $(Build.BuildNumber)
|
||||||
scenario: centos-8
|
scenario: c8s
|
||||||
ansible_version: "-core >=2.12,<2.13"
|
ansible_version: "-core >=2.12,<2.13"
|
||||||
|
|
||||||
- stage: CentOS8_Ansible_latest
|
- stage: c8s_Ansible_latest
|
||||||
dependsOn: []
|
dependsOn: []
|
||||||
jobs:
|
jobs:
|
||||||
- template: templates/group_tests.yml
|
- template: templates/group_tests.yml
|
||||||
parameters:
|
parameters:
|
||||||
build_number: $(Build.BuildNumber)
|
build_number: $(Build.BuildNumber)
|
||||||
scenario: centos-8
|
scenario: c8s
|
||||||
ansible_version: ""
|
ansible_version: ""
|
||||||
|
|
||||||
|
# # CentOS 8
|
||||||
|
#
|
||||||
|
# - stage: CentOS8_Ansible_2_9
|
||||||
|
# dependsOn: []
|
||||||
|
# jobs:
|
||||||
|
# - template: templates/group_tests.yml
|
||||||
|
# parameters:
|
||||||
|
# build_number: $(Build.BuildNumber)
|
||||||
|
# scenario: centos-8
|
||||||
|
# ansible_version: ">=2.9,<2.10"
|
||||||
|
#
|
||||||
|
# - stage: CentOS8_Ansible_Core_2_11
|
||||||
|
# dependsOn: []
|
||||||
|
# jobs:
|
||||||
|
# - template: templates/group_tests.yml
|
||||||
|
# parameters:
|
||||||
|
# build_number: $(Build.BuildNumber)
|
||||||
|
# scenario: centos-8
|
||||||
|
# ansible_version: "-core >=2.11,<2.12"
|
||||||
|
#
|
||||||
|
# - stage: CentOS8_Ansible_Core_2_12
|
||||||
|
# dependsOn: []
|
||||||
|
# jobs:
|
||||||
|
# - template: templates/group_tests.yml
|
||||||
|
# parameters:
|
||||||
|
# build_number: $(Build.BuildNumber)
|
||||||
|
# scenario: centos-8
|
||||||
|
# ansible_version: "-core >=2.12,<2.13"
|
||||||
|
#
|
||||||
|
# - stage: CentOS8_Ansible_latest
|
||||||
|
# dependsOn: []
|
||||||
|
# jobs:
|
||||||
|
# - template: templates/group_tests.yml
|
||||||
|
# parameters:
|
||||||
|
# build_number: $(Build.BuildNumber)
|
||||||
|
# scenario: centos-8
|
||||||
|
# ansible_version: ""
|
||||||
|
|
||||||
# CentOS 7
|
# CentOS 7
|
||||||
|
|
||||||
- stage: CentOS7_Ansible_2_9
|
- stage: CentOS7_Ansible_2_9
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
- name: build_scenario_name
|
- name: build_scenario_name
|
||||||
type: string
|
type: string
|
||||||
|
- name: python_version
|
||||||
|
type: string
|
||||||
|
default: 3.x
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildTestImage${{ parameters.job_name_suffix }}
|
- job: BuildTestImage${{ parameters.job_name_suffix }}
|
||||||
@@ -13,7 +16,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '3.6'
|
versionSpec: '${{ parameters.python_version }}'
|
||||||
|
|
||||||
- script: python -m pip install --upgrade pip setuptools wheel ansible
|
- script: python -m pip install --upgrade pip setuptools wheel ansible
|
||||||
displayName: Install tools
|
displayName: Install tools
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
parameters:
|
parameters:
|
||||||
- name: scenario
|
- name: scenario
|
||||||
type: string
|
type: string
|
||||||
default: centos-8
|
default: fedora-latest
|
||||||
- name: build_number
|
- name: build_number
|
||||||
type: string
|
type: string
|
||||||
- name: ansible_version
|
- name: ansible_version
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ parameters:
|
|||||||
default: 1
|
default: 1
|
||||||
- name: scenario
|
- name: scenario
|
||||||
type: string
|
type: string
|
||||||
default: centos-8
|
default: fedora-latest
|
||||||
- name: ansible_version
|
- name: ansible_version
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ parameters:
|
|||||||
type: string
|
type: string
|
||||||
- name: scenario
|
- name: scenario
|
||||||
type: string
|
type: string
|
||||||
|
default: fedora-latest
|
||||||
- name: ansible_version
|
- name: ansible_version
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user