On 01/20/2012 08:51 AM, Nick Anderson wrote:
> On 01/20/2012 01:35 AM, no-re...@cfengine.com wrote:
>> Forum: CFEngine Help
>> Subject: Re: maintaining /etc/security/limits.conf with cf3
>> Author: zzamboni
>> Link to topic: https://cfengine.com/forum/read.php?3,21465,24610#msg-24610
>>
>> The code below works, if CFEngine is the only thing that touches the file, 
>> because it needs to empty it every time.
>>
>> The parameters are declared with underscores instead of spaces, and those 
>> underscores are replaced by spaces during the edit operation.
>>
>> It's not very elegant but it works.
> 
> Thanks Diego,
> I cant think of a better way to do it yet, would be nice to be able to
> just selectively edit it.
> 
I had thought for a minute maybe do it like this
  "limits[@group][soft][nproc]"                   string => "2047";
  "limits[user][soft][nproc]"                   string => "2047";
  "limits[user][hard][nproc]"                   string => "16384";
  "limits[@group][hard][nproc]"                   string => "16384";

But no way to getindices for more than single dimensional array

-- 
Nick Anderson <n...@cmdln.org>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to