Re: [Puppet Users] Re: Identifying file content change in subsequent client run

2014-10-11 Thread Ganesh Nalawade
Thanks John, your reply was very helpful. Regards, Ganesh On Fri, Oct 10, 2014 at 8:28 PM, jcbollinger wrote: > > > On Friday, October 10, 2014 6:29:32 AM UTC-5, ganesh634 wrote: >> >> The goal it to implement a new resource type that will read the >> config file and apply it on device on first

Re: [Puppet Users] Re: Identifying file content change in subsequent client run

2014-10-10 Thread jcbollinger
On Friday, October 10, 2014 6:29:32 AM UTC-5, ganesh634 wrote: > > The goal it to implement a new resource type that will read the > config file and apply it on device on first client run. > > For subsequent client run the apply action should be done only > if the content of config file is chan

Re: [Puppet Users] Re: Identifying file content change in subsequent client run

2014-10-10 Thread Ganesh Nalawade
The goal it to implement a new resource type that will read the config file and apply it on device on first client run. For subsequent client run the apply action should be done only if the content of config file is changed. On Fri, Oct 10, 2014 at 4:34 PM, Ashish Jaiswal wrote: > Hi, > > Basi

Re: [Puppet Users] Re: Identifying file content change in subsequent client run

2014-10-10 Thread Ashish Jaiswal
Hi, Basically you don't need to cache it, you can store the reports in puppetdb or in filebucket. https://docs.puppetlabs.com/references/3.7.latest/type.html#file-attribute-mtime Or let us know what is your actual goal. You don't want your file to get change, if change (check mtime) then rep

[Puppet Users] Re: Identifying file content change in subsequent client run

2014-10-09 Thread ganesh634
Thanks for your reply. In that case i need to cache the mtime for file and on subsequent client run need to check if mtime is same or not. How to cache this information for client running in cron mode. Is there a way to save context of previous client run. On Friday, 10 October 2014 10:50:58 UTC+5