summaryrefslogtreecommitdiff
path: root/puppet/modules/site_config/manifests
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-12-16 14:45:28 +0100
committervarac <varacanero@zeromail.org>2012-12-16 14:45:28 +0100
commit98063e47889ad7a1b2fbb63513b428c2d53bd1f3 (patch)
tree70f2ba213cc75fe0457dcb7afc962c774fd3591a /puppet/modules/site_config/manifests
parentc32c92e18d98ed936e55d2aff29afebe49d58d7d (diff)
bind: use local, ipv4 only name-caching resolver (fixes #1171)
Diffstat (limited to 'puppet/modules/site_config/manifests')
-rw-r--r--puppet/modules/site_config/manifests/resolvconf.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/puppet/modules/site_config/manifests/resolvconf.pp b/puppet/modules/site_config/manifests/resolvconf.pp
index bd0539b9..b70dfa1c 100644
--- a/puppet/modules/site_config/manifests/resolvconf.pp
+++ b/puppet/modules/site_config/manifests/resolvconf.pp
@@ -1,8 +1,29 @@
class site_config::resolvconf {
+
+ # bind9
package { 'bind9':
ensure => installed,
}
+ service { 'bind9':
+ ensure => running,
+ require => Package['bind9'],
+ }
+
+ file { '/etc/default/bind9':
+ source => 'puppet:///modules/site_config/bind9',
+ require => Package['bind9'],
+ notify => Service['bind9'],
+ }
+
+ file { '/etc/bind/named.options':
+ source => 'puppet:///modules/site_config/named.options',
+ require => Package['bind9'],
+ notify => Service['bind9'],
+ }
+
+
+
$domain_hash = hiera('domain')
$domain_public = $domain_hash['public']