On Jan 8, 2011, at 3:52 AM, Adam Nielsen wrote:

> 2) Because of the exec command, /etc/timezone gets overwritten without a 
> backup being made like with other functions. Is there a way to get the file 
> included in the file bucket?  I imagine I'd have to add an "onlyif" directive 
> to make sure this only happened if the file contents changed.

Nope.  Puppet can't infer what files it should backup for an exec.  What you 
can do is add a layer of indirection if you need it.

*) Create a temp folder that won't be wiped on reboot.  I use 
/usr/local/puppet_private for everything like this.
*) Use your exec to create the file in there. ie at 
/usr/local/puppet_private/timezone
*) Use file to copy from /usr/local/puppet_private/timezone to /etc/timezone so 
you get "file" to filebucket the old file.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to