diff options
author | am <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279> | 2008-03-10 11:51:43 +0000 |
---|---|---|
committer | am <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279> | 2008-03-10 11:51:43 +0000 |
commit | f2ed8f04e48e9f878f25ed78daf2509e8029d6d9 (patch) | |
tree | 14e4cac54fe41b9526f111285001ef51a1e11b3e | |
download | puppet-resolvconf-f2ed8f04e48e9f878f25ed78daf2509e8029d6d9.tar.gz puppet-resolvconf-f2ed8f04e48e9f878f25ed78daf2509e8029d6d9.tar.bz2 |
new module to create resolv.conf
git-svn-id: https://svn/ipuppet/trunk/modules/resolvconf@1053 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
-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 + } +} + + + |