Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ Rakefile: | |
param_docs_pattern: | ||
- manifests/init.pp | ||
- manifests/plugin/*.pp | ||
- manifests/plugin/dns/*.pp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# = Foreman Proxy PowerDNS DNS plugin | ||
# | ||
# This class installs the PowerDNS DNS plugin for Foreman proxy | ||
# | ||
# === Parameters: | ||
# | ||
# $mysql_hostname:: MySQL server hostname | ||
# | ||
# $mysql_username:: MySQL server username | ||
# | ||
# $mysql_password:: MySQL server password | ||
# | ||
# $mysql_database:: MySQL server database | ||
# | ||
# $pdnssec:: pdnssec command to run rectify-zone with. Can be an empty string. | ||
# | ||
class foreman_proxy::plugin::dns::powerdns ( | ||
$mysql_hostname = 'localhost', | ||
$mysql_username = 'pdns', | ||
$mysql_password = '', | ||
$mysql_database = 'pdns', | ||
$pdnssec = 'pdnssec', | ||
) { | ||
validate_string($mysql_hostname, $mysql_username, $mysql_password, $mysql_database, $pdnssec) | ||
|
||
foreman_proxy::plugin { 'dns_powerdns': | ||
} -> | ||
foreman_proxy::settings_file { 'dns_powerdns': | ||
module => false, | ||
template_path => 'foreman_proxy/plugin/dns_powerdns.yml.erb', | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
:powerdns_mysql_hostname: "<%= scope.lookupvar('::foreman_proxy::plugin::dns::powerdns::mysql_hostname') %>" | ||
:powerdns_mysql_username: "<%= scope.lookupvar('::foreman_proxy::plugin::dns::powerdns::mysql_username') %>" | ||
:powerdns_mysql_password: "<%= scope.lookupvar('::foreman_proxy::plugin::dns::powerdns::mysql_password') %>" | ||
:powerdns_mysql_database: "<%= scope.lookupvar('::foreman_proxy::plugin::dns::powerdns::mysql_database') %>" | ||
:powerdns_pdnssec: "<%= scope.lookupvar('::foreman_proxy::plugin::dns::powerdns::pdnssec') %>" |