Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix github issue #1

  • Loading branch information...
commit c64fae0e1734619970b2f960c290c6594d1aaa5d 1 parent 3bb4ead
@arioch authored
View
10 README.md
@@ -21,3 +21,13 @@
}
}
+## Caveats
+
+By default the module will purge any settings that are not managed by Puppet.
+While not advised you can disable this feature:
+
+ node /box/ {
+ class { 'ulimit':
+ purge => false,
+ }
+
View
2  manifests/config.pp
@@ -9,7 +9,7 @@
file { $::ulimit::config_dir:
ensure => directory,
recurse => true,
- purge => true;
+ purge => $::ulimit::purge,
}
}
View
3  manifests/init.pp
@@ -3,7 +3,8 @@
class ulimit (
$config_dir = $ulimit::params::config_dir,
$config_group = $ulimit::params::config_group,
- $config_user = $ulimit::params::config_user
+ $config_user = $ulimit::params::config_user,
+ $purge = $ulimit::params::purge
) inherits ulimit::params {
include ulimit::config
View
1  manifests/params.pp
@@ -4,5 +4,6 @@
$config_dir = '/etc/security/limits.d'
$config_group = 'root'
$config_user = 'root'
+ $purge = true
}
Please sign in to comment.
Something went wrong with that request. Please try again.