summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2014-08-15 17:34:17 +0200
committermh <mh@immerda.ch>2014-08-15 17:34:17 +0200
commit991c3aa7aa2dfa10f3b34a1158774abf7614461b (patch)
treecf07638bf35bbfa10c20d9cefa0476a661227e09 /manifests
parent893625b6253faff3a3ff434c8602d83903021fc7 (diff)
improve handling if we don't have a domain
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp26
1 files changed, 16 insertions, 10 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 190758e..c85b959 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -6,22 +6,28 @@
# Marcel Haerry haerry+puppet(at)puzzle.ch
# Simon Josi josi+puppet(at)puzzle.ch
#
-# This program is free software; you can redistribute
-# it and/or modify it under the terms of the GNU
-# General Public License version 3 as published by
+# This program is free software; you can redistribute
+# it and/or modify it under the terms of the GNU
+# General Public License version 3 as published by
# the Free Software Foundation.
#
class resolvconf(
- $domain = $::domain,
+ $domain = $::domain,
$search = $::domain,
- $nameservers = [ '8.8.8.8' ]
+ $nameservers = [
+ '77.109.138.45',
+ '77.109.139.29',
+ ]
) {
+ $content = $::operatingsystem ? {
+ openbsd => template("resolvconf/resolvconf.${::operatingsystem}.erb"),
+ default => template('resolvconf/resolvconf.erb'),
+ }
file{'/etc/resolv.conf':
- content => $::operatingsystem ? {
- openbsd => template("resolvconf/resolvconf.${::operatingsystem}.erb"),
- default => template('resolvconf/resolvconf.erb'),
- },
- owner => root, group => 0, mode => 0444;
+ content => $content,
+ owner => root,
+ group => 0,
+ mode => '0444';
}
}