voxpupuli / puppet-yum

Puppet module for Yum
https://forge.puppet.com/puppet/yum
MIT License
16 stars 101 forks source link

New type yum::post_transaction_action #216

Closed traylenator closed 3 years ago

traylenator commented 3 years ago

Pull Request (PR) description

A new type is added to install the post-transaction_action plugin for YUM or DNF.

yum::post_transaction_action{'touch_file':
  key     => 'openssh-*',
  command => 'touch /tmp/openssh-package-updated',
}

will touch a file every time an openssh package is installed removed or upgraded.

https://dnf-plugins-core.readthedocs.io/en/latest/post-transaction-actions.html

traylenator commented 3 years ago

So useful - never knew this existed.