diff options
author | varac <varacanero@zeromail.org> | 2012-10-12 14:01:11 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2012-10-12 14:01:11 +0200 |
commit | df1cb1b7445adcabbe355290d1e720040b916f6b (patch) | |
tree | bb4991e73c1e3d98ac4da6aae07c3683317094fc /puppet/modules/site_config/manifests | |
parent | 9fc9b19057fcf322e8d3fcaead0032859f873f53 (diff) |
+ site_config::resolvconf
Diffstat (limited to 'puppet/modules/site_config/manifests')
-rw-r--r-- | puppet/modules/site_config/manifests/init.pp | 4 | ||||
-rw-r--r-- | puppet/modules/site_config/manifests/resolvconf.pp | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/puppet/modules/site_config/manifests/init.pp b/puppet/modules/site_config/manifests/init.pp index 64eb06f4..8aa1b54d 100644 --- a/puppet/modules/site_config/manifests/init.pp +++ b/puppet/modules/site_config/manifests/init.pp @@ -1,7 +1,11 @@ class site_config { + # default class, use by all hosts + include apt, lsb, git # configure ssh and inculde ssh-keys include site_config::sshd + # configure /etc/resolv.conf + include site_config::resolvconf } diff --git a/puppet/modules/site_config/manifests/resolvconf.pp b/puppet/modules/site_config/manifests/resolvconf.pp new file mode 100644 index 00000000..ec3ce9e9 --- /dev/null +++ b/puppet/modules/site_config/manifests/resolvconf.pp @@ -0,0 +1,13 @@ +class site_config::resolvconf { + package { 'bind9': + ensure => installed, + } + + $domain_hash = hiera('domain') + $domain = $domain_hash['public'] + + $resolvconf_search = $domain + $resolvconf_domain = $domain + $resolvconf_nameservers = '127.0.0.1 # caching-only local bind:87.118.100.175 # http://server.privacyfoundation.de' + include resolvconf +} |