summaryrefslogtreecommitdiff
path: root/puppet/modules/site_config/manifests/resolvconf.pp
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/site_config/manifests/resolvconf.pp')
-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']