Forum: Cfengine Help
Subject: Re: Controlling Module Calls
Author: nima
Link to topic: https://cfengine.com/forum/read.php?3,18383,18469#msg-18469
Hi Seva,
A reasonable suggestion again, but doesn't work - I must say, some things in
cfengine do not follow any natural set of rules. Anyway, I've
Problem: How to determine machine role from the hostname using Cfengine?
Data: My server hostnames contain location code, department code,
type (web/db/etc.) and environment (stage/prod/dev).
For example: "lax-it-web01-prod01".
Location: Los Angeles
Department: IT
Primary role: Web (first serv
Correction: I was able to download the Special Topic Guides - it just
took a long time.
Truly,
Aleksey
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
Help? This is kind of critical as it will determine the methodology on our
execution of bundles from promises.cf...
Its kind of concerning that cf-agent will let it fly but cf-know barfs.
On 9/23/10 12:41 PM, "Mike Svoboda" wrote:
Hey fellow cfengineers!
Have a question and hope that this h
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
Dear Francisco,
I would recommend the Concept Guide (aka Tutorial), the section
called "Decisions"
http://www.cfengine.org/manuals/cf3-tutorial.html
Let me know how that goes for you. And thanks for the tip about
"cf-promise -v", that's
a good one and one I use in my classes.
Best,
-at
___
Forum: Cfengine Help
Subject: Re: core files and AIX
Author: matter
Link to topic: https://cfengine.com/forum/read.php?3,18361,18463#msg-18463
Looks like you compiled this with gcc. dbx doesn't really like that. dbx reads
the debugging information which is in XCOFF format. gcc by default won't
g
Forum: Cfengine Help
Subject: Re: Controlling Module Calls
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,18383,18461#msg-18461
Well, I'd rather suggest trying
classes:
!reindex_done::
"ReIndexOpenLDAP"
expression => usemodule("ReIndexOpenLDAP
Forum: Cfengine Help
Subject: Re: Cfengine Help: Re: !!! No bundlesequence in the common control body
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18456,18459#msg-18459
I don't think order is supposed to matter but, I have found this necessary in
this one case. It mig
Hey fellow cfengineers!
Have a question and hope that this helps some other folks out as well. In my
promises.cf, I define my inputs and bundlesequence as such:
$ more promises.cf
...
...
body common control
{
bundlesequence => { @(global.agent_sequence) };
inputs => {
Forum: Cfengine Help
Subject: Re: !!! No bundlesequence in the common control body
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,18446,18458#msg-18458
I'm a big fan of methods promise so I would do something like this following
instead.
body common control
{
bundleseque
Forum: Cfengine Help
Subject: Re: core files and AIX
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18361,18455#msg-18455
Matter,
Does this offer any good information. I'm a bit out of my depth with AIX.
admzcws:/tmp# dbx /var/cfengine/bin/cf-monitord ./core
Type 'help'
Forum: Cfengine Help
Subject: Re: !!! No bundlesequence in the common control body
Author: cell
Link to topic: https://cfengine.com/forum/read.php?3,18446,18454#msg-18454
Something like you also Nicolas Charles replied to me in this post
https://cfengine.com/forum/read.php?3,18449,18449#msg-18449
Thanks, Mark, that's very interesting! Hopefully I can make time to read the
whole paper, but after a quick skim of the LDT section, I found that the first
paragraph in section 9.3 seems to explain the LDT buffer message. Hopefully
that will allay concerns that Cfengine was somehow leading to an
Forum: Cfengine Help
Subject: Re: !!! No bundlesequence in the common control body
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18446,18453#msg-18453
That is the message I would expect if the host is not a member of the machines
class. Provide a default bundle for suc
On 23/09/2010 17:21, no-re...@cfengine.com wrote:
> Forum: Cfengine Help
> Subject: Re: !!! No bundlesequence in the common control body
> Author: neilhwatson
> Link to topic: https://cfengine.com/forum/read.php?3,18446,18451#msg-18451
>
> Try placing bundle common g in promises.cf above bundle com
Forum: Cfengine Help
Subject: Re: !!! No bundlesequence in the common control body
Author: cell
Link to topic: https://cfengine.com/forum/read.php?3,18446,18452#msg-18452
I've tried it with no luck so far. Cf-promises -f gives me:
r...@rain:/var/lib/cfengine3/inputs# cf-promises -f promises.cf
Forum: Cfengine Help
Subject: Re: !!! No bundlesequence in the common control body
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18446,18451#msg-18451
Try placing bundle common g in promises.cf above bundle common control.
___
Forum: Cfengine Help
Subject: Re: Test vs production CF environments
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18427,18450#msg-18450
Typically I keep all my inputs in version control (usually Subversion). I am
often able to use the same policy in testing as I would
Forum: Cfengine Help
Subject: Re: dynamic variable declaration
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18441,18448#msg-18448
Is there are particular reason why you would rely on a foreign file for
Cfengine variable contents? I'm sure there must be an easier way f
Hi,
I would recommend another approach for this issue. Defining the
bundlesequence only if a class is defined sound dangerous to me. You'd
rather define a list of bundles in a common bundle, and use this list in
your bundle sequence
bundle common g {
vars :
machines::
"bs" slist => { "garbage_
Forum: Cfengine Help
Subject: Re: Cfengine Help: Re: Controlling Module Calls
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18399,18447#msg-18447
classes:
"ReIndexOpenLDAP"
expression => usemodule("ReIndexOpenLDAP", ""),
classes => DefineSoftClass("ReIndexOpenLDAP_on
Forum: Cfengine Help
Subject: !!! No bundlesequence in the common control body
Author: cell
Link to topic: https://cfengine.com/forum/read.php?3,18446,18446#msg-18446
Hi,
I am playing with Cfengine 3 for a while. I was able to solve almost every
problem I ran into except one. When I define class
Bernhard-
It would help if I understood better what you are trying to accomplish with the
array... but a few things:
1) Look at section 11.1.2 at
http://www.cfengine.org/manuals/cf3-reference.html#Introduction-to-functions
for building array's from data
2) The error you're getting on this line
Forum: Cfengine Help
Subject: Re: core files and AIX
Author: matter
Link to topic: https://cfengine.com/forum/read.php?3,18361,18444#msg-18444
I haven't seen any core files for some time now. What does the errpt or the
core file show for a stacktrace? I did have some issue with exhausting the
he
Forum: Cfengine Help
Subject: Re: Test vs production CF environments
Author: matter
Link to topic: https://cfengine.com/forum/read.php?3,18427,18443#msg-18443
Interesting, I never saw that CVS article, but my set up is almost exactly like
it. It does work very well. You can do a bunch of neat thi
Forum: Cfengine Help
Subject: Re: cf-serverd segfaulting
Author: bbomgardner
Link to topic: https://cfengine.com/forum/read.php?3,17924,18442#msg-18442
I started cf-serverd with gdb and waited for it to fail and got a backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x004
Forum: Cfengine Help
Subject: dynamic variable declaration
Author: bglomm
Link to topic: https://cfengine.com/forum/read.php?3,18441,18441#msg-18441
hi all,
Could anybody give me a hint on how to construct variable names during runtime
(amount and names shall come from a "ls" command on a specif
28 matches
Mail list logo