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 fine, when /etc/resolv.conf is now a link
> (ensure changed 'file' to 'link'). At first
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"
thanks!!!
> * don't use name. If anything, use "path" but I recommend just
> declaring file {'/etc/resolv.conf': content => ...).
Will do, but I have name in my prod env and works fine.
Anyway, as it's not described in type ref and some of you already
recommended, I'll change.
> * If you still have strange results try to use an explicit ensure (you
> should always specfy one anyways. So use ensure => 'file' to make
> sure its a normal file
> * If you still get strange results, test to set target => undef and
> source => undef. If this helps, you have set a default somewhere.
> But maybe there is just a missing bracket somewhere so puppet will
> try to parse different resource definitions as one
thanks for the debugging tips :-)
> -Stefan
Cheers,
Arnau
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.