]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame - modules/etckeeper/manifests/run.pp
Add etckeeper
[perso/Immae/Projets/Puppet.git] / modules / etckeeper / manifests / run.pp
CommitLineData
cbb2c25b
IB
1define etckeeper::run ($stages = [Stage['main']], $refreshonly = true, $reason = 'puppet run') {
2 exec { "etckeeper::run::${name}":
3 refreshonly => $refreshonly,
4 command => "/usr/bin/etckeeper commit '${reason}' || true",
5 subscribe => $stages
6 }
7}