Re: [Puppet Users] using puppet to configure local settings

2012-03-15 Thread Russell Van Tassell
This works ... or you can just do a simple template if you don't wish to use the arguments, as Mr. Horvath has done, below (which probably scales a bit better)... just plug in the right ip address (and network name) for your second server as-dictated from "facter" on that machine... I've used 10.0.

Re: [Puppet Users] using puppet to configure local settings

2012-03-15 Thread John Kennedy
I am new to puppet so I do not know the syntax for this but I understand it to work. You can ensure that a specific string exists in a file. If not, puppet will insert that string. To remove a string I think is also possible but not 100% sure on that. Another option would be to have puppet just s

Re: [Puppet Users] using puppet to configure local settings

2012-03-15 Thread Peter Horvath
Hey, I am using this to configure resolve conf manifest: define resolv_conf($domainname = "$domain", $searchpath, $nameservers) { file { "/etc/resolv.conf": owner => root, group => root, mode=> 644, content => template

[Puppet Users] using puppet to configure local settings

2012-03-15 Thread Sharuzzaman Ahmat Raslan
Hi, I was asked by my boss if puppet can handle the following scenario. - 2 server (A and B) - same config for each server, eg. /etc/resolv.conf (nameserver 1.2.3.4) - but B should have a local unique requirement of another nameserver 5.6.7.8 so, A will have nameserver 1.2.3.4 but B will have n