Bug 33396 - FR: file triggers
: FR: file triggers
Status: NEW
: Sisyphus
(All bugs in Sisyphus/puppet)
: unstable
: all Linux
: P3 enhancement
Assigned To:
  Show dependency tree
Reported: 2017-04-19 20:09 by
Modified: 2017-04-20 14:59 (History)



You need to log in before you can comment on or make changes to this bug.

Description From 2017-04-19 20:09:55
puppet agent could invoke special file triggers when important files are

For example, I've described one case like this in a manifest:

    file {
        ensure  => present,
        content => template('apipkg/dnsmasq/resolv.conf.erb'),
        notify => Exec['update_chrooted']
    exec { 'update_chrooted':
      command     => 'update_chrooted all',
      refreshonly => true,

puppet agent could have had built-in triggers for such files. Perhaps, invoking
the triggers from /usr/lib/rpm/*.filetrigger would also make sense.

The tricky thing is to do this not very often and not very late: after a group
of files is modified, but before any other action (so that there is no attempt
to use the modified files).