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 <[email protected]> wrote: > 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 replace. > > On Friday 10 October 2014 11:33 AM, ganesh634 wrote: > >> 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:30, ganesh634 wrote: >> >> >> >> How can i identify if the file content is changed in subsequent >> client run. >> Need this information for new resource implementation, which will >> take action >> only if file contents are modified. >> The file will be created on client using template resource. >> >> Is there a way to cache information of previous client run if the >> client is running in cron mode. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <mailto:puppet-users+ >> [email protected]>. >> To view this discussion on the web visit https://groups.google.com/d/ >> msgid/puppet-users/489716ef-08f0-4c65-ac7a-224ddf61f5a0% >> 40googlegroups.com <https://groups.google.com/d/ >> msgid/puppet-users/489716ef-08f0-4c65-ac7a-224ddf61f5a0% >> 40googlegroups.com?utm_medium=email&utm_source=footer>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CA%2B6y2sFFKSGVOCSuV7NUSC%3DQDjbFo5FMWDSkZ%2B5kt0%2B0%2BQ%3DFMg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
