natemccurdy
11/10/2022, 6:50 PMCorey Hickey
11/10/2022, 6:51 PMSlackbot
11/10/2022, 6:52 PMCorey Hickey
11/10/2022, 6:52 PMnatemccurdy
11/10/2022, 7:00 PMIf the exec has already run and then receives an event, it runs its command up to two times.That should say something like:
If the exec has already run and then receives an event, it runs only one more time after all the refresh events have been sent. It runs at most two times in this condition: once for the original evaluation, once for all the refresh events.
Corey Hickey
11/10/2022, 7:39 PMrefreshonly is implemented as a test that always fails; this inhibits the normal execution:
https://github.com/puppetlabs/puppet/blob/2990e9c/lib/puppet/type/exec.rb#L407
Refresh events are handled a a separate path to run the command:
https://github.com/puppetlabs/puppet/blob/2990e9c/lib/puppet/type/exec.rb#L672
I had always expected that the resource would "know" whether it is being refreshed or not, and conditionally inhibit the normal execution based on refreshonly and whether any refresh events had been received.Slackbot
11/10/2022, 8:38 PMPedro
11/10/2022, 11:25 PMnatemccurdy
11/10/2022, 11:28 PMnatemccurdy
11/10/2022, 11:28 PMPedro
11/11/2022, 12:17 AMNishar
11/11/2022, 6:38 AMSlackbot
11/11/2022, 6:39 AMDavid Sandilands
11/11/2022, 8:11 AMDavid Sandilands
11/11/2022, 8:11 AMDavid Sandilands
11/11/2022, 8:11 AMNeeloj
11/11/2022, 8:23 AMJacobo Salas
11/11/2022, 9:27 AMJerome Teano
11/11/2022, 9:49 AMGanaparthi Nikhil
11/11/2022, 10:56 AMSlackbot
11/11/2022, 10:56 AMNishar
11/11/2022, 1:53 PMNishar
11/11/2022, 2:00 PMSlackbot
11/11/2022, 5:25 PMBrian Schonecker
11/11/2022, 5:25 PMresources { 'host':
purge => true,
}
but that seems a little non-standard to me. Is using the resources snippet (above) the proper way to purge the /etc/hosts? It does work but the metadadata.json file says that ghoneycutt's module does support purging of unmanaged entries but I've not found the correct way to purge. Should I use the resources trick above?Brian Schonecker
11/11/2022, 5:26 PMresources { 'host':
purge => true,
}
but that seems a little non-standard to me. Is using the resources snippet (above) the proper way to purge the /etc/hosts? It does work but the metadadata.json file from ghoneycutt's module says that the module does support purging of unmanaged entries but I've not found the correct way to purge. Should I use the resources trick above?William Myers
11/11/2022, 10:07 PMSlackbot
11/11/2022, 10:10 PMWilliam Myers
11/11/2022, 11:30 PMWilliam Myers
11/11/2022, 11:37 PM