-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rocky9 support with postgres backend #185
base: main
Are you sure you want to change the base?
Changes from all commits
9958bd3
0c13c42
44233e7
3b6721d
4da10f2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
powerdns::supporting_repos: | ||
crb: | ||
descr: 'CentOS Linux $releasever - CRB' | ||
enabled: true | ||
gpgcheck: true | ||
gpgkey: 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial' | ||
mirrorlist: 'http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=CRB&infra=$infra' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
powerdns::supporting_repos: | ||
powertools: | ||
descr: 'CentOS Linux $releasever - PowerTools' | ||
enabled: true | ||
gpgcheck: true | ||
gpgkey: 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial' | ||
mirrorlist: 'http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=PowerTools&infra=$infra' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
powerdns::supporting_repos: | ||
crb: | ||
descr: 'Rocky Linux $releasever - CRB' | ||
enabled: true | ||
gpgcheck: true | ||
gpgkey: 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial' | ||
mirrorlist: 'https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=CRB-$releasever' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
powerdns::supporting_repos: | ||
powertools: | ||
descr: 'Rocky Linux $releasever - PowerTools' | ||
enabled: true | ||
gpgcheck: true | ||
gpgkey: 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial' | ||
mirrorlist: 'https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=PowerTools-$releasever' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# powerdns::authoritative | ||
# | ||
# @param group | ||
# Name of the group associated with the pdns authoritative service - needed to ensure the config file can be read. | ||
class powerdns::authoritative ( | ||
String $group = 'pdns', | ||
) inherits powerdns { | ||
# install the powerdns package | ||
package { $powerdns::authoritative_package_name: | ||
|
@@ -10,6 +14,14 @@ | |
|
||
include "powerdns::backends::${powerdns::backend}" | ||
|
||
file { $powerdns::authoritative_config: | ||
ensure => 'file', | ||
owner => 'root', | ||
group => $group, | ||
mode => '0640', | ||
Comment on lines
+20
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This might potentially break things on other distributions, if the group is missing or it's not running under this group or There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, does this mean PowerDNS does not create a config anymore during installation? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Config file will still be installed with the package installation, but managing it like that isn't going to work. It will definitely break on other distros There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting. I can't speak to what the behavior is on other distros, however, the file was created with 0600 permissions on Rocky 9.5 in my testing. I'll rework it so this change only applies on Rocky9 or perhaps Redhat 9 generally. |
||
before => Service['pdns'], | ||
} | ||
|
||
service { 'pdns': | ||
ensure => running, | ||
name => $powerdns::authoritative_service_name, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,8 +33,7 @@ | |
{ | ||
"operatingsystem": "CentOS", | ||
"operatingsystemrelease": [ | ||
"8", | ||
"9" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why drop 9? It should really be the only version since 8 is EOL. |
||
"8" | ||
] | ||
}, | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CentOS 8 is EOL so I don't see a good reason to add this