diff options
author | varac <varacanero@zeromail.org> | 2012-10-12 15:01:34 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2012-10-12 15:01:34 +0200 |
commit | 18482bf1a47474771f72bb92e766bff2781ad3fd (patch) | |
tree | 4d0eccf0d12cfbf17baea89d9e95390549088d24 /puppet/modules/site_config | |
parent | 082efdddf4b5a4c741a655e6833b8d86bb717303 (diff) |
new resolvconf module uses parameterized class
Diffstat (limited to 'puppet/modules/site_config')
-rw-r--r-- | puppet/modules/site_config/manifests/resolvconf.pp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/puppet/modules/site_config/manifests/resolvconf.pp b/puppet/modules/site_config/manifests/resolvconf.pp index ec3ce9e9..6536969a 100644 --- a/puppet/modules/site_config/manifests/resolvconf.pp +++ b/puppet/modules/site_config/manifests/resolvconf.pp @@ -4,10 +4,13 @@ class site_config::resolvconf { } $domain_hash = hiera('domain') - $domain = $domain_hash['public'] + $domain_public = $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 + # 127.0.0.1: caching-only local bind + # 87.118.100.175: http://server.privacyfoundation.de + class { 'resolvconf': + $domain = $domain_public, + $search = $domain_public, + $nameservers = [ '127.0.0.1', '87.118.100.175' ] + } } |