Skip to content

Commit

Permalink
Merge pull request #214 from romeroalx/fix-ci-os-repos
Browse files Browse the repository at this point in the history
Fix test pdns-os-repos
  • Loading branch information
npmdnl authored Apr 12, 2024
2 parents 48ddf28 + 14cea05 commit a0eddd4
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
Expand Down
21 changes: 21 additions & 0 deletions molecule/pdns-os-repos/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ dependency:
name: galaxy

platforms:
- name: debian-10
groups: ["pdns"]
image: debian:10
privileged: True
volume_mounts:
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
tmpfs:
- /run
- /run/lock
- /tmp
dockerfile_tpl: debian-systemd
environment: { container: docker }

- name: debian-11
groups: ["pdns"]
image: debian:11
Expand All @@ -36,6 +49,14 @@ platforms:
- /tmp
dockerfile_tpl: debian-systemd

- name: ubuntu-2204
groups: ["pdns"]
image: ubuntu:22.04
tmpfs:
- /run
- /tmp
dockerfile_tpl: debian-systemd

# In order to run the tests we need
# a MySQL container to be up & running
- name: mysql
Expand Down
2 changes: 1 addition & 1 deletion molecule/resources/Dockerfile.debian-systemd.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ VOLUME [ "/sys/fs/cgroup" ]

CMD ["/sbin/init"]

RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python python3 sudo bash net-tools ca-certificates && apt-get clean; fi
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python3 sudo bash net-tools ca-certificates && apt-get clean; fi
3 changes: 3 additions & 0 deletions molecule/resources/host_vars/debian-10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

ansible_python_interpreter: "/usr/bin/python3"

# pdns-os-repos: debian-10 installs auth 4.1.6
_pdns_config_legacy:
master: true
5 changes: 5 additions & 0 deletions molecule/resources/host_vars/debian-11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---

# pdns-os-repos: debian-11 installs auth 4.4.1
_pdns_config_legacy:
master: true
4 changes: 4 additions & 0 deletions molecule/resources/host_vars/ubuntu-2004.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---

ansible_python_interpreter: "/usr/bin/python3"

# pdns-os-repos: ubuntu-20.04 installs auth 4.4.1
_pdns_config_legacy:
master: true
11 changes: 7 additions & 4 deletions molecule/resources/vars/pdns-os-repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
# PowerDNS Configuration
##

pdns_config:

# Turns on master operations
primary: true
_pdns_config_base:

# Listen Address
local-address: "127.0.0.1"
Expand All @@ -22,5 +19,11 @@ pdns_config:
webserver-address: "0.0.0.0"
webserver-port: "8001"

# Turns on master operations
_pdns_config_primary:
primary: true

pdns_config: "{{ _pdns_config_base | combine(_pdns_config_legacy | default(_pdns_config_primary), recursive=True) }}"

pdns_service_overrides:
LimitCORE: infinity
1 change: 0 additions & 1 deletion vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ default_pdns_debug_symbols_package_name: "pdns-server-dbg"
# Packages needed to install MySQL
pdns_mysql_packages:
- default-mysql-client
- python-mysqldb
- python3-mysqldb

# List of PowerDNS Authoritative Server Backends packages on Debian
Expand Down

0 comments on commit a0eddd4

Please sign in to comment.