summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/base.pp
diff options
context:
space:
mode:
Diffstat (limited to 'sitemodules/profiles/manifests/base.pp')
-rw-r--r--sitemodules/profiles/manifests/base.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/base.pp b/sitemodules/profiles/manifests/base.pp
index 69e369f..2a7aad2 100644
--- a/sitemodules/profiles/manifests/base.pp
+++ b/sitemodules/profiles/manifests/base.pp
@@ -237,4 +237,27 @@ class profiles::base (
ensure => absent,
}
}
+
+ package { 'etckeeper':
+ ensure => installed,
+ }
+ file { '/etc/etckeeper/post-puppet.d':
+ ensure => directory,
+ owner => 'root',
+ group => 'root',
+ mode => '0755',
+ require => Package['etckeeper'],
+ }
+ file { '/etc/etckeeper/post-puppet.d/50uncommitted-changes':
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0755',
+ source => 'puppet://modules/profiles/base/etckeeper_post_command.sh',
+ }
+
+ augeas { 'set_puppet_postrun_command':
+ context => '/etc/puppetlabs/puppet/puppet.conf',
+ changes => 'set main/postrun_command "etckeeper post-puppet"',
+ }
}