Re: [Puppet Users] Re: Duplicate declaration for files.

2013-10-15 Thread JuanBrein
Just my 2 cents... is better if you use stdlib -> concat function for /etc/hosts... you can have a default section for all the hosts and a customized one for specific cases. You avoid conflicts as well. Cheers On Monday, October 14, 2013 4:28:39 PM UTC+1, mike wrote: > > Hello, > I fix "the pro

Re: [Puppet Users] Re: Duplicate declaration for files.

2013-10-14 Thread Miguel Angel Coa M.
Hello, I fix "the problem" with a case statement: [...] class baseos::rhel-hosts { case $fqdn { 'new-node.example.com': { file { "/etc/hosts": ensur

[Puppet Users] Re: Duplicate declaration for files.

2013-10-14 Thread jcbollinger
On Friday, October 11, 2013 11:24:44 AM UTC-5, mike wrote: > > Hello, > I'm configuring my linux server with puppet open and is ok. My question is > the next; I've a declared in mi nodes.pp the next: > > [.] > node 'basenode' { > include 'baseos' > include 'motd' >

[Puppet Users] Re: Duplicate declaration for files.

2013-10-14 Thread Rahul Khengare
Hello Mike, Here the baseos file[/etc/hosts] resource get propagated to all the nodes because of inheritance. You again changing the same file in "newnode.example.com" again. Puppet does not allow to edit the same file twice (same resource again) in single run. Work around to that, Create a