If you adapt to using the standard library, then you should not see any of 
these "under
the hood" details. This is the way to go forward.

M

Andrew J. Millar wrote:
>> Might be something like this following;
>>
>> bundle agent test
>> {
>>  files:
>>   "/root"
>>     create => "true",
>>     perms => m("700"),
>>     file_select => folder(".ssh"),
>>     depth_search => recurse("1");
>>    
>>   "/root/.ssh/authorized_keys"
>>     create => "true",
>>     perms => m("600");
>> }
>>
>> body file_select folder(regex)
>> {
>>  leaf_name  => { ".*$(regex)$"};
>>  file_result => "leaf_name";
>> }
>>
>> body perms m(mode)
>> {
>>  mode => "$(mode)";
>> }
>>
>> body depth_search recurse(d)
>> {
>>  depth => "$(d)";
>> }
>>
>> It should be fine. You should try and see. :-)
> 
> Indeed - I had just come up with a similar promise which does the trick
> :-) It seems a little overkill just to get a directory permission right,
> but it works :-)
> 
> Thanks Nakarin!
> 
> Find great gifts for you this Valentine’s at NET-A-PORTER.COM
> ______________________________________________________________________
> 
> CONFIDENTIALITY NOTICE
> The information in this email is confidential and is intended solely for the 
> addressee. Access to this email by anyone else is unauthorised. If you are 
> not the intended recipient, you must not read, use or disseminate the 
> information. Any views expressed in this message are those of the individual 
> sender, except where the sender specifically states them to be the views of 
> Net a Porter Ltd. 
> 
> Net A Porter Ltd is a company registered in England & Wales Number: 3820604 
> Registered Office: The Dome, Whiteleys Centre, 151 Queensway, London, W2 4YN.
> _____________________________________________________________________
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

-- 
Mark Burgess

-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway

Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to