diff options
-rw-r--r-- | manifests/init.pp | 27 |
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 + } +} + + + |