new module to create resolv.conf
authoram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Mon, 10 Mar 2008 11:51:43 +0000 (11:51 +0000)
committeram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Mon, 10 Mar 2008 11:51:43 +0000 (11:51 +0000)
git-svn-id: https://svn/ipuppet/trunk/modules/resolvconf@1053 d66ca3ae-40d7-4aa7-90d4-87d79ca94279

manifests/init.pp [new file with mode: 0644]

diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644 (file)
index 0000000..50043ae
--- /dev/null
@@ -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
+    }
+}
+
+
+