Forum: Cfengine Help
Subject: Re: dynamic variable declaration
Author: bglomm
Link to topic: https://cfengine.com/forum/read.php?3,18441,18471#msg-18471
well I was thinking of providing files for each admin account that I want to
maintain accross the network, each file, named by the loginname, co
On 24/09/2010 03:08, Aleksey Tsalolikhin wrote:
> 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".
> Locati
Hi.
I am also novice to Cfengine.
I am not sure how are classes handled precisely.
I know there is "reset class" (or something - sorry, not daily user yet),
which could cause "running" some promises.
Se there could be something similar like if-else with this method.
My question is - every ti
Forum: Cfengine Help
Subject: Re: Cfengine Help: !!! No bundlesequence in the common control body
Author: cell
Link to topic: https://cfengine.com/forum/read.php?3,18449,18473#msg-18473
Thanks for you reply, now it works as I wanted. I didn't realize that I am
doing it in the wrong way.
cheers
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,18474#msg-18474
Thank you folks for your replies, everything is now working as I wanted. I
didn't realize that I am doing it in a wrong way.
Forum: Cfengine Help
Subject: Re: "irreconcilable constraints" error when trying to set a role class
based on a hostname. (Was Re: Machine types)
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18468,18475#msg-18475
I'm going to go off on a rant here. DNS names should no
Forum: Cfengine Help
Subject: Re: dynamic variable declaration
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18441,18476#msg-18476
I'd go with the latter solution. It separates data from function but doesn't
have the overhead code of having to ETL data.
__
Forum: Cfengine Help
Subject: Re: Quickstart guide? [learning more about Cfengine classes]
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18464,18477#msg-18477
All classes are kept for that agent process only unless you do something
special to make the class persistent f
Forum: Cfengine Help
Subject: Re: Controlling Module Calls
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18383,18478#msg-18478
I find it helpful to start with a small and simple prototype policy for
testing. Once that works the way I want it to I duplicate that work to
[UTF-8]Jakub Viták writes:
> I am not sure how are classes handled precisely.
I am a total newbie myself, but this is my understanding so far.
There are "hard" classes and "soft" classes. A hard class is something
cfengnie detects by itself such as hostname, ip and such things.
Soft classes a
Dear Mark and Nicolas,
Thank you for your reply. Dashes used to be illegal in class names, but as
of 3.0.5p1 that is no longer the case. I found this out yesterday:
cf-promise -v
listed both "lax-it-web01-prod01" and "lax_it_web01_prod01"; so I tried using
the "lax-it-web01-prod01" class and i
Thank you Neil.
That's exactly what I wanted to know.
> The agent goes through the policy three times before exiting.
Is this "three times" enough to satisfy all cases?
Sincerely, Jakub V.
p.s.: I read your articles and have printed your tutor - thank you for
excelent job!
On 09/24/2010 0
On Fri, Sep 24, 2010 at 10:40:11AM -0400, Jakub Vit?k wrote:
> Thank you Neil.
>
>That's exactly what I wanted to know.
>
> > The agent goes through the policy three times before exiting.
>
>Is this "three times" enough to satisfy all cases?
Depends on your promises. Usuaully, yes, but not alway
Forum: Cfengine Help
Subject: Re: Machine types and auto-provisioning
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18480,18483#msg-18483
Any Nova Knowledge base users out there? This might be usable for host
inventory.
___
OK.
And is there any method how to find out (debug) that I have
exceed this number, or could I alter it by command option or with config
definiton?
J.
On 09/24/2010 04:43 PM, Jesse Becker wrote:
> On Fri, Sep 24, 2010 at 10:40:11AM -0400, Jakub Vit?k wrote:
>> Thank you Neil.
>>
>> That's ex
Well done, Francisco, you're helping others already. Continue!
Classes provide an implicit if/then test. There is no else.
But you can negate a class: if not class, then x.
Negate with !, like this:
!class::
promise
HTH,
-at
___
Help-cfengine m
2010/9/24 Jakub Viták :
> OK.
>
> And is there any method how to find out (debug) that I have
> exceed this number, or could I alter it by command option or with config
> definiton?
>
> J.
I am pretty sure three passes is hard-wired into cfengine and you
can't change it.
You can run cf-agent in
On Fri, Sep 24, 2010 at 5:52 AM, wrote:
>
> I'm going to go off on a rant here. DNS names should not be used as an
> inventory system. DNS is used to make host names easier to remember than IP
> addresses. If a host name is harder to remember than an IP address then the
> naming convention
Forum: Cfengine Help
Subject: Re: Quickstart guide? [learning more about Cfengine classes]
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18464,18485#msg-18485
Cfengine is convergent. It is designed so that if those three runs are not
enough then the next time the agent
On 9/24/2010 10:18 AM, Aleksey Tsalolikhin wrote:
>
>> I'm going to go off on a rant here. DNS names should not be used as an
>> inventory system. DNS is used to make host names easier to remember than IP
>> addresses. If a host name is harder to remember than an IP address then the
>> naming
OK.
I will not and I am satisfied.
Thank you Neil :)
Jakub V.
On 09/24/2010 05:23 PM, no-re...@cfengine.com wrote:
> Forum: Cfengine Help
> Subject: Re: Quickstart guide? [learning more about Cfengine classes]
> Author: neilhwatson
> Link to topic: https://cfengine.com/forum/read.php?3,18464,
Forum: Cfengine Help
Subject: Re: Host inventory (Was: Machine types)
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18488,18491#msg-18491
There is no shortage of free software inventory products. You can certainly
use Cfengine to run agents or gather information. No m
Aleksey Tsalolikhin writes:
> Classes provide an implicit if/then test. There is no else.
> But you can negate a class: if not class, then x.
> Negate with !, like this:
> !class::
>promise
How about either nesting classes or having more than one condition?
My initial plan was to have a tes
Forum: Cfengine Help
Subject: Re: Quickstart guide? [learning more about Cfengine classes]
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,18464,18493#msg-18493
> How about either nesting classes or having more
> than one condition?
You can have class expressions, in which "
Forum: Cfengine Help
Subject: Re: Quickstart guide? [learning more about Cfengine classes]
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18464,18494#msg-18494
http://www.cfengine.org/manuals/cf3-tutorial.html#Decisions
I prefer having one policy deployed to everywhere.
On 9/24/10 10:33 AM, "Francisco Reyes" wrote:
> Aleksey Tsalolikhin writes:
>
>> Classes provide an implicit if/then test. There is no else.
>> But you can negate a class: if not class, then x.
>> Negate with !, like this:
>> !class::
>>promise
>
> How about either nesting classes or having
Forum: Cfengine Help
Subject: Re: Quickstart guide? [learning more about Cfengine classes]
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,18464,18496#msg-18496
neilhwatson Wrote:
---
> http://www.cfengine.org/manuals/cf3-tu
On Fri, Sep 24, 2010 at 11:24 AM, Mark wrote:
> This is not strictly true. Cfengine converts the dashes to underscore now.
> It does not allow them.
Oh, I see. That explains why my code worked, cfengine converted my
dashes to underscores before running my code. Thank you.
I am very glad I can
Forum: Cfengine Help
Subject: Lock expired, process killed:pid=...
Author: nima
Link to topic: https://cfengine.com/forum/read.php?3,18498,18498#msg-18498
Any idea on what is causing these messages:
hydarnes:/var/log# tail -f cf3.hydarnes.runlog
Sat Sep 25 15:55:50 2010:Lock expired, process
k
29 matches
Mail list logo