Cfengine Help: Re: question on replace_patterns and insert_lines

2011-05-23 Thread no-reply
Forum: Cfengine Help Subject: Re: question on replace_patterns and insert_lines Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,22198,22207#msg-22207 Completely agree. To me the hardest thing about cfengine has been to grasp its declarative nature, since I hadn't had much ex

Cfengine Help: Re: question on replace_patterns and insert_lines

2011-05-23 Thread no-reply
Forum: Cfengine Help Subject: Re: question on replace_patterns and insert_lines Author: debheller Link to topic: https://cfengine.com/forum/read.php?3,22198,22206#msg-22206 The methodology that Diego is describing is crucial to understanding Cfengine promise writing. You can look at it that set

Cfengine Help: Re: question on replace_patterns and insert_lines

2011-05-23 Thread no-reply
Forum: Cfengine Help Subject: Re: question on replace_patterns and insert_lines Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,22198,22205#msg-22205 Jim, The problem is that according to normal ordering, insert_lines runs *before* replace_patterns: http://www.cfengine.org

Re: Lengthy in-line bash commands

2011-05-23 Thread Aleksey Tsalolikhin
Hi, Scott. Can you show us your Cfengine policy version of this script? What your script is trying to accomplish? What does the ideal system look like? In other words, what is the desired end state of the system? Then instead of having Cfengine run your shell script as a commands type promise, w

Re: Multiple cf-serverd processes per host

2011-05-23 Thread Aleksey Tsalolikhin
2011/5/22 Andrey Bondarenko : > > All three cfengine installations were on a single node in different > users. > > I'm not an admin of the hosts and I don't have root account there. > Applications I need to manage are deployed in non-priviledged users > in some cases more than one application deplo

Cfengine Help: Re: Core dump in cf-agent vars.c:308

2011-05-23 Thread no-reply
Forum: Cfengine Help Subject: Re: Core dump in cf-agent vars.c:308 Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,22200,22202#msg-22202 Your promises could shed some light on that coredump, but I suspect possible call of a function from a function which already cause

Cfengine Help: Re: RE: Lengthy in-line bash commands

2011-05-23 Thread no-reply
Forum: Cfengine Help Subject: Re: RE: Lengthy in-line bash commands Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,22195,22201#msg-22201 Scott, Please preferably post a self-contained example of cfengine code that you are trying, including the errors that you get. I think

Cfengine Help: Core dump in cf-agent vars.c:308

2011-05-23 Thread no-reply
Forum: Cfengine Help Subject: Core dump in cf-agent vars.c:308 Author: mvpel Link to topic: https://cfengine.com/forum/read.php?3,22200,22200#msg-22200 As I was muddling through the bootstrap of my new cfengine 3.1.5 build: sudo /usr/local/sbin/cf-agent --bootstrap cf-promises needs to be install

RE: Lengthy in-line bash commands

2011-05-23 Thread Scott Dobner
Here is a sample of the bash script I am porting. CFengine does not like the syntax of using the conditional statements (which I have replaced through classes), but I need to be able to check things in and out of cvs and cd into that directory so that I can build the files correctly. My goal w

question on replace_patterns and insert_lines

2011-05-23 Thread JIM AMANATIDIS, BLOOMBERG/ 731 LEXIN
Noticed that I get duplicate lines when cfengine is applying the promise of replace_patterns and insert_lines. For example, the line exists in a file but is incorrect. It appears that replace_patterns corrects the entry, but insert_lines also inserts the entry as well. Without having to go thr

Re: Lengthy in-line bash commands

2011-05-23 Thread Erlend Leganger
Give us more to work with: Provide an example of a "lengthy piece" that you want cf3 to execute; what did your command promise look like and what was the error message etc. - Erlend On 23 May 2011 16:25, Scott Dobner wrote: > Hi, > I am porting some bash scripts into cfengine and am having troub

Re: Cfengine Help: Re: conditional import of inputs -- i.e. using classes to control inputs

2011-05-23 Thread Daniel Dehennin
Daniel Dehennin writes: > Daniel Dehennin writes: > >> Aleksey Tsalolikhin writes: >> >>> I moved the classes promise higher, before the vars promise, >>> (which is how it is evaluated anyway), but I get: >>> >>> Can't stat file "./@(g.country)" for parsing >> >> I remember something about this

Lengthy in-line bash commands

