CFEngine Help: Re: Bootstrap from alternate location?

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Bootstrap from alternate location? Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23962,23972#msg-23972 zzamboni Wrote: --- > You are right - I was thinking of the regular > update process,but

CFEngine Help: Re: Bootstrap from alternate location?

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Bootstrap from alternate location? Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23962,23971#msg-23971 You are right - I was thinking of the regular update process,but the initial bootstrap seems to be hardcoded. _

CFEngine Help: Re: Bootstrap from alternate location?

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Bootstrap from alternate location? Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23962,23970#msg-23970 zzamboni Wrote: --- > But the directory from where the files are > fetched is determined

CFEngine Help: Re: Bootstrap from alternate location?

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Bootstrap from alternate location? Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23962,23969#msg-23969 The host to use for the policy hub is set using the --bootstrap option, and the "somewhere persistent" is the /var/cfengine/policy_serv

CFEngine Help: Re: Bootstrap from alternate location?

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Bootstrap from alternate location? Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23962,23968#msg-23968 Looks pretty non-overrideable, based on bootstrap.c. I suppose that fetching a remote scalar would not be something I should look for in t

CFEngine Help: Re: Bootstrap from alternate location?

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Bootstrap from alternate location? Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23962,23967#msg-23967 I'm not sure I'm following this. Are you saying that the directory from which the clients pull is configurable by adjusting a variable in

CFEngine Help: Re: Finding the current user running cf-agent

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Finding the current user running cf-agent Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23960,23966#msg-23966 Mike, you are correct, this works fine. ___ Help-cfengine mailing list Help-cfengine@

CFEngine Help: Re: Bootstrap from alternate location?

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Bootstrap from alternate location? Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23962,23965#msg-23965 You could bootstrap the policy hub, then edit the files in /var/cfengine/masterfiles and /var/cfengine/inputs to change the path (in the

CFEngine Help: Re: Finding the current user running cf-agent

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Finding the current user running cf-agent Author: mikesphar Link to topic: https://cfengine.com/forum/read.php?3,23960,23964#msg-23964 Maybe I'm missing something, but shouldn't something like this work? vars: "env_user" string => getenv("USER","20"); ___

CFEngine Help: Re: Finding the current user running cf-agent

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Finding the current user running cf-agent Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23960,23963#msg-23963 You could check $(sys.workdir); if it's /var/cfengine, you're root. Otherwise, it's .cfagent under the homedir of the user. Depend

CFEngine Help: Bootstrap from alternate location?

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Bootstrap from alternate location? Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23962,23962#msg-23962 So, the bootstrap functionlaity looks interesting, but I'm hesitant to have to create /var/cfengine/masterfiles on my policy masters. I tried

CFEngine Help: Re: Finding the current user running cf-agent

2011-11-16 Thread no-reply
Forum: CFEngine Help Subject: Re: Finding the current user running cf-agent Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23960,23961#msg-23961 Hi Matthieu, I don't think there's a function or variable for this. You could use something like this: "cur_user" string =

Finding the current user running cf-agent

2011-11-16 Thread Matthieu CERDA
I am looking for a way to get the user currently running cf-agent, but I can not find any sys variable on function related to this in the documentation. Is there a "standard" way to get it ? Thanks in advance, -- == Matthieu CERDA