On Wed, 05 Jan 2011, Ace wrote:
> Yes this definitely works although it replaces the file and appends
> tmp/filetest is a file managed by puppet who's contents are two lines
> "testme" and "hmm what does this do". The append function appends line
> "works" everytime it runs.

This is a problem that you were warned about.  You have two conflicting
rules about the same file; one rule says "it must contain exactly two
lines, no more and no less -- the two lines must be 'testme' and 'hmm
what does this do'"; the other rule says "it must contain a line that
says 'works'".  You can't simultaneously satisfy both rules, but puppet
tries as hard as it can, removing the "works" line when it focuses on
the "file" rule, and reinstating the "works" line when it focuses on the
"append" rule.

--apb (Alan Barrett)

-- 
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.

Reply via email to