Re: [Puppet Users] Re: file content

2010-11-26 Thread Nigel Kersten
On Thu, Nov 25, 2010 at 2:08 AM, Arnau Bria wrote: > That gave me the clue! > From doc, ensure... it talks about possible values: present, absent... > "Anything other than those values will be considered to be a symlink" For what it's worth, I consider this a bug. We should have present, absent

Re: [Puppet Users] Re: file content

2010-11-25 Thread Arnau Bria
On Wed, 24 Nov 2010 21:13:37 +0100 Stefan Schulte wrote: Hi all, I think I get it... class File default was: File { ensure => prsent, mode=> 644, owner => root, group => root, } notice prsent... and not present. ^ > I dont think its working

Re: [Puppet Users] Re: file content

2010-11-24 Thread Stefan Schulte
On Wed, Nov 24, 2010 at 05:03:45PM +0100, Arnau Bria wrote: > On Wed, 24 Nov 2010 07:22:11 -0800 (PST) > jcbollinger jcbollinger wrote: > > > > On Nov 24, 6:17 am, Ohad Levy wrote: > Hi ! > > I'm getting a little crazy with this... I'll paste some code and see if > you see what's happening... >

Re: [Puppet Users] Re: file content

2010-11-24 Thread Arnau Bria
On Wed, 24 Nov 2010 07:39:09 -0800 (PST) jcbollinger jcbollinger wrote: > > > On Nov 24, 6:17 am, Ohad Levy wrote: > > You probably have a File statement somewhere (like site.pp) which > > has a default source or target attributes. > > Or, it could be because you have written "name =>" where y

Re: [Puppet Users] Re: file content

2010-11-24 Thread Arnau Bria
On Wed, 24 Nov 2010 07:22:11 -0800 (PST) jcbollinger jcbollinger wrote: > On Nov 24, 6:17 am, Ohad Levy wrote: Hi ! I'm getting a little crazy with this... I'll paste some code and see if you see what's happening... > > You probably have a File statement somewhere (like site.pp) which > > has

[Puppet Users] Re: file content

2010-11-24 Thread jcbollinger
On Nov 24, 5:32 am, Arnau Bria wrote: [...] > I tried the example > fromhttp://docs.puppetlabs.com/references/stable/type.html#filelike > > $srt="search mydomain.com \nnameserver 192.168.1.1 \ > \nnameserver192.168.1.2" > > file { >'default_ntp': > name=> '/etc/ntp.conf', >

[Puppet Users] Re: file content

2010-11-24 Thread jcbollinger
On Nov 24, 6:17 am, Ohad Levy wrote: > You probably have a File statement somewhere (like site.pp) which has a > default source or target attributes. Or, it could be because you have written "name =>" where you want "path =>". Or you could omit both and simply title your resource with the path

[Puppet Users] Re: file content

2010-11-24 Thread jcbollinger
On Nov 24, 6:17 am, Ohad Levy wrote: > You probably have a File statement somewhere (like site.pp) which has a > default source or target attributes. Right. And if you do then it is certainly wrong, because default source or target just does not make sense. If that's not it, then make sure yo