Cfengine Help: Re: dynamic variable declaration

2010-09-24 Thread no-reply
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

Re: "irreconcilable constraints" error when trying to set a role class based on a hostname. (Was Re: Machine types)

2010-09-24 Thread Nicolas Charles
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

Re: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread Jakub Viták
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

Cfengine Help: Re: Cfengine Help: !!! No bundlesequence in the common control body

2010-09-24 Thread no-reply
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

Cfengine Help: Re: !!! No bundlesequence in the common control body

2010-09-24 Thread no-reply
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.

Cfengine Help: Re: "irreconcilable constraints" error when trying to set a role class based on a hostname. (Was Re: Machine types)

2010-09-24 Thread no-reply
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

Cfengine Help: Re: dynamic variable declaration

2010-09-24 Thread no-reply
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. __

Cfengine Help: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread no-reply
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

Cfengine Help: Re: Controlling Module Calls

2010-09-24 Thread no-reply
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

Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread Francisco Reyes
[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

Machine types and auto-provisioning

2010-09-24 Thread Aleksey Tsalolikhin
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

Re: Cfengine Help: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread Jakub Viták
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

Re: Cfengine Help: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread Jesse Becker
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

Cfengine Help: Re: Machine types and auto-provisioning

2010-09-24 Thread no-reply
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. ___

Re: Cfengine Help: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread 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. 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

Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread Aleksey Tsalolikhin
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

Re: Cfengine Help: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread Aleksey Tsalolikhin
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

Host inventory (Was: Machine types)

2010-09-24 Thread Aleksey Tsalolikhin
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

Cfengine Help: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread no-reply
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

Re: Host inventory (Was: Machine types)

2010-09-24 Thread Les Mikesell
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

Re: Cfengine Help: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread Jakub Viták
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,

Cfengine Help: Re: Host inventory (Was: Machine types)

2010-09-24 Thread no-reply
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

Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread Francisco Reyes
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

Cfengine Help: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread no-reply
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 "

Cfengine Help: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread no-reply
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.

Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread Mike Hoskins
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

Cfengine Help: Re: Quickstart guide? [learning more about Cfengine classes]

2010-09-24 Thread no-reply
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

Re: Machine types and auto-provisioning

2010-09-24 Thread Aleksey Tsalolikhin
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

Cfengine Help: Lock expired, process killed:pid =...

2010-09-24 Thread no-reply
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