On Tuesday 18 December 2012 at 10:20, R.I.Pienaar wrote:

> 
> 
> ----- Original Message -----
> > From: "Richard Pijnenburg" <[email protected] 
> > (mailto:[email protected])>
> > To: [email protected] (mailto:[email protected])
> > Sent: Tuesday, December 18, 2012 7:59:53 AM
> > Subject: Re: [Puppet-dev] file concat library
> > 
> > will be able to see exactly what changes with the puppet runs ( this
> > is not possible with the exec thing )
> 
> 
> 
> actually it is - the concat gives you full diffs of each snipper and the
> final file it is managing on any change, do you have an example of what
> you mean here?
> 
> Here's an example of the concat module restoring a line to the motd
> that got removed, full diffs and standard filebucket behavior remains
> in place and fully functional:
> 
> /Stage[main]/Motd/Concat[/etc/motd]/File[/etc/motd]/content: 
> --- /etc/motd 2012-12-18 09:18:53.817195258 +0000
> +++ /tmp/puppet-file20121218-14618-1wl2lyi-0 2012-12-18 09:19:26.127176896 
> +0000
> @@ -7,5 +7,6 @@
> - ip6tables
> - iptables
> - mongodb
> + - pptp server
> 
> 
> Info: FileBucket adding {md5}e2e7f25ac68ac9f74073804cc57748dd
> Info: /Stage[main]/Motd/Concat[/etc/motd]/File[/etc/motd]: Filebucketed 
> /etc/motd to puppet with sum e2e7f25ac68ac9f74073804cc57748dd
> /Stage[main]/Motd/Concat[/etc/motd]/File[/etc/motd]/content: content changed 
> '{md5}e2e7f25ac68ac9f74073804cc57748dd' to 
> '{md5}ac6612feae066bbdf274848cf6186954'
> 

This doesn't work properly on a --noop run though, Can't see the changes to the 
final file as the temp files won't be written and exec not executed. If the 
--noop run is the first run for that concat you will even get a resource 
failure when it tries to read the local file the exec should have produced.
 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev?hl=en.

Reply via email to