summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2008-03-10 11:51:43 +0000
committerandreas <andreas@immerda.ch>2008-03-10 11:51:43 +0000
commit22f38f9089f28c7c9a3afb8d1b5ad97f43a0ecba (patch)
tree14e4cac54fe41b9526f111285001ef51a1e11b3e
downloadpuppet-resolvconf-22f38f9089f28c7c9a3afb8d1b5ad97f43a0ecba.tar.gz
puppet-resolvconf-22f38f9089f28c7c9a3afb8d1b5ad97f43a0ecba.tar.bz2
new module to create resolv.conf
-rw-r--r--manifests/init.pp27
1 files changed, 27 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..50043ae
--- /dev/null
+++ b/manifests/init.pp
@@ -0,0 +1,27 @@
+# modules/resolvconf/manifests/init.pp - manage resolvconf stuff
+# Copyright (C) 2007 admin@immerda.ch
+# GPLv3
+
+# modules_dir { "resolvconf": }
+
+define resolveconf (
+ $domain='glei.ch',
+ $search='glei.ch',
+ $nameserver1='212.103.67.60',
+ $nameserver2='212.103.72.231',
+ $nameserver3='192.168.1.104'
+) {
+ $str = "search $search
+domain $domain
+nameserver $nameserver1
+nameserver $nameserver2
+nameserver $nameserver3
+"
+
+ file { "/etc/resolv.conf":
+ content => $str
+ }
+}
+
+
+