From 22f38f9089f28c7c9a3afb8d1b5ad97f43a0ecba Mon Sep 17 00:00:00 2001 From: andreas Date: Mon, 10 Mar 2008 11:51:43 +0000 Subject: new module to create resolv.conf --- manifests/init.pp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 manifests/init.pp (limited to 'manifests') 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 + } +} + + + -- cgit v1.2.3