Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Override a file{} directive - is it possible?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sean Carolan  
View profile   Translate to Translated (View Original)
 More options Aug 20 2012, 5:08 pm
From: Sean Carolan <scaro...@gmail.com>
Date: Mon, 20 Aug 2012 14:08:07 -0700
Local: Mon, Aug 20 2012 5:08 pm
Subject: Re: [Puppet Users] Override a file{} directive - is it possible?

>> 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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.