aboutsummaryrefslogtreecommitdiff
path: root/modules/etckeeper/manifests/run.pp
blob: ddbb4e16a283f2c699302f7da55f0bac8358510d (plain) (blame)
1
2
3
4
5
6
7
define etckeeper::run ($stages = [Stage['main']], $refreshonly = true, $reason = 'puppet run') {
  exec { "etckeeper::run::${name}":
    refreshonly => $refreshonly,
    command     => "/usr/bin/etckeeper commit '${reason}' || true",
    subscribe   => $stages
  }
}