From cbb2c25bf2f71c7840bd599739e8d2569b159c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 11 Aug 2016 01:13:22 +0200 Subject: Add etckeeper --- modules/etckeeper/manifests/run.pp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 modules/etckeeper/manifests/run.pp (limited to 'modules/etckeeper/manifests/run.pp') diff --git a/modules/etckeeper/manifests/run.pp b/modules/etckeeper/manifests/run.pp new file mode 100644 index 0000000..ddbb4e1 --- /dev/null +++ b/modules/etckeeper/manifests/run.pp @@ -0,0 +1,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 + } +} -- cgit v1.2.3