Skip to content

Commit

Permalink
Merge pull request #190 from romeroalx/fix-ci-requests
Browse files Browse the repository at this point in the history
GH Actions: fix issues with CI
  • Loading branch information
romeroalx authored Nov 27, 2024
2 parents 2911d27 + cb9f5cf commit 2c118dc
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 16 deletions.
4 changes: 2 additions & 2 deletions molecule/pdns-rec-48/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ dependency:
name: galaxy

platforms:
- name: centos-7
image: centos:7
- name: oraclelinux-7
image: oraclelinux:7
dockerfile_tpl: centos-systemd

- name: oraclelinux-8
Expand Down
4 changes: 2 additions & 2 deletions molecule/pdns-rec-49/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ dependency:
name: galaxy

platforms:
- name: centos-7
image: centos:7
- name: oraclelinux-7
image: oraclelinux:7
dockerfile_tpl: centos-systemd

- name: oraclelinux-8
Expand Down
4 changes: 2 additions & 2 deletions molecule/pdns-rec-50/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ dependency:
name: galaxy

platforms:
- name: centos-7
image: centos:7
- name: oraclelinux-7
image: oraclelinux:7
dockerfile_tpl: centos-systemd

- name: oraclelinux-8
Expand Down
4 changes: 2 additions & 2 deletions molecule/pdns-rec-master/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ dependency:
name: galaxy

platforms:
- name: centos-7
image: centos:7
- name: oraclelinux-7
image: oraclelinux:7
dockerfile_tpl: centos-systemd

- name: oraclelinux-8
Expand Down
2 changes: 1 addition & 1 deletion molecule/resources/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@
privileged: "yes"
volumes:
# Mount the cgroups fs to allow SystemD to run into the containers
- "/sys/fs/cgroup:/sys/fs/cgroup:ro"
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
with_items: "{{ molecule_platform_instances }}"
4 changes: 2 additions & 2 deletions molecule/resources/tests/repo-master/test_repo_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ def test_pdns_repo(host):
def test_pdns_version(host):
cmd = host.run('/usr/sbin/pdns_recursor --version')

assert 'PowerDNS Recursor' in cmd.stderr
assert 'master' in cmd.stderr
assert 'PowerDNS Recursor' in cmd.stderr or 'PowerDNS Recursor' in cmd.stdout
assert 'master' in cmd.stderr or 'master' in cmd.stdout
3 changes: 0 additions & 3 deletions molecule/resources/vars/pdns-rec-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,3 @@ pdns_rec_config:
pdns_rec_config_lua: "{{ pdns_rec_config_dir }}/rpz.lua"
pdns_rec_config_lua_file_content: |
rpzMaster("127.0.0.2", "rpz.test", {refresh=30})
pdns_rec_service_overrides:
LimitCORE: infinity
3 changes: 3 additions & 0 deletions molecule/resources/vars/pdns-rec-repo-47.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
##

pdns_rec_install_repo: "{{ pdns_rec_powerdns_repo_47 }}"

pdns_rec_service_overrides:
LimitCORE: infinity
3 changes: 3 additions & 0 deletions molecule/resources/vars/pdns-rec-repo-48.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
##

pdns_rec_install_repo: "{{ pdns_rec_powerdns_repo_48 }}"

pdns_rec_service_overrides:
LimitCORE: infinity
3 changes: 3 additions & 0 deletions molecule/resources/vars/pdns-rec-repo-49.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
##

pdns_rec_install_repo: "{{ pdns_rec_powerdns_repo_49 }}"

pdns_rec_service_overrides:
LimitCORE: infinity
5 changes: 4 additions & 1 deletion molecule/resources/vars/pdns-rec-repo-50.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
# PowerDNS Recursor 5.0.x Repository
##

pdns_rec_install_repo: "{{ pdns_rec_powerdns_repo_50 }}"
pdns_rec_install_repo: "{{ pdns_rec_powerdns_repo_50 }}"

pdns_rec_service_overrides:
LimitCORE: infinity
4 changes: 4 additions & 0 deletions molecule/resources/vars/pdns-rec-repo-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
##

pdns_rec_install_repo: "{{ pdns_rec_powerdns_repo_master }}"

pdns_rec_service_overrides:
LimitCORE: infinity
ExecStart: /usr/sbin/pdns_recursor --daemon=no --write-pid=no --disable-syslog --log-timestamp=no --enable-old-settings
3 changes: 3 additions & 0 deletions templates/override-service.systemd.conf.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[Service]
{% for k, v in pdns_rec_service_overrides.items() %}
{% if k == 'ExecStart' %}ExecStart=
{% elif k == 'ExecStartPre' %}ExecStartPre=
{% endif %}
{{ k }}={{ v }}
{% endfor %}
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ molecule-plugins[docker]==23.4.1
molecule-plugins[lint]==23.4.1
molecule==5.1.0
pytest-testinfra==10.1.0
docker==7.0.0
docker==7.1.0

0 comments on commit 2c118dc

Please sign in to comment.