I hope that this confusion is cleared up with the advent of this

http://www.cfengine.org/cftimes/articles/0000000021.html

M

Ian Goldstein wrote:
> 
> That explains it.  I assumed that system was some sort of reserved
> Keyword.  Everything is consistent again.
> 
> thanks,
> 
> 
> 
> 
> 
> 
> *Brendan Strejcek <strej...@gmail.com>*
> 
> 12/23/2009 07:42 PM
> 
>       
> To
>       Ian Goldstein <igoldst...@jefferies.com>
> cc
>       help-cfengine@cfengine.org
> Subject
>       Re: beginner help again.
> 
> 
>       
> 
> 
> 
> 
> 
> Where is the 'system' perms body definition?
> 
> On Wed, Dec 23, 2009 at 6:42 PM, Ian Goldstein
> <igoldst...@jefferies.com> wrote:
>>
>> I have been playing around with remote copies and I got a small copy
>> working. Here is my specific question relating to perms.
>> I was looking at some examples and thought this may work.  I realize the
>> benefits of specifying perms => my_p("600") so this is more a question at
>> this point.
>>
>> Thanks
>>
>>
>> here is my error:
>>
>> [r...@testserver  inputs]# cf-agent -f remote.cf
>> Undeclared promise body "system()" was referenced in a promise
>> No such FnCall "system()" in promise @ /var/cfengine/inputs/remote.cf near
>> line 20
>> Summarizing promises as text to /var/cfengine/inputs/remote.cf.txt
>> Summarizing promises as html to /var/cfengine/inputs/remote.cf.html
>> cf-agent was not able to get confirmation of promises from cf-promises, so
>> going to failsafe
>>
>> =================================================
>>         Here is my remote.cf
>> =================================================
>> body common control
>>
>> {
>> bundlesequence  => { "example"  };
>> }
>>
>> body server control
>> {
>> allowconnects         => { "127.0.0.1" , "10.16.73.143", "::1" };
>> #allowallconnects      => { "127.0.0.1" , "10.16.73.143", "::1" };
>> #trustkeysfrom         => { "127.0.0.1" , "10.16.73.143", "::1" };
>> }
>>
>> bundle agent example
>> {
>> files:
>>
>> "/var/tmp/inputs"
>>
>>    perms => system("600"),                ###<<<---- cf3 does not seem to
>> like this statement.
>> ##   perms => my_p("600"),                ###   cf3 likes this stamement
>> when uncommenting out the perms promise below
>>    copy_from => rcp("/tmp/cfinputs","remotehost"),
>>    depth_search => recurse("inf"),
>>    action => immediate;
>> }
>>
>>
>> # Library template
>>
>>
>> body copy_from rcp(file,server)
>>
>> {
>> servers => { "$(server)" };
>> source  => "$(file)";
>> #trustkey => "true";
>> }
>>
>> body depth_search recurse(d)
>> {
>> depth =>"$(d)";
>> exclude_dirs => {"tmp1"};
>> }
>>
>> #body perms my_p(p)
>>
>> #{
>> #mode  => "$(p)";
>> #}
>>
>>
>>
>>
>>
>>
>> Jefferies archives and monitors outgoing and incoming e-mail. The contents
>> of this email, including any attachments, are confidential to the ordinary
>> user of the email address to which it was addressed. If you are not the
>> addressee of this email you may not copy, forward, disclose or
> otherwise use
>> it or any part of it in any form whatsoever. This email may be produced at
>> the request of regulators or in connection with civil litigation.
> Jefferies
>> accepts no liability for any errors or omissions arising as a result of
>> transmission. Use by other than intended recipients is prohibited.  In the
>> United Kingdom, Jefferies operates as Jefferies International Limited;
>> registered in England: no. 1978621; registered office: Vintners Place, 68
>> Upper Thames Street, London EC4V 3BJ.  Jefferies International Limited is
>> authorised and regulated by the Financial Services Authority.
>> _______________________________________________
>> Help-cfengine mailing list
>> Help-cfengine@cfengine.org
>> https://cfengine.org/mailman/listinfo/help-cfengine
>>
>>
> 
> 
> 
> 
> 
> Jefferies archives and monitors outgoing and incoming e-mail. The
> contents of this email, including any attachments, are confidential to
> the ordinary user of the email address to which it was addressed. If you
> are not the addressee of this email you may not copy, forward, disclose
> or otherwise use it or any part of it in any form whatsoever. This email
> may be produced at the request of regulators or in connection with civil
> litigation. Jefferies accepts no liability for any errors or omissions
> arising as a result of transmission. Use by other than intended
> recipients is prohibited.  In the United Kingdom, Jefferies operates as
> Jefferies International Limited; registered in England: no. 1978621;
> registered office: Vintners Place, 68 Upper Thames Street, London EC4V
> 3BJ.  Jefferies International Limited is authorised and regulated by the
> Financial Services Authority.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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