2009/12/24 Brendan Strejcek <strej...@gmail.com>:
> Where is the 'system' perms body definition?

I fully sympathise with the OP's problems here, not realising that
system("600") refers to a user defined perms body. I made the same
mistake myself - in fact, one of my biggest problems as a new user of
cf3 and the examples provided is to figure out whether things are user
defined or not. Using the word "system" for a user defined body is
legal in cf3, but can be very confusing - I of course mixed it up with
the Perl system() call.

Instead, I have forced myself to use the convention indicated by the
OP - all compound bodies I define are prefixed with "xyz_" (for
example xyz_perms("600") in this case), where xyz is a company
abbreviation. I think this is a good practise and would recommend it
in all cookbook policies, for example using the "my_" prefix. If you
use something my_perms("600"), it is clear that my_perms is something
you must define yourself.

- Erlend Leganger
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to