FAQ

It's not really the cleanest-looking thing, but the easiest option for
your particular case is to wrap the file resource in an if statement
like this:
if (! $::security_limits_disabled) {
file { '/etc/security/limits.conf':
...
}
}
Thanks, this is just what I was looking for.
One last question, is it possible to do this:

class profile::server::java {
$security_limits_disabled = true
}

and then simply include that class on my target node? I tried to do
this but the file is still getting overwritten...

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 10 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedAug 17, '12 at 6:46p
activeAug 23, '12 at 10:32p
posts10
users5
websitepuppetlabs.com

People

Translate

site design / logo © 2022 Grokbase