PrepModule happens as soon as it is reached. You are thinking of
actionsequence-based modules that happen after all class definitions.

It would probably be useful to have the username defined as a class as
well as a variable containing the username.

-Jason Martin

> -----Original Message-----
> From: 
> [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> org] On Behalf Of Christopher Browne
> Sent: Wednesday, December 21, 2005 7:47 AM
> To: help-cfengine@gnu.org
> Subject: Re: Determining user ID
> 
> 
> Jason Martin <[EMAIL PROTECTED]> writes:
> > Write a module to do that and call it via PrepModule.
> 
> Huh???  That seems just dramatic overkill.  Furthermore, that 
> seems to run *after* classes are defined, not before, 
> therefore making it useless for the purpose of defining classes.
> 
> It seems entirely surprising that there isn't a class to 
> represent the user running cfagent.
> 
> That's a Useful Bit Of Information for any of the cases where 
> it is not being run by root.
> -- 
> output = ("cbbrowne" "@" "acm.org") http://cbbrowne.com/info/sgml.html
> You don't *run* programs on Ultrix.
>                 - Mark Moraes
> Right, you chase them.
>                 - Rayan Zachariassen 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org 
> http://lists.gnu.org/mailman/listinfo/help-> cfengine
> 


_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to