Skip to content

Commit

Permalink
replace centos 8 with oraclelinux 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Habbie committed Dec 2, 2022
1 parent 347e9d8 commit 0375c6f
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 17 deletions.
4 changes: 2 additions & 2 deletions molecule/pdns-43/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ platforms:
image: centos:7
dockerfile_tpl: centos-systemd

- name: centos-8
- name: oraclelinux-8
groups: ["pdns"]
image: centos:8
image: oraclelinux:8
dockerfile_tpl: centos-systemd

- name: ubuntu-1804
Expand Down
4 changes: 2 additions & 2 deletions molecule/pdns-44/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ platforms:
image: centos:7
dockerfile_tpl: centos-systemd

- name: centos-8
- name: oraclelinux-8
groups: ["pdns"]
image: centos:8
image: oraclelinux:8
dockerfile_tpl: centos-systemd

- name: ubuntu-1804
Expand Down
4 changes: 2 additions & 2 deletions molecule/pdns-45/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ platforms:
image: centos:7
dockerfile_tpl: centos-systemd

- name: centos-8
- name: oraclelinux-8
groups: ["pdns"]
image: centos:8
image: oraclelinux:8
dockerfile_tpl: centos-systemd

- name: ubuntu-2004
Expand Down
4 changes: 2 additions & 2 deletions molecule/pdns-master/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ platforms:
image: centos:7
dockerfile_tpl: centos-systemd

- name: centos-8
- name: oraclelinux-8
groups: ["pdns"]
image: centos:8
image: oraclelinux:8
dockerfile_tpl: centos-systemd

- name: ubuntu-1804
Expand Down
2 changes: 1 addition & 1 deletion molecule/resources/tests/all/test_common.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

debian_os = ['debian', 'ubuntu']
rhel_os = ['redhat', 'centos']
rhel_os = ['redhat', 'centos', 'ol']
archlinux_os = ['arch']


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

debian_os = ['debian', 'ubuntu']
rhel_os = ['redhat', 'centos']
rhel_os = ['redhat', 'centos', 'ol']
archlinux_os = ['arch']


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

debian_os = ['debian', 'ubuntu']
rhel_os = ['redhat', 'centos']
rhel_os = ['redhat', 'centos', 'ol']
archlinux_os = ['arch']


Expand Down
2 changes: 1 addition & 1 deletion molecule/resources/tests/repo-43/test_repo_43.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

debian_os = ['debian', 'ubuntu']
rhel_os = ['redhat', 'centos']
rhel_os = ['redhat', 'centos', 'ol']


def test_repo_file(host):
Expand Down
2 changes: 1 addition & 1 deletion molecule/resources/tests/repo-44/test_repo_44.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

debian_os = ['debian', 'ubuntu']
rhel_os = ['redhat', 'centos']
rhel_os = ['redhat', 'centos', 'ol']


def test_repo_file(host):
Expand Down
2 changes: 1 addition & 1 deletion molecule/resources/tests/repo-master/test_repo_master.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

debian_os = ['debian', 'ubuntu']
rhel_os = ['redhat', 'centos']
rhel_os = ['redhat', 'centos', 'ol']


def test_repo_file(host):
Expand Down
13 changes: 10 additions & 3 deletions tasks/repo-RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@
state: present
when: ansible_distribution in [ 'CentOS' ]

- name: Install epel-release on RHEL/OracleLinux
yum:
- name: Install epel-release on RHEL
package:
name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
state: present
when: ansible_distribution in [ 'RedHat', 'OracleLinux' ]
when: ansible_distribution in [ 'RedHat' ]

# FIXME: this only works for 8
- name: Install epel-release on OracleLinux
package:
name: oracle-epel-release-el8
state: present
when: ansible_distribution in [ 'OracleLinux' ]

when: pdns_install_epel

Expand Down

0 comments on commit 0375c6f

Please sign in to comment.