2011-05-23 Thread Scott Dobner
Hi, I am porting some bash scripts into cfengine and am having trouble with some lengthy pieces that I would like to execute as a command promise. However, cfengine does not seem to agree with that. I am trying to avoid creating individual shell scripts and would just like to run the command t

Cfengine Help: Re: ElseDefineClasses

2011-05-23 Thread no-reply
Forum: Cfengine Help Subject: Re: ElseDefineClasses Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,22188,22194#msg-22194 Sorry, perhaps, I misread your initial question and thought you're looking for cf3's equivalent. ___

Cfengine Help: Re: ElseDefineClasses

2011-05-23 Thread no-reply
Forum: Cfengine Help Subject: Re: ElseDefineClasses Author: Ztyx Link to topic: https://cfengine.com/forum/read.php?3,22188,22193#msg-22193 Thank you ones again. Unfortunately you are refering to cfengine 3.x documentation. I am looking for the cfengine 2.x equivalent documentation. Regards, Jen

Cfengine Help: Re: ElseDefineClasses

2011-05-23 Thread no-reply
Forum: Cfengine Help Subject: Re: ElseDefineClasses Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,22188,22192#msg-22192 body classes reference Cfengine standard library ___ Help-cfengine mailing list Help-cfengine@cfengin

Re: Request for patching Cfengine3 for FreeBSD

2011-05-23 Thread Marin Atanasov Nikolov
On Mon, May 23, 2011 at 2:35 PM, Mark Burgess wrote: > > Marin, please submit this to the bug tracker as a feature request so it > does not get lost or overlooked. Hi Mark, Ticket has been logged in the bug tracker: - https://cfengine.com/bugtracker/view.php?id=639 Regards, Marin >

Cfengine Help: Re: ElseDefineClasses

2011-05-23 Thread no-reply
Forum: Cfengine Help Subject: Re: ElseDefineClasses Author: Ztyx Link to topic: https://cfengine.com/forum/read.php?3,22188,22190#msg-22190 Hi Seva, Thanks for your reply. I am unable to find what you are refering to. Could you elaborate on the chapter to look in? Or preferably a URL. Thank you

Cfengine Help: Re: ElseDefineClasses

2011-05-23 Thread no-reply
Forum: Cfengine Help Subject: Re: ElseDefineClasses Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,22188,22189#msg-22189 Jens, look at body classes in the reference manual and at body classes ifelse in the cfengine standard library.

Cfengine Help: ElseDefineClasses

2011-05-23 Thread no-reply
Forum: Cfengine Help Subject: ElseDefineClasses Author: Ztyx Link to topic: https://cfengine.com/forum/read.php?3,22188,22188#msg-22188 Hi, I am looking for documentation of the "ElseDefineClasses" attribute for "editfiles" in cfengine2. Unfortunately the documentation only seems to refer to "D

Re: Request for patching Cfengine3 for FreeBSD

2011-05-23 Thread Mark Burgess
On 05/23/2011 01:13 PM, Marin Atanasov Nikolov wrote: >> Forum: Cfengine Help >> Subject: Re: Hostname based classes and virtual machines in Cfengine 3 >> Author: dnaeon >> Link to topic: https://cfengine.com/forum/read.php?3,22131,22147#msg-22147 > Hello guys, > > In regards to the topic below, I

Cfengine3 binds to wrong interface when having multiple interfaces

2011-05-23 Thread Marin Atanasov Nikolov
Hello, Today I've noticed something strange on my Cfengine3 systems. Running FreeBSD with jails, Cfengine policy server is running inside a jail. Issue appears when running cf-agent(8) on the host machine, where the cfengine 3 policy server jails is running as well. When the host runs cf-agent(

Re: Request for patching Cfengine3 for FreeBSD

2011-05-23 Thread Marin Atanasov Nikolov
On Mon, May 23, 2011 at 2:13 PM, Marin Atanasov Nikolov wrote: >> Forum: Cfengine Help >> Subject: Re: Hostname based classes and virtual machines in Cfengine 3 >> Author: dnaeon >> Link to topic: https://cfengine.com/forum/read.php?3,22131,22147#msg-22147 > > Hello guys, > > In regards to the top

Request for patching Cfengine3 for FreeBSD

2011-05-23 Thread Marin Atanasov Nikolov
> Forum: Cfengine Help > Subject: Re: Hostname based classes and virtual machines in Cfengine 3 > Author: dnaeon > Link to topic: https://cfengine.com/forum/read.php?3,22131,22147#msg-22147 Hello guys, In regards to the topic below, I now have a patch for FreeBSD, which excludes virtual interface