RE: Lengthy in-line bash commands

2011-05-24 Thread Scott Dobner
Haha, that's what I am thinking too. Thanks for all your suggestions guys! It was a very good learning experience for me. From: Aleksey Tsalolikhin [atsaloli.t...@gmail.com] Sent: Tuesday, May 24, 2011 6:32 PM To: Scott Dobner Cc: help-cfengine@cfengine.o

Re: Cfengine Help: Binaries?

2011-05-24 Thread Aleksey Tsalolikhin
On Tue, May 24, 2011 at 11:33 AM, wrote: > Forum: Cfengine Help > Subject: Binaries? > Author: sauer > Link to topic: https://cfengine.com/forum/read.php?3,0,0#msg-0 > > Do any third parties provide pre-built community binaries of the OSS Cfengine? Yes, HP provides Cfengine in Distri

Re: Lengthy in-line bash commands

2011-05-24 Thread Aleksey Tsalolikhin
On Tue, May 24, 2011 at 10:15 AM, Scott Dobner wrote: > We actually need these packages for 6 or 7 different UNIX operating systems, > so packaging them wouldn't be much help.  We know each of these releases > produces a stable build, so it is preferred that we continue to just build > these st

Fwd: Cfengine Help: Re: question on replace_patterns and insert_lines

2011-05-24 Thread JIM AMANATIDIS, BLOOMBERG/ 731 LEXIN
Thanks everyone for your input and information. Yes, the flexibility of cfengine allows the user to design whatever solution they require. I have updated my configuration with an applicable solution and works as expected. However, be that as it may, I would have thought that replace_patterns w

RE: Cfengine Help: Binaries?

2011-05-24 Thread Jones, Stephen (MAS)
http://www.perzl.org/aix/index.php?n=Main.Cfengine AIX Binaries not sure about HPUX Cheers -Original Message- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of no-re...@cfengine.com Sent: Wednesday, 25 May 2011 4:34 AM To: help-cfengine@cf

Cfengine Help: Re: question on replace_patterns and insert_lines

2011-05-24 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,4#msg-4 Thanks for responding, Diego. Jim, I'm not trying to hijack your thread - but I thought it is useful to point out in the co

Cfengine Help: Re: Cfengine3 binds to wrong interface when having multiple interfaces

2011-05-24 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine3 binds to wrong interface when having multiple interfaces Author: debheller Link to topic: https://cfengine.com/forum/read.php?3,22186,3#msg-3 It sounds like you may want to look at bindtointerface for your clients with more than one NIC. We us

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

2011-05-24 Thread Daniel Dehennin
Daniel Dehennin writes: > Could this be considered a regression on bug 135[1] or is there a better > way to do it? Sorry, my fault, I forgot that classes in "bundle agent" are not globals. Here is my new results: #v+ bin/cf-agent -K -I R: Bundle agent test evaluated R: Bundle agent test2 evalu

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

2011-05-24 Thread Scott Dobner
We base our deployment of 3rd party software on the BSD model and build everything from source. That was in place long before I got here so now I am trying to modernize the way we keep track of packages that must be built from source using cfengine. I definitely see the value in creating a rep

Cfengine Help: Binaries?

2011-05-24 Thread no-reply
Forum: Cfengine Help Subject: Binaries? Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,0,0#msg-0 Do any third parties provide pre-built community binaries of the OSS Cfengine? I'm running into some issues with the builds on AIX and HP-UX, and while I'm sure I'll

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

2011-05-24 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,22219#msg-22219 Are all the packages similar in their build procedure? One idea would be to create a new package_method http://www.cfengine.org/manuals/

Re: Lengthy in-line bash commands

2011-05-24 Thread michoski
On 5/24/11 9:55 AM, "Aleksey Tsalolikhin" wrote: > On Tue, May 24, 2011 at 9:49 AM, Scott Dobner wrote: >> Well it turned out to be a problem with the formatting cfengine was looking >> for.  What we are trying to do is allow for very easy building of 3rd party >> software that we have to build f

RE: Lengthy in-line bash commands

2011-05-24 Thread Scott Dobner
We actually need these packages for 6 or 7 different UNIX operating systems, so packaging them wouldn't be much help. We know each of these releases produces a stable build, so it is preferred that we continue to just build these stable releases. -Original Message- From: Aleksey Tsalol

Re: Lengthy in-line bash commands

2011-05-24 Thread Aleksey Tsalolikhin
On Tue, May 24, 2011 at 9:49 AM, Scott Dobner wrote: > Well it turned out to be a problem with the formatting cfengine was looking > for.  What we are trying to do is allow for very easy building of 3rd party > software that we have to build from source.  Now what I am doing is creating > small

RE: Lengthy in-line bash commands

2011-05-24 Thread Scott Dobner
Well it turned out to be a problem with the formatting cfengine was looking for. What we are trying to do is allow for very easy building of 3rd party software that we have to build from source. Now what I am doing is creating small shell scripts that are synced via cfengine that execute when

Cfengine Help: Re: insert_lines, whitespace_policy, and regex characters

2011-05-24 Thread no-reply
Forum: Cfengine Help Subject: Re: insert_lines, whitespace_policy, and regex characters Author: bbomgardner Link to topic: https://cfengine.com/forum/read.php?3,22046,22214#msg-22214 Oi! I apologize for the non-working example, that was very terrible of me. It is fixed now. ___

Cfengine Help: promise not respecting lock if log_string value changes

2011-05-24 Thread no-reply
Forum: Cfengine Help Subject: promise not respecting lock if log_string value changes Author: bbomgardner Link to topic: https://cfengine.com/forum/read.php?3,22212,22212#msg-22212 I have noticed that if the contents of log_string changes between executions of cf-agent (for example using $(sys.da

Re: Lengthy in-line bash commands

2011-05-24 Thread Aleksey Tsalolikhin
On Tue, May 24, 2011 at 5:30 AM, Scott Dobner wrote: > Here it is.  I think I am starting to see the problem with this.  I don't > have a lot of shell scripting experience, and I think the script I sent out > previously is not exactly a shell script. > > bundle agent install_xinstall > { >  clas

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

2011-05-24 Thread no-reply
Forum: Cfengine Help Subject: Re: Core dump in cf-agent vars.c:308 Author: mvpel Link to topic: https://cfengine.com/forum/read.php?3,22200,22211#msg-22211 Okay, it appears that this section of code is working fine, looping through the if(!found) conditional repeatedly until it gets to control_ag

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

2011-05-24 Thread no-reply
Forum: Cfengine Help Subject: Re: Core dump in cf-agent vars.c:308 Author: mvpel Link to topic: https://cfengine.com/forum/read.php?3,22200,22210#msg-22210 What seems a bit odd here is that according to the core dump the name value in BooleanControl() is 0x0, but the function doesn't seem to have

RE: Lengthy in-line bash commands

2011-05-24 Thread Scott Dobner
Here it is. I think I am starting to see the problem with this. I don't have a lot of shell scripting experience, and I think the script I sent out previously is not exactly a shell script. bundle agent install_xinstall { classes: "xinstall_exists" expression => fileexists("/usr/local/sr

Fwd:Cfengine Help: Re: question on replace_patterns and

2011-05-24 Thread JIM AMANATIDIS, BLOOMBERG/ 731 LEXIN
Thanks, I wasn't aware of the ordering within edit_line, so this information is helpful. I guess this order is as good as any given the permutation of delete_lines, insert_lines, replace_patterns could make different outcomes. For some reason I felt that replace_patterns would be higher in the