Skip to content

Commit 62b65ca

Browse files
authored
Merge pull request PowerDNS#247 from npmdnl/npmdnl-auth50
Adding pdns50 removing pdns47
2 parents 50d3200 + 9b6f5fb commit 62b65ca

File tree

9 files changed

+63
-33
lines changed

9 files changed

+63
-33
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
- "2.15"
2424
- "2.16"
2525
scenario:
26-
- pdns-47
2726
- pdns-48
2827
- pdns-49
28+
- pdns-50
2929
- pdns-master
3030
- pdns-os-repos
3131
- systemd-no-overrides

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## v1.9.0 (UNRELEASED)
2+
3+
NEW FEATURES:
4+
- Added pdns50
5+
6+
REMOVED / EOL:
7+
- EOL pdns47
8+
19
## v1.8.0 (2023-08-03)
210

311
NEW FEATURES:

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ By default, the PowerDNS Authoritative Server is installed from the software rep
3232
- { role: PowerDNS.pdns,
3333
pdns_install_repo: "{{ pdns_auth_powerdns_repo_master }}"
3434

35-
# Install the PowerDNS Authoritative Server from the '4.7.x' official repository
36-
- hosts: all
37-
roles:
38-
- { role: PowerDNS.pdns,
39-
pdns_install_repo: "{{ pdns_auth_powerdns_repo_47 }}"
4035

4136
# Install the PowerDNS Authoritative Server from the '4.8.x' official repository
4237
- hosts: all
@@ -49,6 +44,12 @@ By default, the PowerDNS Authoritative Server is installed from the software rep
4944
roles:
5045
- { role: PowerDNS.pdns,
5146
pdns_install_repo: "{{ pdns_auth_powerdns_repo_49 }}"
47+
48+
# Install the PowerDNS Authoritative Server from the '5.0.x' official repository
49+
- hosts: all
50+
roles:
51+
- { role: PowerDNS.pdns,
52+
pdns_install_repo: "{{ pdns_auth_powerdns_repo_50 }}"
5253
```
5354
5455
The examples above, show how to install the PowerDNS Authoritative Server from the official PowerDNS repositories
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22

3-
- name: PDNS 4.7
3+
- name: PDNS 5.0
44
hosts: pdns
55
vars_files:
66
- ../resources/vars/pdns-common.yml
7-
- ../resources/vars/pdns-repo-47.yml
7+
- ../resources/vars/pdns-repo-50.yml
88
- ../resources/vars/pdns-backends.yml
99
roles:
1010
- { role: powerdns.pdns }
Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22

33
scenario:
4-
name: pdns-47
4+
name: pdns-50
55

66
driver:
77
name: docker
@@ -48,6 +48,14 @@ platforms:
4848
- /tmp
4949
dockerfile_tpl: debian-systemd
5050

51+
- name: ubuntu-2404
52+
groups: ["pdns"]
53+
image: ubuntu:24.04
54+
tmpfs:
55+
- /run
56+
- /tmp
57+
dockerfile_tpl: debian-systemd
58+
5159
- name: debian-11
5260
groups: ["pdns"]
5361
image: debian:11
@@ -61,6 +69,19 @@ platforms:
6169
dockerfile_tpl: debian-systemd
6270
environment: { container: docker }
6371

72+
- name: debian-12
73+
groups: ["pdns"]
74+
image: debian:12
75+
privileged: True
76+
volume_mounts:
77+
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
78+
tmpfs:
79+
- /run
80+
- /run/lock
81+
- /tmp
82+
dockerfile_tpl: debian-systemd
83+
environment: { container: docker }
84+
6485
# In order to run the tests we need
6586
# a MySQL container to be up & running
6687
- name: mysql
@@ -108,7 +129,7 @@ verifier:
108129
directory: ../resources/tests/all
109130
additional_files_or_dirs:
110131
# path relative to 'directory'
111-
- ../repo-47/
132+
- ../repo-50/
112133
- ../backend-sqlite/
113134
- ../backend-mysql/
114135
- ../systemd-override/

molecule/resources/tests/repo-47/test_repo_47.py renamed to molecule/resources/tests/repo-50/test_repo_50 .py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
def test_repo_file(host):
77
f = None
88
if host.system_info.distribution.lower() in debian_os:
9-
f = host.file('/etc/apt/sources.list.d/powerdns-auth-47.list')
9+
f = host.file('/etc/apt/sources.list.d/powerdns-auth-50.list')
1010
if host.system_info.distribution.lower() in rhel_os:
11-
f = host.file('/etc/yum.repos.d/powerdns-auth-47.repo')
11+
f = host.file('/etc/yum.repos.d/powerdns-auth-50.repo')
1212

1313
assert f.exists
1414
assert f.user == 'root'
@@ -18,12 +18,12 @@ def test_repo_file(host):
1818
def test_pdns_repo(host):
1919
f = None
2020
if host.system_info.distribution.lower() in debian_os:
21-
f = host.file('/etc/apt/sources.list.d/powerdns-auth-47.list')
21+
f = host.file('/etc/apt/sources.list.d/powerdns-auth-50.list')
2222
if host.system_info.distribution.lower() in rhel_os:
23-
f = host.file('/etc/yum.repos.d/powerdns-auth-47.repo')
23+
f = host.file('/etc/yum.repos.d/powerdns-auth-50.repo')
2424

2525
assert f.exists
26-
assert f.contains('auth-47')
26+
assert f.contains('auth-50')
2727

2828

2929
def test_repo_pinning_file(host):
@@ -40,5 +40,5 @@ def test_repo_pinning_file(host):
4040
def test_pdns_version(host):
4141
cmd = host.run('/usr/sbin/pdns_server --version')
4242

43-
assert 'PowerDNS Authoritative Server' in cmd.stderr
44-
assert '4.7' in cmd.stderr
43+
assert 'PowerDNS Authoritative Server' in cmd.stdout
44+
assert '5.0' in cmd.stdout

molecule/resources/vars/pdns-repo-47.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
3+
##
4+
# PowerDNS 5.0.x Repository
5+
##
6+
7+
pdns_install_repo: "{{ pdns_auth_powerdns_repo_50 }}"

vars/main.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ pdns_auth_powerdns_repo_master:
99
yum_debug_symbols_repo_baseurl: "http://repo.powerdns.com/centos/$basearch/$releasever/auth-master/debug"
1010
name: "powerdns-auth-master"
1111

12-
pdns_auth_powerdns_repo_47:
13-
apt_repo_origin: "repo.powerdns.com"
14-
apt_repo: "deb [arch=amd64] http://repo.powerdns.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release | lower }}-auth-47 main"
15-
gpg_key: "http://repo.powerdns.com/FD380FBB-pub.asc"
16-
gpg_key_id: "9FAAA5577E8FCF62093D036C1B0C6205FD380FBB"
17-
yum_repo_baseurl: "http://repo.powerdns.com/centos/$basearch/$releasever/auth-47"
18-
yum_debug_symbols_repo_baseurl: "http://repo.powerdns.com/centos/$basearch/$releasever/auth-47/debug"
19-
name: "powerdns-auth-47"
20-
2112
pdns_auth_powerdns_repo_48:
2213
apt_repo_origin: "repo.powerdns.com"
2314
apt_repo: "deb [arch=amd64] http://repo.powerdns.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release | lower }}-auth-48 main"
@@ -36,6 +27,15 @@ pdns_auth_powerdns_repo_49:
3627
yum_debug_symbols_repo_baseurl: "http://repo.powerdns.com/centos/$basearch/$releasever/auth-49/debug"
3728
name: "powerdns-auth-49"
3829

30+
pdns_auth_powerdns_repo_50:
31+
apt_repo_origin: "repo.powerdns.com"
32+
apt_repo: "deb [arch=amd64] http://repo.powerdns.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release | lower }}-auth-50 main"
33+
gpg_key: "http://repo.powerdns.com/FD380FBB-pub.asc"
34+
gpg_key_id: "9FAAA5577E8FCF62093D036C1B0C6205FD380FBB"
35+
yum_repo_baseurl: "http://repo.powerdns.com/centos/$basearch/$releasever/auth-50"
36+
yum_debug_symbols_repo_baseurl: "http://repo.powerdns.com/centos/$basearch/$releasever/auth-50/debug"
37+
name: "powerdns-auth-50"
38+
3939
default_pdns_service_overrides: >-
4040
{{ { 'User' : pdns_user
4141
, 'Group' : pdns_group

0 commit comments

Comments
 (0)