]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blob - modules/etckeeper/manifests/run.pp
Add etckeeper
[perso/Immae/Projets/Puppet.git] / modules / etckeeper / manifests / run.pp
1 define 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 }