summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/files.pp4
-rw-r--r--manifests/init.pp2
2 files changed, 4 insertions, 2 deletions
diff --git a/manifests/files.pp b/manifests/files.pp
index 4f36a57..e643ee6 100644
--- a/manifests/files.pp
+++ b/manifests/files.pp
@@ -8,7 +8,7 @@ class augeas::files {
# ensure no file not managed by puppet ends up in there.
file { $lens_dir:
ensure => directory,
- purge => true,
+ purge => $::augeas::purge,
force => true,
recurse => true,
recurselimit => 1,
@@ -27,7 +27,7 @@ class augeas::files {
file { "${lens_dir}/tests":
ensure => directory,
- purge => true,
+ purge => $::augeas::purge,
force => true,
mode => '0644',
owner => 'root',
diff --git a/manifests/init.pp b/manifests/init.pp
index 80fbbd8..206f65c 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -6,10 +6,12 @@
# ['version'] - the desired version of Augeas
# ['ruby_version'] - the desired version of the Ruby bindings for Augeas
# ['lens_dir'] - the lens directory to use
+# ['purge'] - whether to purge lens directories
class augeas (
$version = $augeas_version,
$ruby_version = $augeas_ruby_version,
$lens_dir = $augeas::params::lens_dir,
+ $purge = true,
) inherits augeas::params {
class {'::augeas::packages': } ->