Skip to content
This repository has been archived by the owner on Jul 31, 2021. It is now read-only.

Commit

Permalink
Add option for enabling DNSSEC support for generic SQL backends
Browse files Browse the repository at this point in the history
  • Loading branch information
insertjokehere authored and William Hughes committed Jul 24, 2016
1 parent afe0340 commit 920ea14
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ All parameters specific to a backend can be supplied using the `options` paramet
password => 'password',
dbname => 'powerdns',
port => '3306',
dnssec => 'yes'
}

### PowerDNS with PostgreSQL (using Hiera)
Expand All @@ -69,6 +70,7 @@ All parameters specific to a backend can be supplied using the `options` paramet
powerdns::backend::gpgsql::password: 'password'
powerdns::backend::gpgsql::dbname: 'powerdns'
powerdns::backend::gpgsql::port: 5432
powerdns::backend::gpgsql::dnssec: 'no'

## Todo

Expand Down
2 changes: 2 additions & 0 deletions manifests/backend/gmysql.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
$password,
$dbname,
$port = 3306,
$dnssec = 'no'
) {
$backend_package_name = 'pdns-backend-mysql'

Expand All @@ -34,6 +35,7 @@
'password' => $password,
'dbname' => $dbname,
'port' => $port,
'dnssec' => $dnssec
}

file { "${::powerdns::config::config_path}/pdns.d/gmysql.conf":
Expand Down
2 changes: 2 additions & 0 deletions manifests/backend/gpgsql.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
$password,
$dbname,
$port = 5432,
$dnssec = 'no'
) {
$backend_package_name = $::osfamily ? {
'RedHat' => 'pdns-backend-postgresql',
Expand All @@ -37,6 +38,7 @@
'password' => $password,
'dbname' => $dbname,
'port' => $port,
'dnssec' => $dnssec
}

file { "${::powerdns::config::config_path}/pdns.d/gpgsql.conf":
Expand Down
2 changes: 2 additions & 0 deletions manifests/backend/gsqlite3.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
$database,
$synchronous,
$foreign_keys,
$dnssec = 'no'
) {
$backend_package_name = $::osfamily ? {
'Debian' => 'pdns-backend-sqlite3',
Expand All @@ -33,6 +34,7 @@
'database' => $database,
'pragma-synchronous' => $synchronous,
'pragma-foreign-keys' => $foreign_keys,
'dnssec' => $dnssec
}

file { "${::powerdns::config::config_path}/pdns.d/gsqlite3.conf":
Expand Down

0 comments on commit 920ea14

Please sign in to comment.