This is exactly what I was looking for, thanks. Very clever.
RCA
--
UNIX Administrator, BAE Systems EIT
desk 763-572-6684 mobile 612-419-9362
-Original Message-
From: Justin Lloyd [mailto:jll...@digitalglobe.com]
Sent: Tuesday, May 04, 2010 10:37 AM
To: Anderson, Ryan C (US SSA); help-c
Forum: Cfengine Help
Subject: Re: Cfengine Help: Please add full syslog support to community edition
v.3
Author: jgreer
Link to topic: https://cfengine.com/forum/read.php?3,17037,17101#msg-17101
Mark,
Thanks; sorry for the misunderstanding on my part. I later realized that, in
the promise wher
On Mon, 3 May 2010 22:34:02 -0400 Wes Rogers wrote:
WR> 2010/5/3 Ted Zlatanov :
>> On Mon, 3 May 2010 15:07:43 -0400 Wes Rogers wrote:
>>
WR> Seems like too much effort to me, IMO when I can just add another
WR> 'cfservd server' behind my LB VIP and call it a day.
>>
>> You still need a way t
This is something that is automatic in Cfengine Nova.
Anderson, Ryan C (US SSA) wrote:
> How are any of you self-defining Solaris 10 zones as classes in cf3? In my
> cfengine2 installation, I made a module, but am not sure if there is a better
> way in cf3. Might this be added into cf3 itself a
fo...@cfengine.com writes:
> By hierarchical are you hoping to allow other teams to make policy
> without altering your own?
No, as soon as I merge their work into the mainline to deploy it, they
can execute whatever commands to destroy my system (until cf3 permit to
"load" or "run" bundles under
I'll just additionally mention that this is easily done in Nova using
measurements promises since I'm doing exactly this and several other
things (total memory, cpu speed, etc.):
measurements:
linux::
"/proc/cpuinfo"
handle => "linux_cpu_count",
Ryan,
If you just want to know whether or not you're in a zone, you could define
classes like so, for example:
classes:
solaris::
"nonglobal_zone" expression => fileexists("/dev/zconsole");
"global_zone" not => fileexists("/dev/zconsole");
Does that help?
Ju
Forum: Cfengine Help
Subject: Re: List variable in inputs
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,17074,17095#msg-17095
By hierarchical are you hoping to allow other teams to make policy without
altering your own?
___
H
fo...@cfengine.com writes:
>> body common control
>> {
>> bundlesequence => { "base", @(test.bundles) };
>> inputs => {"test.cf", @(test.inputs) };
>> }
>
> I don't see how this can work. There are no variables defined until
> inputs is processes.
Variable resolution in bundlesequence seems de
Forum: Cfengine Help
Subject: Re: How to run Cfengine 3 with Cfengine 2 policies? I get syntax
errors.
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,16251,17093#msg-17093
I believe that the cf3 agent will invokes the cf2 agent to handle cf2 policies.
As such you must
Forum: Cfengine Help
Subject: Re: List variable in inputs
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,17074,17092#msg-17092
> body common control
> {
> bundlesequence => { "base", @(test.bundles) };
> inputs => {"test.cf", @(test.inputs) };
> }
I don't see how this ca
Forum: Cfengine Help
Subject: Re: How to run Cfengine 3 with Cfengine 2 policies? I get syntax
errors.
Author: aog
Link to topic: https://cfengine.com/forum/read.php?3,16251,17091#msg-17091
> Aleksey, Cfengine 3 provides the possibility for cfengine 3 and cfengine 2 to
> coexist
> during an upgr
Forum: Cfengine Help
Subject: Re: sys.ncpu or something?
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,17088,17090#msg-17090
Nakarin,
Of course, I can make it even shorter and safer:
vars:
linux::
"ncpu" string => execresult("/bin/grep -c ^pro
Forum: Cfengine Help
Subject: Re: sys.ncpu or something?
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,17088,17089#msg-17089
Is it possible to see an exact number of CPUs with this shell command?
# /bin/grep processor /proc/cpuinfo | /usr/bin/wc -l
If so, we could use e
Forum: Cfengine Help
Subject: sys.ncpu or something?
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,17088,17088#msg-17088
Hello folks,
Is there any method for obtaining a number of CPUs via Cfengine? It seems like
there's no sys.ncpu variable.
_
15 matches
Mail list logo