From MAILER-DAEMON Wed Sep 01 07:18:44 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2T8W-0006gi-KU for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 07:18:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2T8U-0006fo-73 for help-cfengine@gnu.org; Wed, 01 Sep 2004 07:18:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2T8P-0006dN-V7 for help-cfengine@gnu.org; Wed, 01 Sep 2004 07:18:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2T8P-0006dJ-QD for help-cfengine@gnu.org; Wed, 01 Sep 2004 07:18:37 -0400 Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2T2Y-0000o1-Ih for help-cfengine@gnu.org; Wed, 01 Sep 2004 07:12:35 -0400 Received: from [152.157.64.30] (helo=nsd.org) by mx20.gnu.org with esmtp (Exim 4.34) id 1C2J4l-0005Mi-C3 for help-cfengine@gnu.org; Tue, 31 Aug 2004 20:34:11 -0400 Received: from [10.2.9.13] (account ckacoroski HELO [10.2.9.13]) by nsd.org (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5223894 for help-cfengine@gnu.org; Tue, 31 Aug 2004 17:34:08 -0700 Message-ID: <41351900.1060703@nsd.org> Date: Tue, 31 Aug 2004 17:34:08 -0700 From: Chris Kacoroski Organization: Northshore School District User-Agent: Mozilla Thunderbird 0.7.3 (Macintosh/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: cfrun question X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ckacoroski@nsd.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 11:18:42 -0000 Status: O Content-Length: 988 Lines: 46 I have cfrun.hosts in my /var/cfengine/inputs directory looking like this: [root@linux9 inputs]# cat cfrun.hosts domain=nsd.org access=root 10-171-248-171.nsd.org On the client I have the cfservd looking like this: control: domain = ( nsd.org ) AddClasses = ( ExecResult(/usr/local/scripts/ldapnames --cfengine) ) workdir = ( "/var/cfengine" ) AllowUsers = ( root ) cfrunCommand = ( "/usr/local/sbin/cfagent" ) cfengine:: AllowConnectionsFrom = ( 10. 192.168.0. 127.0.0.1 ) admit: $(cfrunCommand) cfengine.nsd.org and I get errors like this: 10-171-248-171.nsd.org replies.. Host authentication failed. Did you forget the domain name or IP/DNS address registration (for ipv4 or ipv6)?Connection with 10-171-248-171.nsd.org completed Appreciate any pointers. cheers, ski -- "When we try to pick out anything by itself, we find it connected to the entire universe" John Muir Chris "Ski" Kacoroski, ckacoroski@nsd.org, 425-489-6263 From MAILER-DAEMON Wed Sep 01 10:22:53 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2W0i-0001io-Sh for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 10:22:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2W0h-0001iM-0a for help-cfengine@gnu.org; Wed, 01 Sep 2004 10:22:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2W0g-0001hq-2U for help-cfengine@gnu.org; Wed, 01 Sep 2004 10:22:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2W0g-0001hn-0P for help-cfengine@gnu.org; Wed, 01 Sep 2004 10:22:50 -0400 Received: from [207.36.86.205] (helo=intruder.com.mx) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2VvC-0007Lf-M3 for help-cfengine@gnu.org; Wed, 01 Sep 2004 10:17:10 -0400 Received: from localhost (server.intruder.com.mx [127.0.0.1]) by intruder.com.mx (Postfix) with ESMTP id 471815B4124 for ; Wed, 1 Sep 2004 09:16:07 -0500 (CDT) Received: from intruder.com.mx ([127.0.0.1]) by localhost (server.intruder.com.mx [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14441-04 for ; Wed, 1 Sep 2004 09:16:05 -0500 (CDT) Received: from akrall (unknown [201.133.125.44]) by intruder.com.mx (Postfix) with ESMTP id CE9595B4123 for ; Wed, 1 Sep 2004 09:16:03 -0500 (CDT) From: "Anton Krall" To: Date: Wed, 1 Sep 2004 09:16:49 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 thread-index: AcSQLlIaP3pQW6v9S7O38yotK3nYVA== X-Virus-Scanned: by amavisd-new at intruder.com.mx Subject: AddInstallable Problem X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 14:22:51 -0000 Status: O Content-Length: 463 Lines: 16 Guys, Im trying to do this: AddInstallables = ( firewallserver2 firewalltvoxvideo1 firewalltvoxvideo2 ) But cfengine is complaining verytime I try to run it: cfengine::/var/cfengine/inputs/cfagent.conf:10: Warning: Redefinition of macro AddInstallables=firewall-tvoxvideo1 (or perhaps missing quote) cfengine::/var/cfengine/inputs/cfagent.conf:10: Warning: Redefinition of macro AddInstallables=firewall-tvoxvideo2 (or perhaps missing quote) Whats wrong? From MAILER-DAEMON Wed Sep 01 10:33:38 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2WB8-0003YO-MX for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 10:33:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2WB7-0003XA-6j for help-cfengine@gnu.org; Wed, 01 Sep 2004 10:33:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2WB6-0003W7-4v for help-cfengine@gnu.org; Wed, 01 Sep 2004 10:33:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2WB6-0003Vw-1j for help-cfengine@gnu.org; Wed, 01 Sep 2004 10:33:36 -0400 Received: from [62.245.182.8] (helo=mx.leogic.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2W69-000109-Fh for help-cfengine@gnu.org; Wed, 01 Sep 2004 10:28:29 -0400 Received: from [127.0.0.1] ([192.168.65.59]) (authenticated bits=0) by mx.leogic.com (8.12.11/8.12.10) with ESMTP id i81ESKCr032521 (version=TLSv1/SSLv3 cipher=IDEA-CBC-SHA bits=128 verify=NO) for ; Wed, 1 Sep 2004 16:28:22 +0200 Message-ID: <4135DC7F.8050602@leogic.com> Date: Wed, 01 Sep 2004 16:28:15 +0200 From: Sven Mueller User-Agent: Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <41345F8F.6060607@leogic.com> <20040831140547.GB13970@spacepants.org> In-Reply-To: <20040831140547.GB13970@spacepants.org> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: editfiles question X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 14:33:37 -0000 Status: O Content-Length: 2100 Lines: 59 Jamie Wilkinson [u] wrote on 31/08/2004 16:05: > This one time, at band camp, Sven Mueller wrote: >>From the documentation, I am not certain how to achieve the following >>task. >>Let's say I want to edit /etc/passwd (actually I am editing a similarly >>formated, but different file), and I want the following to be achieved: >> >>- I want the file to be created if it doesn't exist (AutoCreate takes >> care of this) >>- I want a line "root:..1234567890123:0:0::/bin/bash" be added to the >> file if it doesn't exist, overwriting any root:.* lines that might >> exist. > > http://shipyard.com.au/shipyard/articles/sysadmin/cfengine-configfiles.py OK, I must have misread that page the first time, coming to the result that it didn't achieve what I wanted: Editing the file only if the line I want in there isn't there or when I need to replace lines matching its first field. Jamie corrected this impression via private email. However, the construct given on that page seems a bit too complex for such a seemingly easy task. Here is what the page gives as to what one needs to do (translated to editing /etc/passwd): { /etc/ssh/sshd_config Backup 'off' BeginGroupIfNoLineMatching '^root:.*' Append 'root:x:0:0::/bin/bash' EndGroup ResetSearch 1 LocateLineMatching '^root.*' BeginGroupIfNoMatch '^root:x:0:0::/bin/bash$' ReplaceLineWith 'root:x:0:0::/bin/bash' EndGroup ) Now, this seems a bit too much just to replace matching lines by the line wanted, appending or prepending the wanted line if no matching line was found. In the given case (/etc/passwd), would this be enough? { /etc/passwd Backup 'off' ReplaceLinesMatchingField 1 SetLine "root:x:0:0::/bin/bash" # The above should already replace any line with # a matching first field ("root"), right? AppendIfNoLineMatching "ThisLine" # which should append the line previously set by "SetLine" # if no matching line is in the file yet, right? } If nobody can say for certain, I will have to try this in some way. cu, sven From MAILER-DAEMON Wed Sep 01 11:05:53 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2WgL-0003gG-EF for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 11:05:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2WgJ-0003fQ-TU for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:05:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2WgI-0003eg-DA for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:05:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2WgI-0003eW-A6 for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:05:50 -0400 Received: from [62.245.182.8] (helo=mx.leogic.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2WbE-0007Nn-7i for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:00:36 -0400 Received: from [127.0.0.1] ([192.168.65.59]) (authenticated bits=0) by mx.leogic.com (8.12.11/8.12.10) with ESMTP id i81F0W6s010330 (version=TLSv1/SSLv3 cipher=IDEA-CBC-SHA bits=128 verify=NO); Wed, 1 Sep 2004 17:00:34 +0200 Message-ID: <4135E40A.6030603@leogic.com> Date: Wed, 01 Sep 2004 17:00:26 +0200 From: Sven Mueller User-Agent: Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: "Ed Brown" References: <41345F8F.6060607@leogic.com> <20040831140547.GB13970@spacepants.org> <4135DC7F.8050602@leogic.com> <1094049884.9017.11.camel@edbrown.lanl.gov> In-Reply-To: <1094049884.9017.11.camel@edbrown.lanl.gov> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: help-cfengine@gnu.org Subject: Re: editfiles question X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 15:05:52 -0000 Status: O Content-Length: 712 Lines: 24 Ed Brown [u] wrote on 01/09/2004 16:44: > Here's another approach: > > editfiles: > { /etc/whatever > BeginGroupIfNoLineMatching "root:$1raboof:4875::::::" > LocateLineMatching "^root:.*" > ReplaceLineWith "root:$1raboof:4875::::::" > EndGroup > } Wouldn't that approach replace some other line if no line matching "^root:.*" was found while no line matching "root:$1raboof:4875::::::" existed before? Hmm, no, according to the documentation, if LocateLineMatching doesn't find a match, it aborts any further editing. So your approach will only replace existing lines, but if none matching "root:.*" is found, it won't do anything. cu, sven From MAILER-DAEMON Wed Sep 01 11:32:19 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2X5v-0003SS-Bf for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 11:32:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2X5s-0003RS-NC for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:32:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2X5r-0003Qv-NP for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:32:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2X5r-0003Qs-KV for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:32:15 -0400 Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2X0s-0003UT-Ck for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:27:06 -0400 Received: from mailrelay2.lanl.gov (localhost.localdomain [127.0.0.1]) by mailwasher-b.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i81FR46U002735 for ; Wed, 1 Sep 2004 09:27:04 -0600 Received: from ccn-mail.lanl.gov (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i81FR4VU030451; Wed, 1 Sep 2004 09:27:04 -0600 Received: from edbrown.lanl.gov (edbrown.lanl.gov [128.165.114.35]) by ccn-mail.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i81FR4eV011746; Wed, 1 Sep 2004 09:27:04 -0600 From: Ed Brown To: Sven Mueller In-Reply-To: <4135E40A.6030603@leogic.com> References: <41345F8F.6060607@leogic.com> <20040831140547.GB13970@spacepants.org> <4135DC7F.8050602@leogic.com> <1094049884.9017.11.camel@edbrown.lanl.gov> <4135E40A.6030603@leogic.com> Content-Type: text/plain Message-Id: <1094052423.9017.35.camel@edbrown.lanl.gov> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 01 Sep 2004 09:27:04 -0600 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.35 Cc: help-cfengine@gnu.org Subject: Re: editfiles question X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 15:32:17 -0000 Status: O Content-Length: 1030 Lines: 33 Right. No root line, no editing. Useful for setting the root passwd in /etc/shadow, where if there's not an entry for root, something is pretty seriously wrong. Guess I didn't read your requirements carefully enough. On Wed, 2004-09-01 at 09:00, Sven Mueller wrote: > Ed Brown [u] wrote on 01/09/2004 16:44: > > > Here's another approach: > > > > editfiles: > > { /etc/whatever > > BeginGroupIfNoLineMatching "root:$1raboof:4875::::::" > > LocateLineMatching "^root:.*" > > ReplaceLineWith "root:$1raboof:4875::::::" > > EndGroup > > } > > Wouldn't that approach replace some other line if no line matching > "^root:.*" was found while no line matching "root:$1raboof:4875::::::" > existed before? > Hmm, no, according to the documentation, if LocateLineMatching doesn't > find a match, it aborts any further editing. So your approach will only > replace existing lines, but if none matching "root:.*" is found, it > won't do anything. > > cu, > sven From MAILER-DAEMON Wed Sep 01 11:35:47 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2X9H-0004Ix-9u for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 11:35:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2X9E-0004IS-SL for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:35:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2X9A-0004Hn-TT for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:35:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2X99-0004Hj-Ck for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:35:40 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2X4B-00046j-BU for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:30:33 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i81FUR0E006748; Wed, 1 Sep 2004 17:30:31 +0200 (MEST) Message-Id: <200409011530.i81FUR0E006748@nexus.iu.hio.no> Date: Wed, 1 Sep 2004 17:30:27 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: ebrown@lanl.gov In-Reply-To: <1094052423.9017.35.camel@edbrown.lanl.gov> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: help-cfengine@gnu.org Subject: Re: editfiles question X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 15:35:45 -0000 Status: O Content-Length: 1605 Lines: 55 This any use? http://www.cfengine.org/confdir/customizepasswd.html M On 1 Sep, Ed Brown wrote: > Right. No root line, no editing. Useful for setting the root passwd in > /etc/shadow, where if there's not an entry for root, something is pretty > seriously wrong. Guess I didn't read your requirements carefully > enough. > > > > On Wed, 2004-09-01 at 09:00, Sven Mueller wrote: >> Ed Brown [u] wrote on 01/09/2004 16:44: >> >> > Here's another approach: >> > >> > editfiles: >> > { /etc/whatever >> > BeginGroupIfNoLineMatching "root:$1raboof:4875::::::" >> > LocateLineMatching "^root:.*" >> > ReplaceLineWith "root:$1raboof:4875::::::" >> > EndGroup >> > } >> >> Wouldn't that approach replace some other line if no line matching >> "^root:.*" was found while no line matching "root:$1raboof:4875::::::" >> existed before? >> Hmm, no, according to the documentation, if LocateLineMatching doesn't >> find a match, it aborts any further editing. So your approach will only >> replace existing lines, but if none matching "root:.*" is found, it >> won't do anything. >> >> cu, >> sven > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Wed Sep 01 11:40:15 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2XDb-0006ok-Gt for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 11:40:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2XDZ-0006oX-5Z for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:40:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2XDW-0006mw-Nz for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:40:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2XDW-0006mk-FA for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:40:10 -0400 Received: from [145.100.16.144] (helo=mta.sara.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2X8S-0004qf-E1 for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:34:56 -0400 Received: from [145.100.6.35] (bas.ka.sara.nl [145.100.6.35]) by mta.sara.nl (8.12.10+Sun/8.12.10) with ESMTP id i81FYpex016387; Wed, 1 Sep 2004 17:34:51 +0200 (MEST) Message-ID: <4135EC1B.10708@sara.nl> Date: Wed, 01 Sep 2004 17:34:51 +0200 From: Bas van der Vlies User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Anton Krall References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: help-cfengine@gnu.org Subject: Re: [Cfengine] AddInstallable Problem X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 15:40:13 -0000 Status: O Content-Length: 191 Lines: 13 Anton Krall wrote: > Guys, Im trying to do this: > > AddInstallables = ( firewallserver2 firewalltvoxvideo1 firewalltvoxvideo2 ) > Try: AddInstallable = ( .... ) Without the 's' ;-) From MAILER-DAEMON Wed Sep 01 11:54:13 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2XR7-00044Q-0A for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 11:54:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2XR5-00044E-1I for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:54:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2XR1-00043G-V7 for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:54:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2XR1-00042Y-Jn for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:54:07 -0400 Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2XLy-0007B6-Ty for help-cfengine@gnu.org; Wed, 01 Sep 2004 11:48:55 -0400 Received: from mailrelay2.lanl.gov (localhost.localdomain [127.0.0.1]) by mailwasher-b.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i81Fms6U009005 for ; Wed, 1 Sep 2004 09:48:54 -0600 Received: from ccn-mail.lanl.gov (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i81FmrVU010774; Wed, 1 Sep 2004 09:48:53 -0600 Received: from edbrown.lanl.gov (edbrown.lanl.gov [128.165.114.35]) by ccn-mail.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i81FmreV012488; Wed, 1 Sep 2004 09:48:53 -0600 From: Ed Brown To: Mark.Burgess@iu.hio.no In-Reply-To: <200409011530.i81FUR0E006748@nexus.iu.hio.no> References: <200409011530.i81FUR0E006748@nexus.iu.hio.no> Content-Type: text/plain Message-Id: <1094053732.9023.45.camel@edbrown.lanl.gov> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 01 Sep 2004 09:48:53 -0600 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.35 Cc: help-cfengine@gnu.org Subject: Re: editfiles question X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 15:54:11 -0000 Status: O Content-Length: 2059 Lines: 65 This could be very useful, and a very timely suggestion, for a recent situation, where I've been creating some accounts manually, for lack of time to find a real solution. (Also, it's helpful to have examples, not having used the ...FileItems and ...FromFile actions before.) thanks, Ed On Wed, 2004-09-01 at 09:30, Mark.Burgess@iu.hio.no wrote: > This any use? > > http://www.cfengine.org/confdir/customizepasswd.html > > M > > On 1 Sep, Ed Brown wrote: > > Right. No root line, no editing. Useful for setting the root passwd in > > /etc/shadow, where if there's not an entry for root, something is pretty > > seriously wrong. Guess I didn't read your requirements carefully > > enough. > > > > > > > > On Wed, 2004-09-01 at 09:00, Sven Mueller wrote: > >> Ed Brown [u] wrote on 01/09/2004 16:44: > >> > >> > Here's another approach: > >> > > >> > editfiles: > >> > { /etc/whatever > >> > BeginGroupIfNoLineMatching "root:$1raboof:4875::::::" > >> > LocateLineMatching "^root:.*" > >> > ReplaceLineWith "root:$1raboof:4875::::::" > >> > EndGroup > >> > } > >> > >> Wouldn't that approach replace some other line if no line matching > >> "^root:.*" was found while no line matching "root:$1raboof:4875::::::" > >> existed before? > >> Hmm, no, according to the documentation, if LocateLineMatching doesn't > >> find a match, it aborts any further editing. So your approach will only > >> replace existing lines, but if none matching "root:.*" is found, it > >> won't do anything. > >> > >> cu, > >> sven > > > > > > > > _______________________________________________ > > Help-cfengine mailing list > > Help-cfengine@gnu.org > > http://lists.gnu.org/mailman/listinfo/help-cfengine > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Work: +47 22453272 Email: Mark.Burgess@iu.hio.no > Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > From MAILER-DAEMON Wed Sep 01 12:12:08 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2XiS-0007GJ-4t for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 12:12:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2XiQ-0007G0-6w for help-cfengine@gnu.org; Wed, 01 Sep 2004 12:12:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2XiM-0007Fo-Lk for help-cfengine@gnu.org; Wed, 01 Sep 2004 12:12:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2XiM-0007Fl-Ir for help-cfengine@gnu.org; Wed, 01 Sep 2004 12:12:02 -0400 Received: from [62.245.182.8] (helo=mx.leogic.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2XdA-0001rH-LD for help-cfengine@gnu.org; Wed, 01 Sep 2004 12:06:40 -0400 Received: from [127.0.0.1] ([192.168.65.59]) (authenticated bits=0) by mx.leogic.com (8.12.11/8.12.10) with ESMTP id i81G6bvo014985 (version=TLSv1/SSLv3 cipher=IDEA-CBC-SHA bits=128 verify=NO); Wed, 1 Sep 2004 18:06:39 +0200 Message-ID: <4135F388.5080604@leogic.com> Date: Wed, 01 Sep 2004 18:06:32 +0200 From: Sven Mueller User-Agent: Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <200409011530.i81FUR0E006748@nexus.iu.hio.no> In-Reply-To: <200409011530.i81FUR0E006748@nexus.iu.hio.no> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Mark.Burgess@iu.hio.no Subject: Re: editfiles question X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 16:12:06 -0000 Status: O Content-Length: 946 Lines: 26 Mark.Burgess@iu.hio.no [u] wrote on 01/09/2004 17:30: > This any use? > > http://www.cfengine.org/confdir/customizepasswd.html Not really, at least not for my situation: - I _must_ avoid unneeded restarts, - but restarts are _needed_ when I edit the configuration file. > The configuration file isn't /etc/passwd, but has a very similar format (maybe /etc/aliases would be a better example). So I really have to find a way to replace existing lines starting with the same first field's content as the replacement. Also, if no matching line is found, I must append the replacement line. If any of these two actions took place (and thus the file actually changed), I want to define a class to later restart the corresponding program. If cfengine can't achieve this by itself, I will have to do it via an external script, but this is such a common task that I really think cfengine should be able to do it out of the box. cu, sven From MAILER-DAEMON Wed Sep 01 12:13:38 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2Xjt-0007V0-SS for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 12:13:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2Xjs-0007Uk-7l for help-cfengine@gnu.org; Wed, 01 Sep 2004 12:13:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2Xjq-0007UM-I7 for help-cfengine@gnu.org; Wed, 01 Sep 2004 12:13:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2Xjq-0007UC-Ea for help-cfengine@gnu.org; Wed, 01 Sep 2004 12:13:34 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2Xeh-00027J-It for help-cfengine@gnu.org; Wed, 01 Sep 2004 12:08:16 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i81G8CUL009856; Wed, 1 Sep 2004 18:08:16 +0200 (MEST) Message-Id: <200409011608.i81G8CUL009856@nexus.iu.hio.no> Date: Wed, 1 Sep 2004 18:08:12 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: sm@leogic.com In-Reply-To: <4135F388.5080604@leogic.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: Mark.Burgess@iu.hio.no, help-cfengine@gnu.org Subject: Re: editfiles question X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 16:13:36 -0000 Status: O Content-Length: 1315 Lines: 40 Make a patch ;) M On 1 Sep, Sven Mueller wrote: > Mark.Burgess@iu.hio.no [u] wrote on 01/09/2004 17:30: > >> This any use? >> >> http://www.cfengine.org/confdir/customizepasswd.html > > Not really, at least not for my situation: > - I _must_ avoid unneeded restarts, > - but restarts are _needed_ when I edit the configuration file. > > The configuration file isn't /etc/passwd, but has a very > similar format (maybe /etc/aliases would be a better example). > > So I really have to find a way to replace existing lines starting with > the same first field's content as the replacement. Also, if no matching > line is found, I must append the replacement line. If any of these two > actions took place (and thus the file actually changed), I want to > define a class to later restart the corresponding program. > > If cfengine can't achieve this by itself, I will have to do it via an > external script, but this is such a common task that I really think > cfengine should be able to do it out of the box. > > cu, > sven ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Wed Sep 01 12:36:07 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2Y5f-0007Cd-6Z for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 12:36:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2Y5d-0007CE-6Y for help-cfengine@gnu.org; Wed, 01 Sep 2004 12:36:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2Y5c-0007Bv-Lh for help-cfengine@gnu.org; Wed, 01 Sep 2004 12:36:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2Y5c-0007Bs-Hg for help-cfengine@gnu.org; Wed, 01 Sep 2004 12:36:04 -0400 Received: from [152.157.64.30] (helo=nsd.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2Y0f-0005u9-SL for help-cfengine@gnu.org; Wed, 01 Sep 2004 12:30:58 -0400 Received: from [10.2.9.13] (account ckacoroski HELO [10.2.9.13]) by nsd.org (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5228831; Wed, 01 Sep 2004 09:30:57 -0700 Message-ID: <4135F940.4020900@nsd.org> Date: Wed, 01 Sep 2004 09:30:56 -0700 From: Chris Kacoroski Organization: Northshore School District User-Agent: Mozilla Thunderbird 0.7.3 (Macintosh/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mark.Burgess@iu.hio.no References: <200409010158.i811wZKh023502@nexus.iu.hio.no> In-Reply-To: <200409010158.i811wZKh023502@nexus.iu.hio.no> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: help-cfengine@gnu.org Subject: Re: Question on alerts X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ckacoroski@nsd.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 16:36:05 -0000 Status: O Content-Length: 1963 Lines: 71 Mark, The process is amd and when I tried to restart is automatically some people were still in the directories and the restart managed to hang teh machines pretty good. I only run it on a few machines so it is no problem for me to restart it by hand (assuring everyone is out of the amd managed directories). That said, I still had no luck. My config file looks like: control: actionsequence = ( copy.amdcopy processes.amdprocs ) AddClasses = ( ExecResult(/usr/local/scripts/amdmachines) ) AddInstallable = ( amd restart_amd ) alerts: amd.restart_amd:: "Please restart amd on me as the config files have changed" I test it with: [ski2:/var/cfengine/inputs] root# /usr/local/sbin/cfagent -IqK -Drestart_amd cfengine:ski2: Please restart amd on me as the config files have changed but I do not get any email. Thanks for your help. ski Mark.Burgess@iu.hio.no wrote: > 1) Alerts have to be inside a class. Make sure that class is in > AddInstallable else the rule might not be seen. > > 2) Why don't you just get cfengine to restart the process? > > M > > On 31 Aug, Chris Kacoroski wrote: > >>Hi, >> >>I am trying to have cfengine send me a reminder to restart a process by >>hand when a config file changes. When I run cfagent -IqK I see the >>alert in the output, but I am not emailed anything. I get emails for >>errors, but not alerts. Any way to make alerts be "urgent messages" so >>they will show up in emails like errors do? >> >>cheers, >> >>ski >> > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Work: +47 22453272 Email: Mark.Burgess@iu.hio.no > Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > -- "When we try to pick out anything by itself, we find it connected to the entire universe" John Muir Chris "Ski" Kacoroski, ckacoroski@nsd.org, 425-489-6263 From MAILER-DAEMON Wed Sep 01 13:06:06 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2YYg-0002tX-1R for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 13:06:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2YYe-0002tD-2s for help-cfengine@gnu.org; Wed, 01 Sep 2004 13:06:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2YYc-0002si-JC for help-cfengine@gnu.org; Wed, 01 Sep 2004 13:06:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2YYc-0002sf-HI for help-cfengine@gnu.org; Wed, 01 Sep 2004 13:06:02 -0400 Received: from [152.157.64.30] (helo=nsd.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2YT2-00024c-6A for help-cfengine@gnu.org; Wed, 01 Sep 2004 13:00:16 -0400 Received: from [10.2.9.13] (account ckacoroski HELO [10.2.9.13]) by nsd.org (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5229387 for help-cfengine@gnu.org; Wed, 01 Sep 2004 10:00:15 -0700 Message-ID: <4136001F.7060303@nsd.org> Date: Wed, 01 Sep 2004 10:00:15 -0700 From: Chris Kacoroski Organization: Northshore School District User-Agent: Mozilla Thunderbird 0.7.3 (Macintosh/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <41351900.1060703@nsd.org> In-Reply-To: <41351900.1060703@nsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: cfrun question X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ckacoroski@nsd.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 17:06:04 -0000 Status: O Content-Length: 1224 Lines: 53 Go this working. Problem was I did not make the change in cfservd.conf on the master and it was overwriting the client I was testing on. ski Chris Kacoroski wrote: > I have cfrun.hosts in my /var/cfengine/inputs directory looking like this: > > [root@linux9 inputs]# cat cfrun.hosts > domain=nsd.org > access=root > > 10-171-248-171.nsd.org > > On the client I have the cfservd looking like this: > > control: > domain = ( nsd.org ) > AddClasses = ( ExecResult(/usr/local/scripts/ldapnames --cfengine) ) > workdir = ( "/var/cfengine" ) > AllowUsers = ( root ) > > cfrunCommand = ( "/usr/local/sbin/cfagent" ) > cfengine:: > AllowConnectionsFrom = ( 10. 192.168.0. 127.0.0.1 ) > > admit: > $(cfrunCommand) cfengine.nsd.org > > and I get errors like this: > > 10-171-248-171.nsd.org replies.. > > Host authentication failed. Did you forget the domain name or IP/DNS > address registration (for ipv4 or ipv6)?Connection with > 10-171-248-171.nsd.org completed > > > Appreciate any pointers. > > cheers, > > ski > -- "When we try to pick out anything by itself, we find it connected to the entire universe" John Muir Chris "Ski" Kacoroski, ckacoroski@nsd.org, 425-489-6263 From MAILER-DAEMON Wed Sep 01 13:22:05 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2Yo9-0000g5-AG for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 13:22:05 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2Yo7-0000fs-K9 for help-cfengine@gnu.org; Wed, 01 Sep 2004 13:22:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2Yo6-0000fO-GB for help-cfengine@gnu.org; Wed, 01 Sep 2004 13:22:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2Yo6-0000fL-Cb for help-cfengine@gnu.org; Wed, 01 Sep 2004 13:22:02 -0400 Received: from [64.233.170.207] (helo=mproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2Yiz-0004kT-Co for help-cfengine@gnu.org; Wed, 01 Sep 2004 13:16:45 -0400 Received: by mproxy.gmail.com with SMTP id 74so229678rnk for ; Wed, 01 Sep 2004 10:16:44 -0700 (PDT) Received: by 10.38.1.79 with SMTP id 79mr2083455rna; Wed, 01 Sep 2004 10:16:44 -0700 (PDT) Received: by 10.38.86.67 with HTTP; Wed, 1 Sep 2004 10:16:44 -0700 (PDT) Message-ID: Date: Wed, 1 Sep 2004 10:16:44 -0700 From: Xenon To: help-cfengine@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Did you forget the domain name... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Xenon List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 17:22:03 -0000 Status: O Content-Length: 7091 Lines: 209 I know this question has been asked countless times here, and I've read through all the archives and sites that I could find related to this error, but I'm still having a problem and am not able to find a solution. Presently just trying to get things working with 1 server and 1 client, I get the "Host authentication failed. Did you forget the domain name or IP/DNS address registration (for ipv4 or ipv6)?" error, from both the server and client. I have a very simple setup currently, just trying to copy a single file from the server to the client. Here are the files, I've changed the IP's and hostname's to protect the innocent and the guilty. Some of the configurations have been taken from an existing CFEngine configuration working in another part of the company. I am currently just trying to get the files to transfer, after that I will work out securing everything, etc. Running CFEngine version 2.1.5 -------------------------------------------------------- Server -------------------------------------------------------- cfservd.conf -------------------------------------------------------- control: domain = ( ) TrustKeysFrom = ( 1.1.0.0/16 ) sysadm = ( ) syslog = ( true ) SplayTime = ( 3 ) TimeOut = ( 10 ) AllowUsers = ( root scatanz ) any:: IfElapsed = ( 1 ) ExpireAfter = ( 5 ) MaxConnections = ( 100 ) MultipleConnections = ( false ) DenyBadClocks = ( true ) AllowConnectionsFrom = ( 1.1.0.0/16 ) AllMultipleConnectionsFrom = ( 1.2.0.0/16 ) LogAllConnections = ( true ) cfrunCommand = ( "/var/cfengine/sbin/cfagent" ) admit: # or grant: any:: /var/cfengine/masterfiles 10.244.* /etc/sudoers 10.244.* -------------------------------------------------------- client -------------------------------------------------------- cfagent.conf -------------------------------------------------------- control: actionsequence = ( copy ) domain = ( ) timezone = ( MET ) smtpserver = ( localhost ) sysadm = ( ) AllowUsers = ( root scatanz ) copy: /var/cfengine/masterfiles/testclient/passwd dest=/var/cfengine/masterfiles/passwd mode=600 server= -------------------------------------------------------- I'm brand new to all of this and somewhat overwhelmed, any help that you can provide is much appreciated. The things that I've done so far, after searching around for this error, I've found the possible solutions below and have checked and tried them. Possible: Forward and reverse DNS not working, use SkipVerify and/or SkipIdentify to make CFEngine not care about DNS. (I tried both of these, on both ends, get same error) (also verified and fixed the forward and reverse DNS for the 2 systems, and now both can forward and reverse DNS each other.) Possible: User not allowed? (Though I did not get this specific error, it seemed to be one of the causes of the error that I did get, so I verified that the AllowUsers directive is being used) Possible: Keys are not correct or not shared, etc (Verified the keys have been generated and are in the proper directory, also from the debug output of the command you can see that the key is accepted before it gets the error) ---------------------------------------------------------- Output from cfagent -v -q on client ---------------------------------------------------------- [prompt] /var/cfengine/sbin/cfagent -v -q Reference time set to Wed Sep 1 10:12:43 2004 GNU Configuration Engine - 2.1.5 Free Software Foundation 1994- Donated by Mark Burgess, Faculty of Engineering, Oslo University College, 0254 Oslo, Norway ------------------------------------------------------------------------ Host name is: cftest Operating System Type is linux Operating System Release is 2.4.22-kb1 Architecture = i686 Using internal soft-class linux for host linux The time is now Wed Sep 1 10:12:43 2004 ------------------------------------------------------------------------ Additional hard class defined as: 32_bit Additional hard class defined as: linux_2_4_22_kb1 Additional hard class defined as: linux_i686 Additional hard class defined as: linux_i686_2_4_22_kb1 Additional hard class defined as: linux_i686_2_4_22_kb1__1_SMP_Tue_Dec_30_13_53_17_PST_2003 GNU autoconf class from compile time: compiled_on_linux_gnu Address given by nameserver: Interface 1: lo Interface 2: eth0 Trying to locate my IPv6 address Looking for environment from cfenvd... Loading environment... Environment data loaded cfengine:: No preconfiguration file $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ * (Changing context state to: update) * $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Looking for an input file /var/cfengine/inputs/update.conf (No file /var/cfengine/inputs/update.conf) Finished with /var/cfengine/inputs/update.conf $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ * (Changing context state to: main) * $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ --------------------------------------------------------------------- Loading persistent classes --------------------------------------------------------------------- --------------------------------------------------------------------- Loaded persistent memory --------------------------------------------------------------------- Looking for environment from cfenvd... Loading environment... Environment data loaded Looking for an input file /var/cfengine/inputs/cfagent.conf Finished with cfagent.conf Accepted domain name: Defined Classes = ( ) Negated Classes = ( ) Installable classes = ( ) Global expiry time for locks: 120 minutes Global anti-spam elapse time: 1 minutes Extensions which should not be directories = ( ) Suspicious filenames to be warned about = ( ) LogDirectory = /var/cfengine Loaded /var/cfengine/ppkeys/localhost.priv Loaded /var/cfengine/ppkeys/localhost.pub Checksum database is /var/cfengine/checksum.db Reference time set to Wed Sep 1 10:12:43 2004 ********************************************************************* Main Tree Sched: copy pass 1 @ Wed Sep 1 10:12:43 2004 ********************************************************************* Checking copy from :/var/cfengine/masterfiles/testclient/passwd to /var/cfengine/masterfiles/passwd Connect to = on port cfengine Updating last-seen time for furs Loaded /var/cfengine/ppkeys/root-.pub > cfengine:cftest: Strong authentication of server= connection confirmed cfengine:cftest: Server returned error: Host authentication failed. Did you forget the domain name or IP/DNS address registration (for ipv4 or ipv6)? cfengine:cftest: Can't stat /var/cfengine/masterfiles/testclient/passwd in copy Saving the setuid log in /var/cfengine/cfagent.cftest.log --------------------------------------------------------------- I tried to include everything, sorry I know this is long Thanks for your time From MAILER-DAEMON Wed Sep 01 15:09:00 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2aTc-0003i6-LW for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 15:09:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2aTZ-0003eo-4y for help-cfengine@gnu.org; Wed, 01 Sep 2004 15:08:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2aTW-0003dK-JI for Help-cfengine@gnu.org; Wed, 01 Sep 2004 15:08:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2aTW-0003cd-6S for Help-cfengine@gnu.org; Wed, 01 Sep 2004 15:08:54 -0400 Received: from [130.164.141.23] (helo=mail.natinst.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2aO6-0004ma-NU for Help-cfengine@gnu.org; Wed, 01 Sep 2004 15:03:18 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.natinst.com (Postfix) with ESMTP id DE4044745B for ; Wed, 1 Sep 2004 14:03:12 -0500 (CDT) Received: from draconix.natinst.com (draconix.natinst.com [10.0.7.222]) by mail.natinst.com (Postfix) with ESMTP id C762D47460 for ; Wed, 1 Sep 2004 14:03:08 -0500 (CDT) Received: by draconix.natinst.com (Postfix, from userid 1631) id AE25222B8B; Wed, 1 Sep 2004 14:03:08 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by draconix.natinst.com (Postfix) with ESMTP id A771F22B8A for ; Wed, 1 Sep 2004 14:03:08 -0500 (CDT) Date: Wed, 1 Sep 2004 14:03:08 -0500 (CDT) From: "David E. Nelson" X-X-Sender: dnelson@draconix.natinst.com To: Help-cfengine@gnu.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS snapshot-20020300 Cc: Subject: Multiple line matching and replace in editfiles X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "David E. Nelson" List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 19:08:58 -0000 Status: O Content-Length: 284 Lines: 23 Hi All, I need to replace multiple lines with a single line. Such that: # # is replaced with: # Is this possible and how? Thanks, /\/elson -- ~~ ** ~~ If you didn't learn anything when you broke it the 1st ~~ ** ~~ time, then break it again. From MAILER-DAEMON Wed Sep 01 17:47:55 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2cxO-0004aA-Mf for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 17:47:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2cxL-0004Yd-Td for help-cfengine@gnu.org; Wed, 01 Sep 2004 17:47:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2cxJ-0004Ww-7h for help-cfengine@gnu.org; Wed, 01 Sep 2004 17:47:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2cxJ-0004Wr-4H for help-cfengine@gnu.org; Wed, 01 Sep 2004 17:47:49 -0400 Received: from [193.197.184.2] (helo=mail.inka.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2csL-00062K-Ce for help-cfengine@gnu.org; Wed, 01 Sep 2004 17:42:41 -0400 Received: from raven.inka.de (uucp@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1C2csE-0000nz-00; Wed, 01 Sep 2004 23:42:34 +0200 Received: from localhost (localhost [127.0.0.1]) by raven.inka.de (Postfix) with ESMTP id 15A0A73AC; Wed, 1 Sep 2004 22:16:01 +0200 (CEST) Received: from by localhost (amavisd-new, port ) id XXAB0F6b; Wed, 1 Sep 2004 22:16:00 +0200 (CEST) Received: by raven.inka.de (Postfix, from userid 500) id F3E1B73A7; Wed, 1 Sep 2004 22:15:59 +0200 (CEST) Date: Wed, 1 Sep 2004 22:15:59 +0200 From: Josef Wolf To: Mark.Burgess@iu.hio.no Message-ID: <20040901201559.GA14870@raven.inka.de> References: <1093985809.1778.13.camel@denk.nakedape.priv> <200409010227.i812Qseg023920@nexus.iu.hio.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409010227.i812Qseg023920@nexus.iu.hio.no> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at inka.de Cc: help-cfengine@gnu.org Subject: Re: How to use regex in editfiles? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 21:47:52 -0000 Status: O Content-Length: 1956 Lines: 46 On Wed, Sep 01, 2004 at 04:26:54AM +0200, Mark.Burgess@iu.hio.no wrote: > On 31 Aug, Wil Cooley wrote: > > What I don't understand is why the .* are necessary--why does the regex > > have to match the whole line instead of a substring? They aren't for > > other regex implementations. I guess I could see a safety issue with > > it... > This is documented, though nothing is ever documented clearly enough. Hmmm, I've read through all available documentation but can't find where this is documented. Can you give me a hint, please? > Regular expression implementations do not specify how they are to be used. Can you give an example for a tool that uses regex in such a way? What are the '^' and '$' symbols good for if you require to match the whole line anyway? BTW: '^' and '$' _are_ described in the cfengine documentation. > Frank is right that, for historical reasons, the available functions, > the names and the behaviours are a bit inconsistent. No, they are not. The "Containing" functions all use strings while the "matching" functions all use regex. I don't see any inconsistency here. > Unfortunately, once done it is > hard to change to a better idea without breaking something for someone. Breaking _what_? This "feature" is not documented. And no other tool I know of uses this "feature". > There are certainly no "safety issues" with regular expressions. The usage > is designed to make their application as safe as possible, assuming that > you always check that they match what you think they do. Regular > expressions are supposed to be standard things, but they are very very > far from being standard. They are very far from being standard in respect to the special symbols supported by the different implementations. But all implementations seem to agree on how to handle surrounding content when '^' and '$' are not used. -- Please visit and sign and http://www.ffii.org -- Josef Wolf -- jw@raven.inka.de -- From MAILER-DAEMON Wed Sep 01 18:00:04 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2d99-0008Oi-UR for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 18:00:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2d95-0008Np-Ol for help-cfengine@gnu.org; Wed, 01 Sep 2004 17:59:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2d90-0008Lu-PU for help-cfengine@gnu.org; Wed, 01 Sep 2004 17:59:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2d90-0008Lr-Ml for help-cfengine@gnu.org; Wed, 01 Sep 2004 17:59:54 -0400 Received: from [193.197.184.2] (helo=mail.inka.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2d3t-0008BD-7t for help-cfengine@gnu.org; Wed, 01 Sep 2004 17:54:37 -0400 Received: from raven.inka.de (uucp@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1C2d3r-0001aQ-00; Wed, 01 Sep 2004 23:54:35 +0200 Received: from localhost (localhost [127.0.0.1]) by raven.inka.de (Postfix) with ESMTP id 5C8D373AC for ; Wed, 1 Sep 2004 22:27:10 +0200 (CEST) Received: from by localhost (amavisd-new, port ) id XXyjUMhS for ; Wed, 1 Sep 2004 22:27:09 +0200 (CEST) Received: by raven.inka.de (Postfix, from userid 500) id 3480173A7; Wed, 1 Sep 2004 22:27:09 +0200 (CEST) Date: Wed, 1 Sep 2004 22:27:09 +0200 From: Josef Wolf To: help-cfengine@gnu.org Message-ID: <20040901202709.GB14870@raven.inka.de> References: <41345F8F.6060607@leogic.com> <20040831140547.GB13970@spacepants.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040831140547.GB13970@spacepants.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at inka.de Subject: Re: editfiles question X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 22:00:00 -0000 Status: O Content-Length: 2637 Lines: 70 On Wed, Sep 01, 2004 at 12:05:47AM +1000, Jamie Wilkinson wrote: > http://shipyard.com.au/shipyard/articles/sysadmin/cfengine-configfiles.py Ahhh, nice link! Thanks for pointing out some very important aspects! But I still see some flaws with this solution: - The regexes check only for "canonical" formats without ensuring that the keywords already _are_ canonical. For example: what happens when a keyword has leading whitespace? In this case the matches will fail and a second configuration line with the given keyword will be added. The solution would be to prepend the block with something equivalent to perl's s/^\s*(Keyword)\b((\s)\s*(\S.*))?/$1 $3/ # Make line canonical expression. But I can't figure out how this can be done in cfengine language. Any hints? - The regexes don't check for word-boundaries at the end of the keywords. What happens when new keywords are introduced which start with an existing keyword? For example: what happens when ssh decides to introduce a new X11ForwardingFooBar keyword? I suppose this can be fixed by using '^X11Forwarding\>.*'. Can somebody confirm this? - The blocks are almost identical for X11Forward, Protocol, SyslogFacility etc/pp. It would be nice to have some sort of "subroutine". Quoting from the cfengine-Reference info page: If you find yourself writing a lot, you are probably not going about things in the right way. Nice saying... But there seem to be some aspects in the language that enforce lots of typing. Even worse: if you want to make identical operations to several files (e.g. ssh_config _and_ sshd_config) you need to duplicate the already duplicated blocks. - In every block the keyword that is to be matched is repeated five times. This makes a lot of chances for typos. - How to edit files with a given structure (.INI files or some such.)? The conclusion seems to be that cfengine is not very good prepared for editing operations. Given following block from the example: BeginGroupIfNoLineMatching '^X11Forwarding\>.*' Append 'X11Forwarding' EndGroup ResetSearch 1 LocateLineMatching '^X11Forwarding\>.*' BeginGroupIfNoMatch '^X11Forwarding no$' ReplaceLineWith 'X11Forwarding no' EndGroup ResetSearch 1 Assuming you have the whole file in a multi-line-string, that could be done (in a more robust way, see above) in perl with: unless ( s/^\s*(X11Forwarding)\b.*$/$1 no/mi ) { s/\z/X11Forwarding no\n//; } -- Please visit and sign and http://www.ffii.org -- Josef Wolf -- jw@raven.inka.de -- From MAILER-DAEMON Wed Sep 01 18:18:24 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2dQu-0006dg-0x for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 18:18:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2dQs-0006dT-BM for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:18:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2dQq-0006d5-Pp for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:18:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2dQq-0006d2-Mn for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:18:20 -0400 Received: from [66.179.38.26] (helo=hamhock.hoovers.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2dLp-0002ey-Ck for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:13:09 -0400 Received: from exchange.hoovers.com (gamma.hoovers.com [66.179.38.8]) by hamhock.hoovers.com (HamHock-OUTBOUND) with ESMTP id 2A46D196E98; Wed, 1 Sep 2004 17:13:08 -0500 (CDT) Received: from hoovers-59.hoovers.com ([66.179.38.59]) by exchange.hoovers.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id R4VB82WZ; Wed, 1 Sep 2004 17:13:07 -0500 Date: Wed, 01 Sep 2004 17:13:08 -0500 From: Frank Smith To: Josef Wolf , Mark.Burgess@iu.hio.no Message-ID: <4B8FF8BCFDFEC437740097D8@hoovers-59.hoovers.com> In-Reply-To: <20040901201559.GA14870@raven.inka.de> References: <1093985809.1778.13.camel@denk.nakedape.priv> <200409010227.i812Qseg023920@nexus.iu.hio.no> <20040901201559.GA14870@raven.inka.de> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: help-cfengine@gnu.org Subject: Re: How to use regex in editfiles? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 22:18:22 -0000 Status: O Content-Length: 1138 Lines: 32 --On Wednesday, September 01, 2004 22:15:59 +0200 Josef Wolf wrote: > On Wed, Sep 01, 2004 at 04:26:54AM +0200, Mark.Burgess@iu.hio.no wrote: >> On 31 Aug, Wil Cooley wrote: > >> Frank is right that, for historical reasons, the available functions, >> the names and the behaviours are a bit inconsistent. > > No, they are not. The "Containing" functions all use strings while > the "matching" functions all use regex. I don't see any inconsistency > here. > My point about inconsistancy was not about 'Containing' itself, but the fact that various edit functions offered different subsets of 'Containing', 'Matching', and 'StartsWith'. My personal preference would be to just have the 'Matching' regexp construct and be able to do the others by using (or not using) the anchors and wildcards in the regexp. But as Mark pointed out, you can't change syntax without breaking current setups. Frank -- Frank Smith fsmith@hoovers.com Sr. Systems Administrator Voice: 512-374-4673 Hoover's Online Fax: 512-374-4501 From MAILER-DAEMON Wed Sep 01 18:24:56 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2dXE-0007VD-Nf for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 18:24:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2dXC-0007US-Id for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:24:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2dXA-0007U4-R9 for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:24:54 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2dXA-0007Tu-Oq for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:24:52 -0400 Received: from [193.197.184.2] (helo=mail.inka.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2dS4-0003eh-PS for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:19:37 -0400 Received: from raven.inka.de (uucp@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1C2dS2-0003dI-00; Thu, 02 Sep 2004 00:19:34 +0200 Received: from localhost (localhost [127.0.0.1]) by raven.inka.de (Postfix) with ESMTP id BDFFF73B3 for ; Wed, 1 Sep 2004 22:52:28 +0200 (CEST) Received: from by localhost (amavisd-new, port ) id XXQlNFWP for ; Wed, 1 Sep 2004 22:52:28 +0200 (CEST) Received: by raven.inka.de (Postfix, from userid 500) id EF01F73A7; Wed, 1 Sep 2004 22:52:27 +0200 (CEST) Date: Wed, 1 Sep 2004 22:52:27 +0200 From: Josef Wolf To: help-cfengine@gnu.org Message-ID: <20040901205227.GC14870@raven.inka.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at inka.de Subject: Execution order when files are imported? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 22:24:54 -0000 Status: O Content-Length: 700 Lines: 42 Hello! I can't deduce from the ducumentation what the execution order is when imported modules define their own actionsequece. For example: cfagent.conf: import: foo.cf bar.cf foo.cf: control: actionsequence = ( files links directories ) [ ... ] bar.cf: control: actionsequence = ( links files ) [ ... ] I would exepect the following sequence: foo.cf/files foo.cf/links foo.cf/directories bar.cf/links bar.cf/files The reality seems to be that the sequences are intermixed in some way. Can anyone clarify how properyl define actionsequences in imported files? -- Please visit and sign and http://www.ffii.org -- Josef Wolf -- jw@raven.inka.de -- From MAILER-DAEMON Wed Sep 01 18:32:54 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2dew-0004Go-0z for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 18:32:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2deu-0004GP-1F for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:32:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2des-0004Fv-Pb for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:32:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2des-0004Fl-Iu for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:32:50 -0400 Received: from [193.197.184.2] (helo=mail.inka.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2dZo-0004wb-K6 for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:27:37 -0400 Received: from raven.inka.de (uucp@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1C2dZm-0004AW-00; Thu, 02 Sep 2004 00:27:34 +0200 Received: from localhost (localhost [127.0.0.1]) by raven.inka.de (Postfix) with ESMTP id 8C9CD73B3 for ; Wed, 1 Sep 2004 23:00:19 +0200 (CEST) Received: from by localhost (amavisd-new, port ) id XXCHSIbh for ; Wed, 1 Sep 2004 23:00:18 +0200 (CEST) Received: by raven.inka.de (Postfix, from userid 500) id AE4C673A7; Wed, 1 Sep 2004 23:00:18 +0200 (CEST) Date: Wed, 1 Sep 2004 23:00:18 +0200 From: Josef Wolf To: help-cfengine@gnu.org Message-ID: <20040901210018.GD14870@raven.inka.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at inka.de Subject: Classes in shellcommands? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 22:32:52 -0000 Status: O Content-Length: 1024 Lines: 39 Hello! I have put the following sequence (stolen from anchor ;) into my config file: shellcommands: sshd_server.redhat.Hr00 | sshd_server.suse.Hr00:: "/sbin/chkconfig --list sshd | /usr/sbin/grep '3:off'" useshell=true inform=false define=sshd_chkconfig With this entry, cfagent complains: cf:cfengine::/var/cfengine/inputs/ssh.cf:107: scripts or commands must have absolute path names cfengine: concerns: sshd_server.redhat.Hr00 cf:cfengine::/var/cfengine/inputs/ssh.cf:107: scripts or commands must have absolute path names cfengine: concerns: | But the path names _are_ absolute. When I remove the or operator from the class specification: shellcommands: sshd_server.suse.Hr00:: "/sbin/chkconfig --list sshd | /usr/sbin/grep '3:off'" useshell=true inform=false define=sshd_chkconfig It works fine. Looks like classes parsing is different in shellcommands section? Any ideas? -- Please visit and sign and http://www.ffii.org -- Josef Wolf -- jw@raven.inka.de -- From MAILER-DAEMON Wed Sep 01 18:47:53 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2dtR-0001Fm-KW for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 18:47:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2dtP-0001EY-Ft for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:47:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2dtN-0001CQ-S9 for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:47:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2dtN-0001CI-OI for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:47:49 -0400 Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1C2doG-0007Bj-3N for help-cfengine@gnu.org; Wed, 01 Sep 2004 18:42:32 -0400 Received: (qmail 2713 invoked by uid 65534); 1 Sep 2004 22:42:30 -0000 Received: from unknown (EHLO dragonfly) (204.1.213.181) by mail.gmx.net (mp027) with SMTP; 02 Sep 2004 00:42:30 +0200 X-Authenticated: #14939166 From: "Mark" To: Date: Wed, 1 Sep 2004 15:42:29 -0700 Message-ID: <25a101c49074$f71dade0$b5d501cc@dragonfly> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal Subject: Problems with include in copy action X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 22:47:51 -0000 Status: O Content-Length: 627 Lines: 31 Hi, I tried to copy a file from one directory to another on the local server: ... copy: myclass:: /etc/ trustkey=true dest=/tmp/etc/ r=inf mode=0600 owner=root group=root include=my.cnf ... Instead of only copying my.cnf, the entire tree was copied from /etc to /tmp/etc The documentation says "Specifying one of these automatically excludes everything else except further include patterns.", which is the behaviour I do ussually get when copying files from the policy host over to the local server. But not in this case. Why does this behave differently??? Thanks, MARK From MAILER-DAEMON Wed Sep 01 21:48:52 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2gia-0003gZ-OS for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 21:48:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2giZ-0003fO-HF for help-cfengine@gnu.org; Wed, 01 Sep 2004 21:48:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2giY-0003e2-5I for help-cfengine@gnu.org; Wed, 01 Sep 2004 21:48:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2giY-0003dw-1h for help-cfengine@gnu.org; Wed, 01 Sep 2004 21:48:50 -0400 Received: from [202.4.236.33] (helo=support.anchor.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2gdY-0007wW-8j for help-cfengine@gnu.org; Wed, 01 Sep 2004 21:43:40 -0400 Received: from willow.home.spacepants.org (willow.bridge.anchor.net.au [10.108.62.188]) by support.anchor.net.au (Postfix) with ESMTP id 782BB2BA52 for ; Thu, 2 Sep 2004 11:43:36 +1000 (EST) Received: by willow.home.spacepants.org (Postfix, from userid 1000) id DB3FACB9C6; Thu, 2 Sep 2004 11:43:32 +1000 (EST) Date: Thu, 2 Sep 2004 11:43:32 +1000 From: Jamie Wilkinson To: help-cfengine@gnu.org Message-ID: <20040902014332.GB3854@spacepants.org> Mail-Followup-To: help-cfengine@gnu.org References: <41345F8F.6060607@leogic.com> <20040831140547.GB13970@spacepants.org> <20040901202709.GB14870@raven.inka.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040901202709.GB14870@raven.inka.de> X-Message-Flag: Magic 8-Ball says Outlook Not Good. X-Mailer: beefmail v0.0 Reply-By: Tue, 03 Aug 2004 11:13:57 +1000 X-No-CC: Please respect the setting of my Mail-Followup-To header User-Agent: Mutt/1.5.6+20040803i Subject: Re: editfiles question X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 01:48:51 -0000 Status: O Content-Length: 3505 Lines: 94 This one time, at band camp, Josef Wolf wrote: >On Wed, Sep 01, 2004 at 12:05:47AM +1000, Jamie Wilkinson wrote: > >> http://shipyard.com.au/shipyard/articles/sysadmin/cfengine-configfiles.py > >Ahhh, nice link! Thanks for pointing out some very important aspects! >But I still see some flaws with this solution: It's not perfect. I have a library that is gathering some dust at the moment that was designed to abstract away configuration file edits that should (well, it's a goal) do all the things you wanted; and once that was done I was planning on hacking in a new section, "config:" to cfengine. Unfortunately I've not had any time since I started working on it (maybe 2 years ago!) to get it anywhere near useful for production. I do all these config edits in M4 macros, though, so I say 'set this option to this value using shell variable syntax', or 'this one uses spaces instead of equals for the key/val separator'. Attached is the editfiles.m4 that I use in my cfengine rollouts. This solves the problem of repeated typing for me, but it's not ideal (I can get lost for hours in the M4 if I try to add a feature...) This file won't work by itself here, but you can get the idea of the things it does. dnl editfiles.m4 -*- m4 -*- dnl CF_SECTION(<>)dnl dnl define(<>, <>, << +$>>)>>)dnl dnl define(<>, <>, <<\(\[\|\]\)>>, <<\\\&>>)>>)dnl dnl define(<>, << dnl comment the output, whoa # set '$1' to '$3' dnl remove trailing whitespace when looking for the line BeginGroupIfNoLineMatching <<'^>>CF_REGEX_QUOTE(CF_EDITFILES_TAILCHOMP($1$2))<<.*'>> dnl append the key and separator to the end of file Append <<'>>CF_EDITFILES_TAILCHOMP($1$2)<<'>> EndGroup dnl back to the beginning of the file for the next search ResetSearch "1" LocateLineMatching <<'^>>CF_REGEX_QUOTE(CF_EDITFILES_TAILCHOMP($1$2))<<.*'>> BeginGroupIfNoMatch <<'^>><>)>><<$'>> dnl replace the line if it doesn't look the way it should ReplaceLineWith '<<$1$2$3>>' EndGroup dnl back to the beginning for the next search ResetSearch "1">>)dnl dnl define(<>, <>, $2)>>)dnl define(<>, <>, $2)>>)dnl define(<>, <>, $2)>>)dnl define(<>, <>, <<=>>, <<$2>>)>>)dnl dnl dnl dnl Special macro for defining an interface define(<>, <>)<<>>_restart, ifelse($4, <<>>, <<>>, $4))>>)dnl CF_EDITFILES_RH_INTERFACE dnl define(<>, <<>>)dnl dnl define(<>, << ifelse($4, <<>>, <<>>, <<# $4 >>)dnl { $1 # Don't make a backup file. Backup "off" # Create the file if it doesn't exist. AutoCreate # Tell us about it Inform "on" $2 ifelse($3, <<>>, <<>>, << # if the file has changed define some classes DefineClasses "$3" >>)dnl ifelse }>>)dnl CF_EDIT_FILE -- jaq@spacepants.org http://spacepants.org/jaq.gpg From MAILER-DAEMON Wed Sep 01 21:52:55 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2gmV-0005H4-Cn for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 21:52:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2gmT-0005EI-6z for help-cfengine@gnu.org; Wed, 01 Sep 2004 21:52:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2gmS-0005Dc-LX for help-cfengine@gnu.org; Wed, 01 Sep 2004 21:52:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2gmS-0005DS-IU for help-cfengine@gnu.org; Wed, 01 Sep 2004 21:52:52 -0400 Received: from [202.4.236.33] (helo=support.anchor.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2ghG-0008Ui-Ev for help-cfengine@gnu.org; Wed, 01 Sep 2004 21:47:30 -0400 Received: from willow.home.spacepants.org (willow.bridge.anchor.net.au [10.108.62.188]) by support.anchor.net.au (Postfix) with ESMTP id 80FCB2BA52 for ; Thu, 2 Sep 2004 11:47:29 +1000 (EST) Received: by willow.home.spacepants.org (Postfix, from userid 1000) id EBA67CB9C6; Thu, 2 Sep 2004 11:47:25 +1000 (EST) Date: Thu, 2 Sep 2004 11:47:25 +1000 From: Jamie Wilkinson To: help-cfengine@gnu.org Message-ID: <20040902014725.GC3854@spacepants.org> Mail-Followup-To: help-cfengine@gnu.org References: <20040901205227.GC14870@raven.inka.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040901205227.GC14870@raven.inka.de> X-Message-Flag: Magic 8-Ball says Outlook Not Good. X-Mailer: beefmail v0.0 Reply-By: Tue, 03 Aug 2004 11:13:57 +1000 X-No-CC: Please respect the setting of my Mail-Followup-To header User-Agent: Mutt/1.5.6+20040803i Subject: Re: Execution order when files are imported? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 01:52:53 -0000 Status: O Content-Length: 918 Lines: 45 This one time, at band camp, Josef Wolf wrote: >Hello! > >I can't deduce from the ducumentation what the execution order is when >imported modules define their own actionsequece. For example: > >cfagent.conf: > > import: > foo.cf > bar.cf > foo.cf/files > foo.cf/links > foo.cf/directories > bar.cf/links > bar.cf/files cfagent.conf gets executed in its entirety first, then the imports are processed in the order you specify, i.e.: cfagent.conf read and executed foo.cf read bar.cf read all imports executed The actionsequence defines the order of execution, so then: foo.cf/files bar.cf/files foo.cf/links bar.cf/links foo.cf/directories I do nothing except import in cfagent.conf, so that things behave as I expect them to, and I only define the actionsequence once (in the first file imported by cfagent.conf) -- jaq@spacepants.org http://spacepants.org/jaq.gpg From MAILER-DAEMON Wed Sep 01 22:04:24 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2gxc-0000NS-Ft for mharc-help-cfengine@gnu.org; Wed, 01 Sep 2004 22:04:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2gxa-0000N9-2L for help-cfengine@gnu.org; Wed, 01 Sep 2004 22:04:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2gxY-0000Mx-7t for help-cfengine@gnu.org; Wed, 01 Sep 2004 22:04:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2gxY-0000Mu-2Z for help-cfengine@gnu.org; Wed, 01 Sep 2004 22:04:20 -0400 Received: from [67.107.182.10] (helo=karl.presidio.alexa.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2gsT-0001uV-Rl for help-cfengine@gnu.org; Wed, 01 Sep 2004 21:59:06 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C49090.6AC20F5C" Date: Wed, 1 Sep 2004 18:59:01 -0700 Message-ID: <41089CB27BD8D24E8385C8003EDAF7AB014D69FB@karl.alexa.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: special feature or dark area?? hostname's hyphen character brings inconsistency in cfengine Thread-Index: AcSQkGph3WOo/2NvRPCiOb1TvAV70g== From: "Guolin Cheng" To: Cc: ops , Mark.Burgess@iu.hio.no Subject: special feature or dark area?? hostname's hyphen character brings inconsistency in cfengine X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 02:04:22 -0000 Status: O Content-Length: 19719 Lines: 419 This is a multi-part message in MIME format. ------_=_NextPart_001_01C49090.6AC20F5C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi,=20 We got a problem to implement cfengine to hosts with hyphen character(s) in their names like "ops-test2". According to our tests, we can use either "ops-test2" or "ops_test2" in group|class definitions, or take advantage of group definitions in NIS netgroup map in cf.groups file. But if we directly use hostnames to work as class names in cf.main, we find that "ops-test2" class will fails, while "ops_test2" class works fine. If this a special feature? Or just a dark area, bug needs to be fixed soon? My cfengine is 2.1.7p1 on Linux, we have the same issue for older versions as well. Thanks. The following are related statements in my cf.groups and cf.main configurations files, both are included in cfagent.conf.=20 ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------ Cf.groups: ....... ## testing hyphen characters in hostnames, opsTest2Group1 =3D ( ops-test2 ) opsTest2Group2 =3D ( ops_test2 ) ....... Cf.main: =20 ............. shellcommands: ops-test2:: "/bin/echo ops-test2, If this line is displayed, then host names work with hyphen unchanged" ops_test2:: "/bin/echo ops_test2, If this line is displayed, then host names work with hyphen replaced with underbar." opsTest2Group1:: "/bin/echo opsTest2Group1, If this line is displayed, then group definitions can have host names with hyphen." opsTest2Group2:: "/bin/echo opsTest2Group2, If this line is displayed, then group definitions can have host names with hyphen replaced with underbar." ........=20 The testing results are: Case 1: ( with the above configurations ) [root@ops-test2 inputs]# cfagent -q cf:cfengine::/var/lib/cfengine2/inputs/cf.main:1095: scripts or commands must have absolute path names=20 cfengine: concerns: ops-test2:: [root@ops-test2 inputs]#=20 Case 2: comment out the "ops-test2::" stanza from cf.main file only, then the results are: [root@ops-test2 inputs]# cfagent -q cfengine:ops-test2:/bin/echo ops_t: ops_test2, If this line is displayed, then host names work with hyphen replaced with underbar. cfengine:ops-test2:/bin/echo opsTe: opsTest2Group1, If this line is displayed, then group definitions can have host names with hyphen. cfengine:ops-test2:/bin/echo opsTe: opsTest2Group2, If this line is displayed, then group definitions can have host names with hyphen replaced with underbar. Any ideas and suggestions? Thanks a lot. --Guolin Cheng ------_=_NextPart_001_01C49090.6AC20F5C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable special feature or dark area?? hostname's hyphen character = brings inconsistency in cfengine

Hi, =

  We got a problem to implement = cfengine to hosts with hyphen = character(s) in their names = like = ops-test2. According to our tests, we can use = either = ops-test2 or ops_test2 in group|class definitions, or take advantage of group definitions in NIS = netgroup map in cf.groups = file.  But = if we directly use hostnames to work as class = names in cf.main, we find = that = ops-test2 class will fails, = while = ops_test2 class works fine.

  If this a special feature? Or just a dark area, bug needs = to be fixed soon?  My cfengine = is 2.1.7p1 = on Linux, we have the same issue = for older versions as well. Thanks.

 The following are related statements = in my cf.groups and cf.main configurations files, both are included in = cfagent.conf.

----------------------------------------------------------= -------------------------------------------------------------------------= -------------------------------------------------------------------

 Cf.groups:

 .

  ## testing = hyphen characters in hostnames,

   opsTest2Group1 =3D ( ops-test2 = )

   opsTest2Group2 =3D ( ops_test2 = )

 .


Cf.main:

 

 .

shellcommands:

  ops-test2::

    "/bin/echo ops-test2, If this = line is displayed, then host names work with hyphen = unchanged"

  ops_test2::

    "/bin/echo ops_test2, = If this line is displayed, then host names = work with hyphen replaced with underbar."

  opsTest2Group1::

    "/bin/echo opsTest2Group1, If = this line is displayed, then group definitions can have host names with = hyphen."

  opsTest2Group2::

"/bin/echo opsTest2Group2, If this line is = displayed, then group definitions can have host names with hyphen replaced with = underbar."

..

The = testing results are:

Case 1: ( with the above configurations = )

[root@ops-test2 inputs]# cfagent -q

cf:cfengine::/var/lib/cfengine2/inputs/cf.main:1095: = scripts or commands must have absolute path names

cfengine: concerns: ops-test2::

[root@ops-test2 inputs]# =

Case = 2: comment out the ops-test2:: stanza from cf.main = file only, then the results are:

[root@ops-test2 inputs]# cfagent -q

cfengine:ops-test2:/bin/echo ops_t: ops_test2, If this = line is displayed, then host names work with hyphen replaced with = underbar.

cfengine:ops-test2:/bin/echo opsTe: opsTest2Group1, If = this line is displayed, then group = definitions can have host names = with hyphen.

cfengine:ops-test2:/bin/echo opsTe: opsTest2Group2, If = this line is displayed, then group definitions can have host names = with hyphen replaced with underbar.

Any = ideas and suggestions? Thanks a = lot.

--Guolin Cheng




------_=_NextPart_001_01C49090.6AC20F5C-- From MAILER-DAEMON Thu Sep 02 01:21:29 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2k2K-0007dm-6O for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 01:21:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2k2G-0007dc-TR for help-cfengine@gnu.org; Thu, 02 Sep 2004 01:21:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2k2F-0007dQ-Va for help-cfengine@gnu.org; Thu, 02 Sep 2004 01:21:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2k2F-0007dN-RW for help-cfengine@gnu.org; Thu, 02 Sep 2004 01:21:23 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2jwN-0003jF-Qc for help-cfengine@gnu.org; Thu, 02 Sep 2004 01:15:20 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i825F9I4012241; Thu, 2 Sep 2004 07:15:13 +0200 (MEST) Message-Id: <200409020515.i825F9I4012241@nexus.iu.hio.no> Date: Thu, 2 Sep 2004 07:15:09 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: guolin@alexa.com In-Reply-To: <41089CB27BD8D24E8385C8003EDAF7AB014D69FB@karl.alexa.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: ops@alexa.com, help-cfengine@gnu.org, Mark.Burgess@iu.hio.no Subject: Re: special feature or dark area?? hostname's hyphen character brings inconsistency in cfengine X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 05:21:25 -0000 Status: O Content-Length: 3329 Lines: 97 Hyphens cannot be used in class names, just as they cannot be used in variable names in any language I know of. Underscores can be used so you must have a different problem. I am guessing that your class definition is parsed after your rule to echo a string. This all works fine, it is used all the time for internal stuff. M On 1 Sep, Guolin Cheng wrote: > Hi, > > We got a problem to implement cfengine to hosts with hyphen > character(s) in their names like "ops-test2". According to our tests, we > can use either "ops-test2" or "ops_test2" in group|class definitions, or > take advantage of group definitions in NIS netgroup map in cf.groups > file. But if we directly use hostnames to work as class names in > cf.main, we find that "ops-test2" class will fails, while "ops_test2" > class works fine. > > If this a special feature? Or just a dark area, bug needs to be fixed > soon? My cfengine is 2.1.7p1 on Linux, we have the same issue for older > versions as well. Thanks. > > The following are related statements in my cf.groups and cf.main > configurations files, both are included in cfagent.conf. > > ------------------------------------------------------------------------ > ------------------------------------------------------------------------ > ------------------------------------------------------ > Cf.groups: > ....... > ## testing hyphen characters in hostnames, > opsTest2Group1 = ( ops-test2 ) > opsTest2Group2 = ( ops_test2 ) > ....... > > > Cf.main: > > ............. > shellcommands: > > ops-test2:: > "/bin/echo ops-test2, If this line is displayed, then host names > work with hyphen unchanged" > > ops_test2:: > "/bin/echo ops_test2, If this line is displayed, then host names > work with hyphen replaced with underbar." > > opsTest2Group1:: > "/bin/echo opsTest2Group1, If this line is displayed, then group > definitions can have host names with hyphen." > > opsTest2Group2:: > "/bin/echo opsTest2Group2, If this line is displayed, then group > definitions can have host names with hyphen replaced with underbar." > ........ > > The testing results are: > Case 1: ( with the above configurations ) > > [root@ops-test2 inputs]# cfagent -q > cf:cfengine::/var/lib/cfengine2/inputs/cf.main:1095: scripts or commands > must have absolute path names > cfengine: concerns: ops-test2:: > [root@ops-test2 inputs]# > > Case 2: comment out the "ops-test2::" stanza from cf.main file only, > then the results are: > [root@ops-test2 inputs]# cfagent -q > cfengine:ops-test2:/bin/echo ops_t: ops_test2, If this line is > displayed, then host names work with hyphen replaced with underbar. > cfengine:ops-test2:/bin/echo opsTe: opsTest2Group1, If this line is > displayed, then group definitions can have host names with hyphen. > cfengine:ops-test2:/bin/echo opsTe: opsTest2Group2, If this line is > displayed, then group definitions can have host names with hyphen > replaced with underbar. > > Any ideas and suggestions? Thanks a lot. > > --Guolin Cheng > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Thu Sep 02 02:18:59 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2kvz-0005TW-FP for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 02:18:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2kvx-0005T5-7T for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:18:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2kvv-0005SY-I9 for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:18:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2kvv-0005SO-EQ for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:18:55 -0400 Received: from [193.197.184.2] (helo=mail.inka.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2kqn-0003OJ-D5 for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:13:37 -0400 Received: from raven.inka.de (uucp@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1C2kql-0005AE-00; Thu, 02 Sep 2004 08:13:35 +0200 Received: from localhost (localhost [127.0.0.1]) by raven.inka.de (Postfix) with ESMTP id AF0F373C8 for ; Thu, 2 Sep 2004 06:46:54 +0200 (CEST) Received: from by localhost (amavisd-new, port ) id XXmHCR1C for ; Thu, 2 Sep 2004 06:46:53 +0200 (CEST) Received: by raven.inka.de (Postfix, from userid 500) id E3F8B73C7; Thu, 2 Sep 2004 06:46:53 +0200 (CEST) Date: Thu, 2 Sep 2004 06:46:53 +0200 From: Josef Wolf To: help-cfengine@gnu.org Message-ID: <20040902044653.GA2593@raven.inka.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at inka.de Subject: multiple network interfaces? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 06:18:57 -0000 Status: O Content-Length: 734 Lines: 27 Hello! How can I define multiple interfaces for a host? Following the example from the cfengine-Reference, I tried following: interfaces: router:: "eth0" netmask=255.255.0.0 broadcast=ones "eth1" netmask=255.255.255.0 broadcast=ones But this complains: cf:cfengine::/var/cfengine/inputs/cfagent.conf:133: redefinition of netmask cf:cfengine::/var/cfengine/inputs/cfagent.conf:133: redefinition of broadcast address Previous val = one This complain is issued even on hosts which don't have the class "router" defined. Along with this goes the question how to define different IP adresses for the different interfaces? -- Please visit and sign and http://www.ffii.org -- Josef Wolf -- jw@raven.inka.de -- From MAILER-DAEMON Thu Sep 02 02:20:29 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2kxR-00069M-0l for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 02:20:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2kxP-00069F-SF for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:20:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2kxP-00068w-59 for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:20:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2kxP-00068t-0T for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:20:27 -0400 Received: from [67.107.182.10] (helo=karl.presidio.alexa.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2ksN-0003fQ-2v for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:15:15 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Date: Wed, 1 Sep 2004 23:15:11 -0700 Message-ID: <41089CB27BD8D24E8385C8003EDAF7AB0848BD@karl.alexa.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: special feature or dark area?? hostname's hyphen character brings inconsistency in cfengine Thread-Index: AcSQq9j3qc+ztnjXTWKyV9f+PgkqMgABX+h6 From: "Guolin Cheng" To: , Cc: Subject: Thanks. --- RE: special feature or dark area?? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 06:20:28 -0000 Status: O Content-Length: 4455 Lines: 137 Mark, Thanks. I know some languages have a definition like " A valid = identifier is a sequence of one or more letters, digits or underline = symbols(_)...." :) But my question is: becasue some of my hostnames have hyphen = characters, and I figure out that "hyphened" hostnames fail to work as = classes directly, I want to make sure that it is not a bug and the = behavior will keep intact for a while since we implement cfengine in = production enviroment. Now I will use "ops_test2" instead of "ops-test2" as class names, = either in cf.groups or directly in cf.main. It is not a big problem for = not-very-smart users like me, as long as this rule -- replace hyphen = with underbar -- will remain valid for a long time. Thanks. --Guolin =20 -----Original Message----- From: Mark.Burgess@iu.hio.no [mailto:Mark.Burgess@iu.hio.no] Sent: Wed 9/1/2004 10:15 PM To: Guolin Cheng Cc: help-cfengine@gnu.org; ops; Mark.Burgess@iu.hio.no Subject: Re: special feature or dark area?? hostname's hyphen character = brings inconsistency in cfengine Hyphens cannot be used in class names, just as they cannot be used in variable names in any language I know of. Underscores can be used so you must have a different problem. I am guessing that your class definition is parsed after your rule to echo a string.=20 This all works fine, it is used all the time for internal stuff. M On 1 Sep, Guolin Cheng wrote: > Hi,=20 >=20 > We got a problem to implement cfengine to hosts with hyphen > character(s) in their names like "ops-test2". According to our tests, = we > can use either "ops-test2" or "ops_test2" in group|class definitions, = or > take advantage of group definitions in NIS netgroup map in cf.groups > file. But if we directly use hostnames to work as class names in > cf.main, we find that "ops-test2" class will fails, while "ops_test2" > class works fine. >=20 > If this a special feature? Or just a dark area, bug needs to be = fixed > soon? My cfengine is 2.1.7p1 on Linux, we have the same issue for = older > versions as well. Thanks. >=20 > The following are related statements in my cf.groups and cf.main > configurations files, both are included in cfagent.conf.=20 >=20 > = ------------------------------------------------------------------------ > = ------------------------------------------------------------------------ > ------------------------------------------------------ > Cf.groups: > ....... > ## testing hyphen characters in hostnames, > opsTest2Group1 =3D ( ops-test2 ) > opsTest2Group2 =3D ( ops_test2 ) > ....... >=20 >=20 > Cf.main: > =20 > ............. > shellcommands: >=20 > ops-test2:: > "/bin/echo ops-test2, If this line is displayed, then host names > work with hyphen unchanged" >=20 > ops_test2:: > "/bin/echo ops_test2, If this line is displayed, then host names > work with hyphen replaced with underbar." >=20 > opsTest2Group1:: > "/bin/echo opsTest2Group1, If this line is displayed, then group > definitions can have host names with hyphen." >=20 > opsTest2Group2:: > "/bin/echo opsTest2Group2, If this line is displayed, then group > definitions can have host names with hyphen replaced with underbar." > ........=20 >=20 > The testing results are: > Case 1: ( with the above configurations ) >=20 > [root@ops-test2 inputs]# cfagent -q > cf:cfengine::/var/lib/cfengine2/inputs/cf.main:1095: scripts or = commands > must have absolute path names=20 > cfengine: concerns: ops-test2:: > [root@ops-test2 inputs]#=20 >=20 > Case 2: comment out the "ops-test2::" stanza from cf.main file only, > then the results are: > [root@ops-test2 inputs]# cfagent -q > cfengine:ops-test2:/bin/echo ops_t: ops_test2, If this line is > displayed, then host names work with hyphen replaced with underbar. > cfengine:ops-test2:/bin/echo opsTe: opsTest2Group1, If this line is > displayed, then group definitions can have host names with hyphen. > cfengine:ops-test2:/bin/echo opsTe: opsTest2Group2, If this line is > displayed, then group definitions can have host names with hyphen > replaced with underbar. >=20 > Any ideas and suggestions? Thanks a lot. >=20 > --Guolin Cheng >=20 >=20 >=20 >=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Thu Sep 02 02:21:01 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2kxx-0006PC-B3 for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 02:21:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2kxu-0006Mt-DE for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:20:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2kxs-0006LV-5l for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:20:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2kxs-0006Kr-00 for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:20:56 -0400 Received: from [193.197.184.2] (helo=mail.inka.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2ksj-0003k4-AE for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:15:37 -0400 Received: from raven.inka.de (uucp@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1C2ksh-0005Ho-00; Thu, 02 Sep 2004 08:15:35 +0200 Received: from localhost (localhost [127.0.0.1]) by raven.inka.de (Postfix) with ESMTP id A8A3273C8 for ; Thu, 2 Sep 2004 06:48:47 +0200 (CEST) Received: from by localhost (amavisd-new, port ) id XXOntKvk for ; Thu, 2 Sep 2004 06:48:47 +0200 (CEST) Received: by raven.inka.de (Postfix, from userid 500) id 032C273C7; Thu, 2 Sep 2004 06:48:46 +0200 (CEST) Date: Thu, 2 Sep 2004 06:48:46 +0200 From: Josef Wolf To: help-cfengine@gnu.org Message-ID: <20040902044846.GB2593@raven.inka.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at inka.de Subject: Format of date specifications in backup file names? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 06:20:59 -0000 Status: O Content-Length: 405 Lines: 13 Hello! Is there any way to have the date specification of backup files in the /var/cfengine/outputs and the backup repository follow the ISO format (2004-09-01_20:30 or 20040901-2030 or some such)? The default date spec (Wed_Sep__1_20_30_01_2004) is a very poor choice because the files can't be sorted properly. -- Please visit and sign and http://www.ffii.org -- Josef Wolf -- jw@raven.inka.de -- From MAILER-DAEMON Thu Sep 02 02:24:55 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2l1j-0007oP-8b for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 02:24:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2l1h-0007n0-Jc for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:24:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2l1g-0007lw-0g for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:24:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2l1f-0007lq-Uo for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:24:51 -0400 Received: from [193.197.184.2] (helo=mail.inka.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2kwb-0004Oc-6L for help-cfengine@gnu.org; Thu, 02 Sep 2004 02:19:37 -0400 Received: from raven.inka.de (uucp@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1C2kwZ-0005Vs-00; Thu, 02 Sep 2004 08:19:35 +0200 Received: from localhost (localhost [127.0.0.1]) by raven.inka.de (Postfix) with ESMTP id 00A4273C8 for ; Thu, 2 Sep 2004 06:52:33 +0200 (CEST) Received: from by localhost (amavisd-new, port ) id XXVkpXOa for ; Thu, 2 Sep 2004 06:52:32 +0200 (CEST) Received: by raven.inka.de (Postfix, from userid 500) id 45ED773C7; Thu, 2 Sep 2004 06:52:32 +0200 (CEST) Date: Thu, 2 Sep 2004 06:52:32 +0200 From: Josef Wolf To: help-cfengine@gnu.org Message-ID: <20040902045232.GC2593@raven.inka.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at inka.de Subject: Changing ownership home directories and their contents? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 06:24:53 -0000 Status: O Content-Length: 496 Lines: 19 Hello! How do I ensure that home directories and their contents are owned by their users and their primary group. I'd like to do something like: files: home u=$(owner) g=$(owners_primary_group) act=fixall but tehre don't seem to exist some special notation that says fetch uid/gid-info from the passwd-entry with the name of the top-level. Do I need to use an external tool for such a thing? -- Please visit and sign and http://www.ffii.org -- Josef Wolf -- jw@raven.inka.de -- From MAILER-DAEMON Thu Sep 02 07:08:33 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2pSD-0001b8-Px for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 07:08:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2pSC-0001ar-Pa for help-cfengine@gnu.org; Thu, 02 Sep 2004 07:08:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2pS8-0001Ys-2C for help-cfengine@gnu.org; Thu, 02 Sep 2004 07:08:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2pS7-0001YE-TQ for help-cfengine@gnu.org; Thu, 02 Sep 2004 07:08:27 -0400 Received: from [62.245.182.8] (helo=mx.leogic.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2pMi-0004bL-LJ for help-cfengine@gnu.org; Thu, 02 Sep 2004 07:02:53 -0400 Received: from [127.0.0.1] ([192.168.65.59]) (authenticated bits=0) by mx.leogic.com (8.12.11/8.12.10) with ESMTP id i82B2klW024312 (version=TLSv1/SSLv3 cipher=IDEA-CBC-SHA bits=128 verify=NO) for ; Thu, 2 Sep 2004 13:02:51 +0200 Message-ID: <4136FDD0.9050605@leogic.com> Date: Thu, 02 Sep 2004 13:02:40 +0200 From: Sven Mueller User-Agent: Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <20040901205227.GC14870@raven.inka.de> In-Reply-To: <20040901205227.GC14870@raven.inka.de> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Execution order when files are imported? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 11:08:33 -0000 Status: O Content-Length: 1026 Lines: 47 Josef Wolf [u] wrote on 01/09/2004 22:52: > I can't deduce from the ducumentation what the execution order is when > imported modules define their own actionsequece. For example: > > cfagent.conf: > > import: > foo.cf > bar.cf > > > foo.cf: > > control: > actionsequence = ( files links directories ) > [ ... ] > > > bar.cf: > > control: > actionsequence = ( links files ) > [ ... ] > > > I would exepect the following sequence: > > foo.cf/files > foo.cf/links > foo.cf/directories > bar.cf/links > bar.cf/files > > The reality seems to be that the sequences are intermixed in some way. > Can anyone clarify how properyl define actionsequences in imported files? imported files are just imported (or in some way "included"), they can't define their own action sequence. Actually AFAIK, the last action sequence defined is probably used: In your case that would be "links files". If you need something to use it's own action sequencew, you need to use methods. cu, sven From MAILER-DAEMON Thu Sep 02 07:19:13 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2pcX-0005hj-Aj for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 07:19:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2pcV-0005gv-Ap for help-cfengine@gnu.org; Thu, 02 Sep 2004 07:19:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2pcR-0005fy-8Q for help-cfengine@gnu.org; Thu, 02 Sep 2004 07:19:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2pcR-0005fv-3X for help-cfengine@gnu.org; Thu, 02 Sep 2004 07:19:07 -0400 Received: from [195.37.215.43] (helo=mail-gw-1.br-online.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2pX1-0006Hf-Iy for help-cfengine@gnu.org; Thu, 02 Sep 2004 07:13:31 -0400 Received: from localhost (localhost [127.0.0.1]) by mail-gw-1.br-online.de (Postfix) with ESMTP id 225773855E2 for ; Thu, 2 Sep 2004 13:13:29 +0200 (CEST) Received: from mail-gw-1.br-online.de ([127.0.0.1]) by localhost (mail-gw-1 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11720-04 for ; Thu, 2 Sep 2004 13:13:28 +0200 (CEST) Received: from mail.br-online.de (nuts-57.br-online.de [195.37.215.57]) by mail-gw-1.br-online.de (Postfix) with ESMTP id 42ACA3855D4 for ; Thu, 2 Sep 2004 13:13:28 +0200 (CEST) Received: from localhorst.br.de (localhorst.br.de [10.65.3.180]) by mail.br-online.de (Postfix) with ESMTP id 29B9020A23A for ; Thu, 2 Sep 2004 13:12:45 +0200 (CEST) Received: from localhorst.br.de (localhost.localdomain [127.0.0.1]) by localhorst.br.de (8.12.11/8.12.10) with ESMTP id i82BDGIc000378 for ; Thu, 2 Sep 2004 13:13:16 +0200 Received: (from angenenr@localhost) by localhorst.br.de (8.12.11/8.12.11/Submit) id i82BDGxJ000377 for help-cfengine@gnu.org; Thu, 2 Sep 2004 13:13:16 +0200 X-Authentication-Warning: localhorst.br.de: angenenr set sender to ra+cfengine@br-online.de using -f Date: Thu, 2 Sep 2004 13:13:15 +0200 From: Ralph Angenendt To: help-cfengine@gnu.org Message-ID: <20040902111315.GD11277@br-online.de> Mail-Followup-To: help-cfengine@gnu.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline In-Reply-To: X-Message-Flag: You are using an insecure mail reader which can be used to spread viruses. User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at br-online.de Subject: Re: Did you forget the domain name... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 11:19:11 -0000 Status: O Content-Length: 906 Lines: 38 --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Xenon wrote: > Host name is: cftest .doma.in Your machine does not have a fully qualified domain name.=20 Ralph --=20 Ralph Angenendt......ra@br-online.de | .."Text processing has made it possi= ble Bayerischer Rundfunk...HA-Multimedia | ....to right-justify any idea, even = one Rundfunkplatz 1........80300 M=C3=BCnchen | .which cannot be justified on a= ny other Tl:089.5900.16023..Fx:089.5900.16240 | ..........grounds." -- J. Finnegan, = USC --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBNwBKjB6yu/0L7eURAgnkAJoDNfYPhMMyS2jHEPOfl47Fno/GugCgkzOL f+5PYWP4EIPHdgHDFCzVZj0= =NesK -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA-- From MAILER-DAEMON Thu Sep 02 07:57:37 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2qDg-0008Ou-RA for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 07:57:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2qDe-0008Lw-D3 for help-cfengine@gnu.org; Thu, 02 Sep 2004 07:57:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2qDc-0008Lb-Rw for help-cfengine@gnu.org; Thu, 02 Sep 2004 07:57:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2qDc-0008LY-Pp for help-cfengine@gnu.org; Thu, 02 Sep 2004 07:57:32 -0400 Received: from [62.245.182.8] (helo=mx.leogic.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2q8a-0003gX-7F for help-cfengine@gnu.org; Thu, 02 Sep 2004 07:52:20 -0400 Received: from [127.0.0.1] ([192.168.65.59]) (authenticated bits=0) by mx.leogic.com (8.12.11/8.12.10) with ESMTP id i82BqIIq009180 (version=TLSv1/SSLv3 cipher=IDEA-CBC-SHA bits=128 verify=NO) for ; Thu, 2 Sep 2004 13:52:19 +0200 Message-ID: <4137096C.2060306@leogic.com> Date: Thu, 02 Sep 2004 13:52:12 +0200 From: Sven Mueller User-Agent: Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: editfiles problem - revisited X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 11:57:34 -0000 Status: O Content-Length: 1018 Lines: 45 Hi. Remember my editfiles problem? I tried to get it working, but failed on the very first step. Here is what the file to be edited looks like before editing: test:x:1:1::/tmp/:/bin/bash test2:x:2:2::/tmp/:/bin/bash Here is what cfagent.conf looks like: control: actionsequence = ( editfiles ) editfiles: { /tmp/passwd Backup "Off" SplitOn ":" ReplaceLinesMatchingField 1 SetLine "test::::::" AppendIfNoLineMatching "ThisLine" } And here is what I thought the file should look like after editing: test:::::: test2:x:2:2::/tmp/:/bin/bash And this is how it actually looks like: test:x:1:1::/tmp/:/bin/bash test2:x:2:2::/tmp/:/bin/bash test:::::: The file remains completely unchanged when I remove the "AppendIfNoLineMatching" line from cfagent.conf. Though the documentation of "ReplaceLinesMatchingField" specifically talks about ForEachlineIn OR SetLine. What did I do wrong? cu, sven From MAILER-DAEMON Thu Sep 02 09:40:26 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2rpB-0000z6-1Q for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 09:40:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2rp6-0000xS-RB for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:40:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2rp3-0000vS-Ho for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:40:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2rp3-0000ui-9h for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:40:17 -0400 Received: from [193.197.184.2] (helo=mail.inka.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2rjd-0006Pv-SY for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:34:42 -0400 Received: from raven.inka.de (uucp@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1C2rjb-000842-00; Thu, 02 Sep 2004 15:34:39 +0200 Received: from localhost (localhost [127.0.0.1]) by raven.inka.de (Postfix) with ESMTP id 997EA73E6 for ; Thu, 2 Sep 2004 14:07:25 +0200 (CEST) Received: from by localhost (amavisd-new, port ) id XXwKlEol for ; Thu, 2 Sep 2004 14:07:24 +0200 (CEST) Received: by raven.inka.de (Postfix, from userid 500) id D720C73E5; Thu, 2 Sep 2004 14:07:24 +0200 (CEST) Date: Thu, 2 Sep 2004 14:07:24 +0200 From: Josef Wolf To: help-cfengine@gnu.org Message-ID: <20040902120724.GD2593@raven.inka.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at inka.de Subject: Confusion with directories/files? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 13:40:21 -0000 Status: O Content-Length: 796 Lines: 37 Hello! With the following snippet: directories: /root/.ssh m=700 o=root g=root home/.ssh m=700 files: /root/.ssh/authorized_keys m=600 act=touch o=root g=root home/.ssh/authorized_keys m=600 act=touch I keep getting following error: cfengine:raven: Directory /m/home/jw/.ssh/authorized_keys cannot be accessed in files This looks very strange to me because: $ ls -la /m/home/jw/.ssh total 5 drwx------ 2 jw jw 80 Aug 18 10:49 . drwx------ 18 jw jw 1256 Sep 2 09:57 .. -rw-r--r-- 1 jw jw 219 Aug 18 10:49 known_hosts $ Any idea what the error message wants to say to me? Why is cfengine assuming that authorized_keys is a directory? -- Please visit and sign and http://www.ffii.org -- Josef Wolf -- jw@raven.inka.de -- From MAILER-DAEMON Thu Sep 02 09:43:56 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2rsY-0002oR-Ch for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 09:43:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2rsV-0002mg-Kv for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:43:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2rsS-0002lA-Vr for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:43:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2rsS-0002k0-NA for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:43:48 -0400 Received: from [193.197.184.2] (helo=mail.inka.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2rnQ-0007aB-Vl for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:38:37 -0400 Received: from raven.inka.de (uucp@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1C2rnO-0008Jp-00; Thu, 02 Sep 2004 15:38:34 +0200 Received: from localhost (localhost [127.0.0.1]) by raven.inka.de (Postfix) with ESMTP id 1B4CF73E6 for ; Thu, 2 Sep 2004 14:11:23 +0200 (CEST) Received: from by localhost (amavisd-new, port ) id XXlyh22v for ; Thu, 2 Sep 2004 14:11:22 +0200 (CEST) Received: by raven.inka.de (Postfix, from userid 500) id 4D14773E5; Thu, 2 Sep 2004 14:11:22 +0200 (CEST) Date: Thu, 2 Sep 2004 14:11:22 +0200 From: Josef Wolf To: help-cfengine@gnu.org Message-ID: <20040902121122.GE2593@raven.inka.de> References: <20040901205227.GC14870@raven.inka.de> <20040902014725.GC3854@spacepants.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040902014725.GC3854@spacepants.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at inka.de Subject: Re: Execution order when files are imported? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 13:43:52 -0000 Status: O Content-Length: 925 Lines: 36 On Thu, Sep 02, 2004 at 11:47:25AM +1000, Jamie Wilkinson wrote: > > foo.cf/files > > foo.cf/links > > foo.cf/directories > > bar.cf/links > > bar.cf/files > > cfagent.conf gets executed in its entirety first, then the imports are > processed in the order you specify, i.e.: > > cfagent.conf read and executed > foo.cf read > bar.cf read > all imports executed > > The actionsequence defines the order of execution, so then: > > foo.cf/files > bar.cf/files > foo.cf/links > bar.cf/links > foo.cf/directories > > I do nothing except import in cfagent.conf, so that things behave as I > expect them to, and I only define the actionsequence once (in the first file > imported by cfagent.conf) But please note that foo.cf requires files executed before links while bar.cf requires links before files. How do you achieve this? -- Please visit and sign and http://www.ffii.org -- Josef Wolf -- jw@raven.inka.de -- From MAILER-DAEMON Thu Sep 02 09:57:29 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2s5h-0008NJ-F8 for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 09:57:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2s5e-0008L7-8I for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:57:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2s5b-0008JP-5n for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:57:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2s5a-0008Gi-Q6 for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:57:22 -0400 Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2s0L-00039i-Ub for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:51:58 -0400 Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by mx20.gnu.org with esmtp (Exim 4.34) id 1C2WLv-0001MC-I8 for help-cfengine@gnu.org; Wed, 01 Sep 2004 10:44:47 -0400 Received: from mailrelay2.lanl.gov (localhost.localdomain [127.0.0.1]) by mailwasher-b.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i81Eij6U021708 for ; Wed, 1 Sep 2004 08:44:45 -0600 Received: from ccn-mail.lanl.gov (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i81EiiVU008309; Wed, 1 Sep 2004 08:44:45 -0600 Received: from edbrown.lanl.gov (edbrown.lanl.gov [128.165.114.35]) by ccn-mail.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i81EiieV010424; Wed, 1 Sep 2004 08:44:44 -0600 From: Ed Brown To: Sven Mueller In-Reply-To: <4135DC7F.8050602@leogic.com> References: <41345F8F.6060607@leogic.com> <20040831140547.GB13970@spacepants.org> <4135DC7F.8050602@leogic.com> Content-Type: text/plain Message-Id: <1094049884.9017.11.camel@edbrown.lanl.gov> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 01 Sep 2004 08:44:44 -0600 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.35 Cc: help-cfengine@gnu.org Subject: Re: editfiles question X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 13:57:27 -0000 Status: O Content-Length: 2687 Lines: 82 Here's another approach: editfiles: { /etc/whatever BeginGroupIfNoLineMatching "root:$1raboof:4875::::::" LocateLineMatching "^root:.*" ReplaceLineWith "root:$1raboof:4875::::::" EndGroup } -Ed On Wed, 2004-09-01 at 08:28, Sven Mueller wrote: > Jamie Wilkinson [u] wrote on 31/08/2004 16:05: > > > This one time, at band camp, Sven Mueller wrote: > > >>From the documentation, I am not certain how to achieve the following > >>task. > >>Let's say I want to edit /etc/passwd (actually I am editing a similarly > >>formated, but different file), and I want the following to be achieved: > >> > >>- I want the file to be created if it doesn't exist (AutoCreate takes > >> care of this) > >>- I want a line "root:..1234567890123:0:0::/bin/bash" be added to the > >> file if it doesn't exist, overwriting any root:.* lines that might > >> exist. > > > > http://shipyard.com.au/shipyard/articles/sysadmin/cfengine-configfiles.py > > OK, I must have misread that page the first time, coming to the result > that it didn't achieve what I wanted: Editing the file only if the line > I want in there isn't there or when I need to replace lines matching its > first field. Jamie corrected this impression via private email. However, > the construct given on that page seems a bit too complex for such a > seemingly easy task. Here is what the page gives as to what one needs to > do (translated to editing /etc/passwd): > > { /etc/ssh/sshd_config > Backup 'off' > > BeginGroupIfNoLineMatching '^root:.*' > Append 'root:x:0:0::/bin/bash' > EndGroup > ResetSearch 1 > LocateLineMatching '^root.*' > BeginGroupIfNoMatch '^root:x:0:0::/bin/bash$' > ReplaceLineWith 'root:x:0:0::/bin/bash' > EndGroup > ) > > Now, this seems a bit too much just to replace matching lines by the > line wanted, appending or prepending the wanted line if no matching line > was found. In the given case (/etc/passwd), would this be enough? > > { /etc/passwd > Backup 'off' > ReplaceLinesMatchingField 1 > SetLine "root:x:0:0::/bin/bash" > # The above should already replace any line with > # a matching first field ("root"), right? > AppendIfNoLineMatching "ThisLine" > # which should append the line previously set by "SetLine" > # if no matching line is in the file yet, right? > } > > If nobody can say for certain, I will have to try this in some way. > > cu, > sven > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine From MAILER-DAEMON Thu Sep 02 09:58:34 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2s6j-0000R0-La for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 09:58:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2s6f-0000PO-V9 for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:58:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2s6a-0000MV-RV for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:58:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2s6a-0000Jt-Ms for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:58:24 -0400 Received: from [193.197.184.2] (helo=mail.inka.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2s0z-0003Kz-Lx for help-cfengine@gnu.org; Thu, 02 Sep 2004 09:52:38 -0400 Received: from raven.inka.de (uucp@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1C2s0x-0000jw-00; Thu, 02 Sep 2004 15:52:35 +0200 Received: from localhost (localhost [127.0.0.1]) by raven.inka.de (Postfix) with ESMTP id 4927573E7; Thu, 2 Sep 2004 14:25:42 +0200 (CEST) Received: from by localhost (amavisd-new, port ) id XXSjD0MJ; Thu, 2 Sep 2004 14:25:41 +0200 (CEST) Received: by raven.inka.de (Postfix, from userid 500) id 71D1A73E6; Thu, 2 Sep 2004 14:25:41 +0200 (CEST) Date: Thu, 2 Sep 2004 14:25:41 +0200 From: Josef Wolf To: Sven Mueller Message-ID: <20040902122541.GF2593@raven.inka.de> References: <4137096C.2060306@leogic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4137096C.2060306@leogic.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at inka.de Cc: help-cfengine@gnu.org Subject: Re: editfiles problem - revisited X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 13:58:30 -0000 Status: O Content-Length: 1007 Lines: 37 On Thu, Sep 02, 2004 at 01:52:12PM +0200, Sven Mueller wrote: > test:x:1:1::/tmp/:/bin/bash > test2:x:2:2::/tmp/:/bin/bash > > Here is what cfagent.conf looks like: > > control: > actionsequence = ( editfiles ) > > editfiles: > { /tmp/passwd > Backup "Off" > SplitOn ":" > ReplaceLinesMatchingField 1 > SetLine "test::::::" > AppendIfNoLineMatching "ThisLine" > } AFAICS, the ThisLine notation works only in a ForEachLineIn loop. You need to give a regexp to AppendIfNoLineMatching. Further, ReplaceLinesMatching requires either a ForEachLineIn loop or a SetLine. So please try: { /tmp/passwd Backup "Off" SplitOn ":" SetLine "test::::::" ReplaceLinesMatchingField 1 AppendIfNoLineMatching "test:.*" } -- Please visit and sign and http://www.ffii.org -- Josef Wolf -- jw@raven.inka.de -- From MAILER-DAEMON Thu Sep 02 10:06:24 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2sEJ-0005pT-Os for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 10:06:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2sEH-0005o4-6z for help-cfengine@gnu.org; Thu, 02 Sep 2004 10:06:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2sEE-0005lB-LV for help-cfengine@gnu.org; Thu, 02 Sep 2004 10:06:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2sED-0005l6-By for help-cfengine@gnu.org; Thu, 02 Sep 2004 10:06:18 -0400 Received: from [62.245.182.8] (helo=mx.leogic.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2s91-0005NW-41 for help-cfengine@gnu.org; Thu, 02 Sep 2004 10:00:55 -0400 Received: from [127.0.0.1] ([192.168.65.59]) (authenticated bits=0) by mx.leogic.com (8.12.11/8.12.10) with ESMTP id i82E0qRm024135 (version=TLSv1/SSLv3 cipher=IDEA-CBC-SHA bits=128 verify=NO); Thu, 2 Sep 2004 16:00:53 +0200 Message-ID: <4137278F.60806@leogic.com> Date: Thu, 02 Sep 2004 16:00:47 +0200 From: Sven Mueller User-Agent: Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <4137096C.2060306@leogic.com> <20040902122541.GF2593@raven.inka.de> In-Reply-To: <20040902122541.GF2593@raven.inka.de> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: editfiles problem - revisited X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 14:06:21 -0000 Status: O Content-Length: 1302 Lines: 47 Josef Wolf [u] wrote on 02/09/2004 14:25: > On Thu, Sep 02, 2004 at 01:52:12PM +0200, Sven Mueller wrote: > > >>test:x:1:1::/tmp/:/bin/bash >>test2:x:2:2::/tmp/:/bin/bash >> >>Here is what cfagent.conf looks like: >> >>control: >> actionsequence = ( editfiles ) >> >>editfiles: >> { /tmp/passwd >> Backup "Off" >> SplitOn ":" >> ReplaceLinesMatchingField 1 >> SetLine "test::::::" >> AppendIfNoLineMatching "ThisLine" >> } > > > AFAICS, the ThisLine notation works only in a ForEachLineIn loop. You need > to give a regexp to AppendIfNoLineMatching. Further, ReplaceLinesMatching > requires either a ForEachLineIn loop or a SetLine. > So please try: > > { /tmp/passwd > Backup "Off" > SplitOn ":" > SetLine "test::::::" > ReplaceLinesMatchingField 1 > AppendIfNoLineMatching "test:.*" > } Changing it this way still doesn't replace an existing "test:x:1:1::/tmp/:/bin/bash" line with the "test::::::" line. It doesn't seem to matter wether the ReplaceLinesMatchingField instruction is given before or after SetLine. It doesn't do what the documentation suggests in either case. cu, sven From MAILER-DAEMON Thu Sep 02 10:54:51 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2szD-00043w-0Z for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 10:54:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2szB-00043m-Ek for help-cfengine@gnu.org; Thu, 02 Sep 2004 10:54:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2sz9-00043Z-Qd for help-cfengine@gnu.org; Thu, 02 Sep 2004 10:54:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2sz9-00043W-O3 for help-cfengine@gnu.org; Thu, 02 Sep 2004 10:54:47 -0400 Received: from [146.122.80.21] (helo=uscimplm001.ugsplm.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2stx-0005CF-02 for help-cfengine@gnu.org; Thu, 02 Sep 2004 10:49:25 -0400 Received: from [146.122.200.120] ([146.122.200.120]) by uscimplm001.ugsplm.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 2 Sep 2004 10:49:23 -0400 Message-ID: <413732FE.6000804@ugsplm.com> Date: Thu, 02 Sep 2004 10:49:34 -0400 From: Joe Moore User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Sep 2004 14:49:23.0468 (UTC) FILETIME=[0941C4C0:01C490FC] Subject: Managing Solaris LVM with cfengine X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 14:54:49 -0000 Status: O Content-Length: 303 Lines: 11 Does anyone have experience to share with managing Solaris's LVM (formerly Solstice Disk Suite) with cfengine? Is it possible (feasible) to have cfengine create metadevices, modify the vfstab file and mount the filesystems in a manageable way? Or am I progressing into uncharted territory? --Joe From MAILER-DAEMON Thu Sep 02 11:16:24 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2tK4-0002G2-76 for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 11:16:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2tK2-0002Fw-8h for help-cfengine@gnu.org; Thu, 02 Sep 2004 11:16:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2tK0-0002Fk-OA for help-cfengine@gnu.org; Thu, 02 Sep 2004 11:16:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2tK0-0002Fh-M3 for help-cfengine@gnu.org; Thu, 02 Sep 2004 11:16:20 -0400 Received: from [207.36.86.205] (helo=intruder.com.mx) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2tEp-0000f7-KN for help-cfengine@gnu.org; Thu, 02 Sep 2004 11:10:59 -0400 Received: from localhost (server.intruder.com.mx [127.0.0.1]) by intruder.com.mx (Postfix) with ESMTP id 547D25B4125 for ; Thu, 2 Sep 2004 10:09:55 -0500 (CDT) Received: from intruder.com.mx ([127.0.0.1]) by localhost (server.intruder.com.mx [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30510-01-27 for ; Thu, 2 Sep 2004 10:09:53 -0500 (CDT) Received: from akrall (unknown [201.133.125.44]) by intruder.com.mx (Postfix) with ESMTP id A45455B412F for ; Thu, 2 Sep 2004 10:09:26 -0500 (CDT) From: "Anton Krall" Sender: "Anton Krall" To: Date: Thu, 2 Sep 2004 10:10:13 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 thread-index: AcSQ/k/fTIg2RURpTBerQzLWgLfhxQ== Message-Id: <20040902150927.A45455B412F@intruder.com.mx> X-Virus-Scanned: by amavisd-new at intruder.com.mx Subject: Deleting a file X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 15:16:22 -0000 Status: O Content-Length: 101 Lines: 7 Guys, how can I setup cfengine to delete a certain file or link for ex. /usr/local/bin/ssh? Thx! From MAILER-DAEMON Thu Sep 02 11:24:01 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2tRR-00050Q-FB for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 11:24:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2tRO-0004xf-VF for help-cfengine@gnu.org; Thu, 02 Sep 2004 11:23:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2tRN-0004w1-9f for help-cfengine@gnu.org; Thu, 02 Sep 2004 11:23:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2tRN-0004vR-3M for help-cfengine@gnu.org; Thu, 02 Sep 2004 11:23:57 -0400 Received: from [68.92.27.201] (helo=smilodon.rfc822.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2tLs-0001sU-5p for help-cfengine@gnu.org; Thu, 02 Sep 2004 11:18:16 -0400 Received: by smilodon.rfc822.net (Postfix, from userid 100) id 9F2181B727; Thu, 2 Sep 2004 10:18:14 -0500 (CDT) Date: Thu, 2 Sep 2004 10:18:14 -0500 From: Pete Ehlke To: help-cfengine@gnu.org Message-ID: <20040902151814.GA6594@rfc822.net> Mail-Followup-To: help-cfengine@gnu.org References: <413732FE.6000804@ugsplm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <413732FE.6000804@ugsplm.com> User-Agent: Mutt/1.4.1i X-Message-Flag: OUTLOOK ERROR: Message contains Win32.Dumb.Outlook.Behaviour virus. Subject: Re: Managing Solaris LVM with cfengine X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 15:23:59 -0000 Status: O Content-Length: 829 Lines: 19 On Thu Sep 02, 2004 at 10:49:34 -0400, Joe Moore wrote: >Does anyone have experience to share with managing Solaris's LVM >(formerly Solstice Disk Suite) with cfengine? > >Is it possible (feasible) to have cfengine create metadevices, modify >the vfstab file and mount the filesystems in a manageable way? > This is pretty simple to script up in jumpstart; the sort of finish scripts you would use there could be ported over to cfengine fairly trivially, I would thing. (disclaimer: I've not actually done so) Luke has a pretty good jumpstart/disksuite finish script on his jumpstart page (http://www.madstop.com/jumpstart/); I use this stuff myself. There are a similar set of scripts in http://www.amazon.com/exec/obidos/tg/detail/-/013312505X/qid=1094138216/sr=1-3/ref=sr_1_3/103-8225445-7144646?v=glance&s=books -Pete From MAILER-DAEMON Thu Sep 02 11:29:51 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2tX5-0007Fk-9O for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 11:29:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2tX3-0007Fb-Tr for help-cfengine@gnu.org; Thu, 02 Sep 2004 11:29:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2tX2-0007FH-9R for help-cfengine@gnu.org; Thu, 02 Sep 2004 11:29:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2tX2-0007F7-7m for help-cfengine@gnu.org; Thu, 02 Sep 2004 11:29:48 -0400 Received: from [207.36.86.205] (helo=intruder.com.mx) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2tRd-0002lZ-EX for help-cfengine@gnu.org; Thu, 02 Sep 2004 11:24:13 -0400 Received: from localhost (server.intruder.com.mx [127.0.0.1]) by intruder.com.mx (Postfix) with ESMTP id E99945B412C; Thu, 2 Sep 2004 10:23:10 -0500 (CDT) Received: from intruder.com.mx ([127.0.0.1]) by localhost (server.intruder.com.mx [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30510-01-42; Thu, 2 Sep 2004 10:23:10 -0500 (CDT) Received: from akrall (unknown [201.133.125.44]) by intruder.com.mx (Postfix) with ESMTP id EB0E25B4125; Thu, 2 Sep 2004 10:23:09 -0500 (CDT) From: "Anton Krall" Sender: "Anton Krall" To: "'David E. Nelson'" Date: Thu, 2 Sep 2004 10:23:58 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 thread-index: AcSQ/7Mnl4i1pb5uT+2mBRrT12zmmgAAMCVA Message-Id: <20040902152309.EB0E25B4125@intruder.com.mx> X-Virus-Scanned: by amavisd-new at intruder.com.mx Cc: help-cfengine@gnu.org Subject: RE: Deleting a file X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 15:29:50 -0000 Status: O Content-Length: 1080 Lines: 60 Thx Nelson! ------------------------------------ Intruder Consulting Anton Krall Director General akrall@intruder.com.mx tel: 5781-5112 mobile: 1325-3511 IM: akrall@intruder.com.mx www.intruder.com.mx ------------------------------------ %-----Original Message----- %From: David E. Nelson [mailto:dnelson@ni.com] %Sent: Jueves, 02 de Septiembre de 2004 10:16 a.m. %To: Anton Krall %Cc: help-cfengine@gnu.org %Subject: Re: Deleting a file % %Hi Anton, % %Just did this a couple of mins ago: % %tidy: % % any:: % % /some/directory % pattern=file_foo % recurse=0 % %Regards, % /\/elson % %On Thu, 2 Sep 2004, Anton Krall wrote: % %> Guys, how can I setup cfengine to delete a certain file or %link for ex. %> /usr/local/bin/ssh? %> %> Thx! %> %> %> %> _______________________________________________ %> Help-cfengine mailing list %> Help-cfengine@gnu.org %> http://lists.gnu.org/mailman/listinfo/help-cfengine %> % %-- %~~ ** ~~ If you didn't learn anything when you broke it the %1st ~~ ** ~~ % time, then break it again. % From MAILER-DAEMON Thu Sep 02 12:42:01 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2ueu-0005EU-SB for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 12:42:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2uet-0005E8-0R for help-cfengine@gnu.org; Thu, 02 Sep 2004 12:41:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2uer-0005Dw-BQ for help-cfengine@gnu.org; Thu, 02 Sep 2004 12:41:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2uer-0005Dt-8G for help-cfengine@gnu.org; Thu, 02 Sep 2004 12:41:57 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2uZr-0005k7-8O for help-cfengine@gnu.org; Thu, 02 Sep 2004 12:36:47 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i82GajMK013648; Thu, 2 Sep 2004 11:36:45 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: Josef Wolf , help-cfengine@gnu.org Date: Thu, 2 Sep 2004 11:36:45 -0500 User-Agent: KMail/1.5.4 References: <20040901205227.GC14870@raven.inka.de> <20040902014725.GC3854@spacepants.org> <20040902121122.GE2593@raven.inka.de> In-Reply-To: <20040902121122.GE2593@raven.inka.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409021136.45098.chip@trdlnk.com> Cc: Subject: Re: Execution order when files are imported? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 16:41:59 -0000 Status: O Content-Length: 1484 Lines: 59 Not what you want to hear, but I've generally had to acheive that sort of thing by throwing levels of imporation at the problem. Ugly, but it works. OoO can be a real headache.... On Thursday 02 September 2004 07:11, Josef Wolf wrote: > On Thu, Sep 02, 2004 at 11:47:25AM +1000, Jamie Wilkinson wrote: > > > > foo.cf/files > > > foo.cf/links > > > foo.cf/directories > > > bar.cf/links > > > bar.cf/files > > > > cfagent.conf gets executed in its entirety first, then the imports are > > processed in the order you specify, i.e.: > > > > cfagent.conf read and executed > > foo.cf read > > bar.cf read > > all imports executed > > > > The actionsequence defines the order of execution, so then: > > > > foo.cf/files > > bar.cf/files > > foo.cf/links > > bar.cf/links > > foo.cf/directories > > > > I do nothing except import in cfagent.conf, so that things behave as I > > expect them to, and I only define the actionsequence once (in the first file > > imported by cfagent.conf) > > But please note that foo.cf requires files executed before links while > bar.cf requires links before files. How do you achieve this? > > -- > Please visit and sign and http://www.ffii.org > -- Josef Wolf -- jw@raven.inka.de -- > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Thu Sep 02 13:28:59 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2vON-00046N-GJ for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 13:28:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2vOM-00044x-09 for help-cfengine@gnu.org; Thu, 02 Sep 2004 13:28:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2vOK-000431-2l for help-cfengine@gnu.org; Thu, 02 Sep 2004 13:28:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2vOK-00042y-0M for help-cfengine@gnu.org; Thu, 02 Sep 2004 13:28:56 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2vJ9-00047y-38 for help-cfengine@gnu.org; Thu, 02 Sep 2004 13:23:35 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i82HNXUj026050; Thu, 2 Sep 2004 19:23:37 +0200 (MEST) Message-Id: <200409021723.i82HNXUj026050@nexus.iu.hio.no> Date: Thu, 2 Sep 2004 19:23:33 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: jw@raven.inka.de In-Reply-To: <20040902120724.GD2593@raven.inka.de> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: help-cfengine@gnu.org Subject: Re: Confusion with directories/files? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 17:28:58 -0000 Status: O Content-Length: 1367 Lines: 51 It is possible that the order of your actionseqence means that the directory .ssh is not created until after your try to touch a file within it. Or perhaps there was some other reason for failure to create a part of the path. The error messages in file operations are usually unspecific. M On 2 Sep, Josef Wolf wrote: > Hello! > > With the following snippet: > > directories: > /root/.ssh m=700 o=root g=root > home/.ssh m=700 > > > files: > /root/.ssh/authorized_keys m=600 act=touch o=root g=root > home/.ssh/authorized_keys m=600 act=touch > > I keep getting following error: > > > cfengine:raven: Directory /m/home/jw/.ssh/authorized_keys cannot be accessed in files > > > This looks very strange to me because: > > $ ls -la /m/home/jw/.ssh > total 5 > drwx------ 2 jw jw 80 Aug 18 10:49 . > drwx------ 18 jw jw 1256 Sep 2 09:57 .. > -rw-r--r-- 1 jw jw 219 Aug 18 10:49 known_hosts > $ > > > Any idea what the error message wants to say to me? Why is cfengine > assuming that authorized_keys is a directory? > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Thu Sep 02 13:51:57 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2vkb-0003bc-Mk for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 13:51:57 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2vka-0003ar-FW for help-cfengine@gnu.org; Thu, 02 Sep 2004 13:51:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2vkY-0003af-Q1 for help-cfengine@gnu.org; Thu, 02 Sep 2004 13:51:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2vkY-0003ac-Lr for help-cfengine@gnu.org; Thu, 02 Sep 2004 13:51:54 -0400 Received: from [134.134.136.6] (helo=hermes.jf.intel.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2vf7-0007Ok-0y for help-cfengine@gnu.org; Thu, 02 Sep 2004 13:46:17 -0400 Received: from petasus.jf.intel.com (petasus.jf.intel.com [10.7.209.6]) by hermes.jf.intel.com (8.12.9-20030918-01/8.12.9/d: major-outer.mc,v 1.15 2004/01/30 18:16:28 root Exp $) with ESMTP id i82HmffC011204; Thu, 2 Sep 2004 17:48:41 GMT Received: from nwlxmail02.jf.intel.com (nwlxmail02.jf.intel.com [192.168.74.77]) by petasus.jf.intel.com (8.12.9-20030918-01/8.12.9/d: major-inner.mc,v 1.11 2004/07/29 22:51:53 root Exp $) with ESMTP id i82HmqYS002660; Thu, 2 Sep 2004 17:48:52 GMT Received: from [134.134.155.103] ([134.134.155.103]) by nwlxmail02.jf.intel.com (8.12.10/8.12.9/MailSET/Hub) with ESMTP id i82Hk89V032735; Thu, 2 Sep 2004 10:46:08 -0700 In-Reply-To: <200409020515.i825F9I4012241@nexus.iu.hio.no> References: <200409020515.i825F9I4012241@nexus.iu.hio.no> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Tod Oace Date: Thu, 2 Sep 2004 10:46:12 -0700 To: Mark.Burgess@iu.hio.no X-Mailer: Apple Mail (2.619) X-Scanned-By: MIMEDefang 2.31 (www . roaringpenguin . com / mimedefang) Cc: ops@alexa.com, help-cfengine@gnu.org Subject: Re: special feature or dark area?? hostname's hyphen character brings inconsistency in cfengine X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 17:51:56 -0000 Status: O Content-Length: 635 Lines: 24 On Sep 1, 2004, at 22:15, Mark.Burgess@iu.hio.no wrote: > Hyphens cannot be used in class names, just as they cannot be used in > variable names in any language I know of. Cobol. In Cobol I vaguely recall subtraction being done something like this: 987600 PLEASE SUBTRACT THIS-NUMBER FROM THAT-NUMBER 987610- GIVING THAT-OTHER-NUMBER. 987620- THANK YOU VERY MUCH! Cobol is what is known as a higher level language. Instead of using complicated symbols like '-' you use English phrases, making it easier to understand for humans. 987630 PS SECTION 987640 I'm half kidding! -- Tod Oace, Intel Corporation From MAILER-DAEMON Thu Sep 02 14:43:23 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2wYM-0004HM-Sh for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 14:43:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2wYL-0004Gd-C6 for help-cfengine@gnu.org; Thu, 02 Sep 2004 14:43:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2wYJ-0004GD-M4 for help-cfengine@gnu.org; Thu, 02 Sep 2004 14:43:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2wYJ-0004G3-IF for help-cfengine@gnu.org; Thu, 02 Sep 2004 14:43:19 -0400 Received: from [146.122.80.21] (helo=uscimplm001.ugsplm.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2wT1-0006Mr-3i for help-cfengine@gnu.org; Thu, 02 Sep 2004 14:37:51 -0400 Received: from [146.122.200.120] ([146.122.200.120]) by uscimplm001.ugsplm.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 2 Sep 2004 14:37:50 -0400 Message-ID: <4137687E.6010203@ugsplm.com> Date: Thu, 02 Sep 2004 14:37:50 -0400 From: Joe Moore User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tod Oace References: <200409020515.i825F9I4012241@nexus.iu.hio.no> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Sep 2004 18:37:50.0259 (UTC) FILETIME=[F3241830:01C4911B] Cc: Mark.Burgess@iu.hio.no, help-cfengine@gnu.org Subject: Re: special feature or dark area?? hostname's hyphen characterbrings inconsistency in cfengine X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 18:43:21 -0000 Status: O Content-Length: 387 Lines: 18 Tod Oace wrote: > On Sep 1, 2004, at 22:15, Mark.Burgess@iu.hio.no wrote: > >> Hyphens cannot be used in class names, just as they cannot be used in >> variable names in any language I know of. > > Cobol. In Cobol I vaguely recall subtraction being done something like > this: > > 987600 PLEASE SUBTRACT THIS-NUMBER FROM THAT-NUMBER > (supports-hyphens-in-identifiers lisp) t --Joe From MAILER-DAEMON Thu Sep 02 14:50:34 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2wfK-0007vF-6q for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 14:50:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2wfH-0007sy-NV for help-cfengine@gnu.org; Thu, 02 Sep 2004 14:50:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2wfF-0007rW-MW for help-cfengine@gnu.org; Thu, 02 Sep 2004 14:50:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2wfF-0007rJ-GT for help-cfengine@gnu.org; Thu, 02 Sep 2004 14:50:29 -0400 Received: from [134.174.9.44] (helo=mail.bwh.harvard.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C2waE-0007Se-82 for help-cfengine@gnu.org; Thu, 02 Sep 2004 14:45:18 -0400 Received: (qmail 4140 invoked from network); 2 Sep 2004 18:36:37 -0000 Envelope-Sender: tzz@lifelogs.com Envelope-Recipients: Mark.Burgess@iu.hio.no, help-cfengine@gnu.org, Received: from asimov.bwh.harvard.edu (HELO asimov) ([134.174.9.63]) (envelope-sender ) by mail.bwh.harvard.edu (qmail-ldap-1.03) with SMTP for ; 2 Sep 2004 18:36:21 -0000 Date: 2 Sep 2004 14:26:45 -0400 Message-ID: <4nzn485xy2.fsf@lifelogs.com> From: "Ted Zlatanov" Mail-Followup-To: Mark.Burgess@iu.hio.no, help-cfengine@gnu.org To: Mark.Burgess@iu.hio.no References: <200409020515.i825F9I4012241@nexus.iu.hio.no> X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos In-Reply-To: <200409020515.i825F9I4012241@nexus.iu.hio.no> (Mark Burgess's message of "Thu, 2 Sep 2004 07:15:09 +0200 (MEST)") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: help-cfengine@gnu.org Subject: Re: special feature or dark area?? hostname's hyphen character brings inconsistency in cfengine X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 18:50:32 -0000 Status: O Content-Length: 254 Lines: 11 On Thu, 2 Sep 2004, Mark.Burgess@iu.hio.no wrote: > Hyphens cannot be used in class names, just as they cannot be used in > variable names in any language I know of. Emacs Lisp (not sure about other Lisp dialects). It's quite legible actually. Ted From MAILER-DAEMON Thu Sep 02 15:05:54 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2wuA-0003xl-Fk for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 15:05:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2wu8-0003xf-48 for help-cfengine@gnu.org; Thu, 02 Sep 2004 15:05:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2wu6-0003xK-H0 for help-cfengine@gnu.org; Thu, 02 Sep 2004 15:05:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2wu6-0003xA-ER for help-cfengine@gnu.org; Thu, 02 Sep 2004 15:05:50 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2wox-0001Lp-Cf for help-cfengine@gnu.org; Thu, 02 Sep 2004 15:00:31 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i82J0RMK026029; Thu, 2 Sep 2004 14:00:27 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: Joe Moore , Tod Oace Date: Thu, 2 Sep 2004 14:00:26 -0500 User-Agent: KMail/1.5.4 References: <200409020515.i825F9I4012241@nexus.iu.hio.no> <4137687E.6010203@ugsplm.com> In-Reply-To: <4137687E.6010203@ugsplm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409021400.26337.chip@trdlnk.com> Cc: Mark.Burgess@iu.hio.no, help-cfengine@gnu.org Subject: Re: special feature or dark area?? hostname's hyphen characterbrings inconsistency in cfengine X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 19:05:52 -0000 Status: O Content-Length: 572 Lines: 25 On Thursday 02 September 2004 13:37, Joe Moore wrote: > >> Hyphens cannot be used in class names, just as they cannot be used in > >> variable names in any language I know of. > > > > Cobol. In Cobol I vaguely recall subtraction being done something like > > this: > > > > 987600 PLEASE SUBTRACT THIS-NUMBER FROM THAT-NUMBER > > > (supports-hyphens-in-identifiers lisp) > t I think I'm fairly comfortable with a language that disagrees with both Cobol and Lisp on syntax issues :-) -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Thu Sep 02 17:50:28 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C2zTQ-0003Ld-5u for mharc-help-cfengine@gnu.org; Thu, 02 Sep 2004 17:50:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2zTL-0003LW-BO for help-cfengine@gnu.org; Thu, 02 Sep 2004 17:50:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2zTJ-0003L1-Ig for help-cfengine@gnu.org; Thu, 02 Sep 2004 17:50:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2zTI-0003Kp-Vs for help-cfengine@gnu.org; Thu, 02 Sep 2004 17:50:21 -0400 Received: from [64.233.170.199] (helo=mproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C2zO9-0001ed-BS for help-cfengine@gnu.org; Thu, 02 Sep 2004 17:45:01 -0400 Received: by mproxy.gmail.com with SMTP id 74so311167rnk for ; Thu, 02 Sep 2004 14:45:00 -0700 (PDT) Received: by 10.38.72.72 with SMTP id u72mr2746542rna; Thu, 02 Sep 2004 14:45:00 -0700 (PDT) Received: by 10.38.86.67 with HTTP; Thu, 2 Sep 2004 14:45:00 -0700 (PDT) Message-ID: Date: Thu, 2 Sep 2004 14:45:00 -0700 From: Xenon To: help-cfengine@gnu.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: Subject: Re: Did you forget the domain name... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Xenon List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 21:50:26 -0000 Status: O Content-Length: 1347 Lines: 30 After digging through information for quite awhile, I've found that the access list resolves soft links (the location of the file that I was trying to copy is in a soft linked directory), adding the actual directory that the files reside in to the admit (grant) section of the cfservd.conf solved the problem. On Wed, 1 Sep 2004 10:16:44 -0700, Xenon wrote: > I know this question has been asked countless times here, and I've > read through all the archives and sites that I could find related to > this error, but I'm still having a problem and am not able to find a > solution. > > Presently just trying to get things working with 1 server and 1 > client, I get the "Host authentication failed. Did you forget the > domain name or IP/DNS address registration (for ipv4 or ipv6)?" error, > from both the server and client. > > I have a very simple setup currently, just trying to copy a single > file from the server to the client. > > Here are the files, I've changed the IP's and hostname's to protect > the innocent and the guilty. Some of the configurations have been > taken from an existing CFEngine configuration working in another part > of the company. I am currently just trying to get the files to > transfer, after that I will work out securing everything, etc. > Running CFEngine version 2.1.5 > From MAILER-DAEMON Fri Sep 03 07:21:57 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3C8j-00065T-B1 for mharc-help-cfengine@gnu.org; Fri, 03 Sep 2004 07:21:57 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3C8h-00065N-Gx for help-cfengine@gnu.org; Fri, 03 Sep 2004 07:21:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3C8g-000654-Lf for help-cfengine@gnu.org; Fri, 03 Sep 2004 07:21:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3C8g-000651-Id for help-cfengine@gnu.org; Fri, 03 Sep 2004 07:21:54 -0400 Received: from [212.227.126.187] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C3C31-0001V2-9H for help-cfengine@gnu.org; Fri, 03 Sep 2004 07:16:03 -0400 Received: from [212.227.126.200] (helo=mrvnet.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1C3C30-0003ii-00 for help-cfengine@gnu.org; Fri, 03 Sep 2004 13:16:02 +0200 Received: from [172.23.4.148] (helo=config21.kundenserver.de) by mrvnet.kundenserver.de with esmtp (Exim 3.35 #1) id 1C3C2z-0001Kn-00 for help-cfengine@gnu.org; Fri, 03 Sep 2004 13:16:01 +0200 Received: from www-data by config21.kundenserver.de with local (Exim 3.35 #1 (Debian)) id 1C3C2z-0001O4-00 for ; Fri, 03 Sep 2004 13:16:01 +0200 To: From: Message-Id: <27731167$109420868741384cafa281e9.10367278@config21.schlund.de> X-Binford: 6100 (more power) X-Originating-From: 27731167 X-Mailer: Webmail X-Routing: DE X-Received: from config21 by 195.127.52.142 with HTTP id 27731167 for help-cfengine@gnu.org; Fri, 3 Sep 2004 13:14:01 +0200 Content-Type: text/plain; charset="iso-8859-1" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Priority: 3 Date: Fri, 3 Sep 2004 13:14:01 +0200 X-Provags-ID: kundenserver.de abuse@kundenserver.de ident:@172.23.4.148 Subject: dash in hostname causes error X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 11:21:55 -0000 Status: O Content-Length: 725 Lines: 30 I am using cfengine 2.1.10 on solaris 8. I am trying to set a variable based on the host I am on with the following statements: control: hostname:: variable_1 = ( value ) host-name:: variable_1 = ( value ) When I run cfagent, I get the following error message: cf:cfengine::/var/cfengine/inputs/cf.groups:24: syntax error Stray character (-)Looking for an input file cf.main When I comment out the lines for the hostname with the dash then everything runs correctly. I have searched google and looked in the docs, but can't find any reference to not using hostnames with dashes in them. Can anyone tell me what I am doing wrong or at least point me in the right direction? Thanks Mark From MAILER-DAEMON Fri Sep 03 09:25:09 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3E3x-00032O-A6 for mharc-help-cfengine@gnu.org; Fri, 03 Sep 2004 09:25:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3E3v-00031u-NV for help-cfengine@gnu.org; Fri, 03 Sep 2004 09:25:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3E3t-00031a-Va for help-cfengine@gnu.org; Fri, 03 Sep 2004 09:25:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3E3t-00031Q-Ts for help-cfengine@gnu.org; Fri, 03 Sep 2004 09:25:05 -0400 Received: from [66.187.233.31] (helo=mx1.redhat.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C3DyT-0001o2-QJ for help-cfengine@gnu.org; Fri, 03 Sep 2004 09:19:30 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i83DJNS0016433; Fri, 3 Sep 2004 09:19:23 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i83DJI306525; Fri, 3 Sep 2004 09:19:18 -0400 Received: from [172.16.52.152] (siltest.rdu.redhat.com [172.16.52.152]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i83DJI5L026060; Fri, 3 Sep 2004 09:19:18 -0400 From: "Phil D'Amore" To: mark@thompson-family.de In-Reply-To: <27731167$109420868741384cafa281e9.10367278@config21.schlund.de> References: <27731167$109420868741384cafa281e9.10367278@config21.schlund.de> Content-Type: text/plain Organization: Red Hat, Inc. Message-Id: <1094217557.2609.1.camel@siltest.rdu.redhat.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 03 Sep 2004 09:19:18 -0400 Content-Transfer-Encoding: 7bit Cc: help-cfengine@gnu.org Subject: Re: dash in hostname causes error X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 13:25:08 -0000 Status: O Content-Length: 1238 Lines: 49 -'s are not allowed. Cfengine processes classes that it sets (hostname, os, etc), and changes anything that is basically not [A-Za-z_] and changes it to a _ character. so test-machine.example.com becomes test_machine_example_com On Fri, 2004-09-03 at 07:14, mark@thompson-family.de wrote: > I am using cfengine 2.1.10 on solaris 8. I am trying to set a variable > based on the host I am on with the following statements: > > control: > > hostname:: > variable_1 = ( value ) > > host-name:: > variable_1 = ( value ) > > When I run cfagent, I get the following error message: > > cf:cfengine::/var/cfengine/inputs/cf.groups:24: syntax error > Stray character (-)Looking for an input file cf.main > > When I comment out the lines for the hostname with the dash then > everything runs correctly. > > I have searched google and looked in the docs, but can't find any > reference to not using hostnames with dashes in them. > > Can anyone tell me what I am doing wrong or at least point me in the > right direction? > > Thanks > Mark > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine From MAILER-DAEMON Fri Sep 03 16:00:09 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3KEC-0002aS-Vp for mharc-help-cfengine@gnu.org; Fri, 03 Sep 2004 16:00:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3KE9-0002a2-Rm for help-cfengine@gnu.org; Fri, 03 Sep 2004 16:00:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3KE5-0002Zd-GO for help-cfengine@gnu.org; Fri, 03 Sep 2004 16:00:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3KE4-0002ZM-VQ for help-cfengine@gnu.org; Fri, 03 Sep 2004 16:00:01 -0400 Received: from [193.197.184.2] (helo=mail.inka.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C3K8G-00081F-0F for help-cfengine@gnu.org; Fri, 03 Sep 2004 15:54:02 -0400 Received: from raven.inka.de (uucp@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1C3K8D-000124-00; Fri, 03 Sep 2004 21:53:57 +0200 Received: from localhost (localhost [127.0.0.1]) by raven.inka.de (Postfix) with ESMTP id 4695C744C; Fri, 3 Sep 2004 19:59:20 +0200 (CEST) Received: from by localhost (amavisd-new, port ) id XX0qxIZZ; Fri, 3 Sep 2004 19:59:16 +0200 (CEST) Received: by raven.inka.de (Postfix, from userid 500) id 84A14744A; Fri, 3 Sep 2004 19:59:16 +0200 (CEST) Date: Fri, 3 Sep 2004 19:59:16 +0200 From: Josef Wolf To: Mark.Burgess@iu.hio.no Message-ID: <20040903175916.GB18276@raven.inka.de> References: <20040902120724.GD2593@raven.inka.de> <200409021723.i82HNXUj026050@nexus.iu.hio.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409021723.i82HNXUj026050@nexus.iu.hio.no> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at inka.de Cc: help-cfengine@gnu.org Subject: Re: Confusion with directories/files? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 20:00:06 -0000 Status: O Content-Length: 56314 Lines: 1559 On Thu, Sep 02, 2004 at 07:23:33PM +0200, Mark.Burgess@iu.hio.no wrote: > > It is possible that the order of your actionseqence means that the > directory .ssh is not created until after your try to touch a file > within it. For two reasons I don't think that this is the case: 1. directories comes before files in the actionsequence. 2. If the problem were just the order, then it would go away when cfagent is run the second time (because the directories are already created.) But this is not the case. If I run cfagent several times I still get the error and the files are not created. > Or perhaps there was some other reason for failure to create a part of the > path. Hmm, the .ssh directories (that is the parent) got created without any problem and have m=700. I don't see what could cause root to fail to create a file in an empty directory with m=700. As a reminder, here's the result: > > I keep getting following error: > > > > > > cfengine:raven: Directory /m/home/jw/.ssh/authorized_keys cannot be accessed in files > > > > > > This looks very strange to me because: > > > > $ ls -la /m/home/jw/.ssh > > total 5 > > drwx------ 2 jw jw 80 Aug 18 10:49 . > > drwx------ 18 jw jw 1256 Sep 2 09:57 .. > > -rw-r--r-- 1 jw jw 219 Aug 18 10:49 known_hosts > > $ Here's the script: control: actionsequence = ( directories files ) mountpattern = ( /m ) homepattern = ( home ) directories: /root/.ssh m=700 o=root g=root home/.ssh m=700 files: /root/.ssh/authorized_keys m=600 act=touch o=root g=root /root/.ssh/authorized_keys2 m=600 act=touch o=root g=root home/.ssh/authorized_keys m=600 act=touch home/.ssh/authorized_keys2 m=600 act=touch And here's the -d2 output: Reference time set to Fri Sep 3 17:10:41 2004 AddClassToHeap(Friday) Appending [Friday] AddClassToHeap(Hr17) Appending [Hr17] AddClassToHeap(Min10) Appending [Min10] AddClassToHeap(Min10_15) Appending [Min10_15] AddClassToHeap(Q1) Appending [Q1] AddClassToHeap(Hr17_Q1) Appending [Hr17_Q1] AddClassToHeap(Day3) Appending [Day3] AddClassToHeap(September) Appending [September] AddClassToHeap(Yr2004) Appending [Yr2004] Job start time set to Fri Sep 3 17:10:41 2004 GetNameInfo() AddClassToHeap(linux) Appending [linux] AddClassToHeap(raven) Appending [raven] AddClassToHeap(raven) AddClassToHeap(undefined_domain) Appending [undefined_domain] Deleted item undefined_domain AddClassToHeap(raven) GNU Configuration Engine - 2.1.3 Free Software Foundation 1994- Donated by Mark Burgess, Faculty of Engineering, Oslo University College, 0254 Oslo, Norway ------------------------------------------------------------------------ Host name is: raven Operating System Type is linux Operating System Release is 2.6.5-7.104-default Architecture = i686 Using internal soft-class linux for host linux The time is now Fri Sep 3 17:10:41 2004 ------------------------------------------------------------------------ AddClassToHeap(32_bit) Appending [32_bit] Additional hard class defined as: 32_bit AddClassToHeap(linux_2_6_5_7_104_default) Appending [linux_2_6_5_7_104_default] AddClassToHeap(i686) Appending [i686] Additional hard class defined as: linux_2_6_5_7_104_default AddClassToHeap(linux_i686) Appending [linux_i686] Additional hard class defined as: linux_i686 AddClassToHeap(linux_i686_2_6_5_7_104_default) Appending [linux_i686_2_6_5_7_104_default] Additional hard class defined as: linux_i686_2_6_5_7_104_default AddClassToHeap(linux_i686_2_6_5_7_104_default__1_Wed_Jul_28_16_42_13_UTC_2004) Appending [linux_i686_2_6_5_7_104_default__1_Wed_Jul_28_16_42_13_UTC_2004] Additional hard class defined as: linux_i686_2_6_5_7_104_default__1_Wed_Jul_28_16_42_13_UTC_2004 AddClassToHeap(compiled_on_linux) Appending [compiled_on_linux] GNU autoconf class from compile time: compiled_on_linux Address given by nameserver: 192.168.1.43 GetInterfaceInfo() Interface 1: lo AddClassToHeap(net_iface_lo) Appending [net_iface_lo] Interface 2: eth0 AddClassToHeap(net_iface_eth0) Appending [net_iface_eth0] Adding hostip 192.168.1.43.. AddClassToHeap(192_168_1_43) Appending [192_168_1_43] Adding hostname raven.inka.de.. AddClassToHeap(raven_inka_de) Appending [raven_inka_de] AddClassToHeap(192_168_1) Appending [192_168_1] AddClassToHeap(ipv4_192_168_1_43) Appending [ipv4_192_168_1_43] AddMacroValue(global.ipv4[eth0]=192.168.1.43) ExpandVarstring(192.168.1.43) Added Macro at hash address 838 to object global with value ipv4[eth0]=192.168.1.43 AddClassToHeap(ipv4_192_168_1) Appending [ipv4_192_168_1] AddClassToHeap(ipv4_192_168) Appending [ipv4_192_168] AddClassToHeap(ipv4_192) Appending [ipv4_192] Sorry - there is no current standard way to find out my IPv6 address (!!) Looking for environment from cfenvd... AddMacroValue(global.env_time=Fri Sep 3 11:06:09 2004) ExpandVarstring(Fri Sep 3 11:06:09 2004) Added Macro at hash address 979 to object global with value env_time=Fri Sep 3 11:06:09 2004 Loading environment... AddMacroValue(global.value_users=6) ExpandVarstring(6) Added Macro at hash address 285 to object global with value value_users=6 AddMacroValue(global.average_users=4.2) ExpandVarstring(4.2) Added Macro at hash address 186 to object global with value average_users=4.2 AddMacroValue(global.stddev_users=2.3) ExpandVarstring(2.3) Added Macro at hash address 241 to object global with value stddev_users=2.3 AddClassToHeap(RootProcs_high_dev1) Appending [RootProcs_high_dev1] AddMacroValue(global.value_rootprocs=49) ExpandVarstring(49) Added Macro at hash address 40 to object global with value value_rootprocs=49 AddMacroValue(global.average_rootprocs=34.3) ExpandVarstring(34.3) Added Macro at hash address 226 to object global with value average_rootprocs=34.3 AddMacroValue(global.stddev_rootprocs=19.2) ExpandVarstring(19.2) Added Macro at hash address 463 to object global with value stddev_rootprocs=19.2 AddClassToHeap(UserProcs_high_normal) Appending [UserProcs_high_normal] AddMacroValue(global.value_userprocs=55) ExpandVarstring(55) Added Macro at hash address 769 to object global with value value_userprocs=55 AddMacroValue(global.average_userprocs=38.5) ExpandVarstring(38.5) Added Macro at hash address 955 to object global with value average_userprocs=38.5 AddMacroValue(global.stddev_userprocs=21.4) ExpandVarstring(21.4) Added Macro at hash address 171 to object global with value stddev_userprocs=21.4 AddClassToHeap(DiskFree_high_dev1) Appending [DiskFree_high_dev1] AddMacroValue(global.value_diskfree=36) ExpandVarstring(36) Added Macro at hash address 1014 to object global with value value_diskfree=36 AddMacroValue(global.average_diskfree=25.2) ExpandVarstring(25.2) Added Macro at hash address 63 to object global with value average_diskfree=25.2 AddMacroValue(global.stddev_diskfree=14.1) ExpandVarstring(14.1) Added Macro at hash address 251 to object global with value stddev_diskfree=14.1 AddClassToHeap(LoadAvg_high_dev1) Appending [LoadAvg_high_dev1] AddMacroValue(global.value_loadavg=0) ExpandVarstring(0) Added Macro at hash address 269 to object global with value value_loadavg=0 AddMacroValue(global.average_loadavg=0.0) ExpandVarstring(0.0) Added Macro at hash address 471 to object global with value average_loadavg=0.0 AddMacroValue(global.stddev_loadavg=14.1) ExpandVarstring(14.1) Added Macro at hash address 926 to object global with value stddev_loadavg=14.1 AddMacroValue(global.value_netbiosns_in=0) ExpandVarstring(0) Macro Collision! Added Macro at hash address 927 to object global with value value_netbiosns_in=0 AddMacroValue(global.average_netbiosns_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 21 to object global with value average_netbiosns_in=0.0 AddMacroValue(global.stddev_netbiosns_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 70 to object global with value stddev_netbiosns_in=0.0 AddMacroValue(global.value_netbiosns_out=0) ExpandVarstring(0) Added Macro at hash address 738 to object global with value value_netbiosns_out=0 AddMacroValue(global.average_netbiosns_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 667 to object global with value average_netbiosns_out=0.0 AddMacroValue(global.stddev_netbiosns_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 593 to object global with value stddev_netbiosns_out=0.0 AddMacroValue(global.value_netbiosdgm_in=0) ExpandVarstring(0) Added Macro at hash address 521 to object global with value value_netbiosdgm_in=0 AddMacroValue(global.average_netbiosdgm_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 450 to object global with value average_netbiosdgm_in=0.0 AddMacroValue(global.stddev_netbiosdgm_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 376 to object global with value stddev_netbiosdgm_in=0.0 AddMacroValue(global.value_netbiosdgm_out=0) ExpandVarstring(0) Added Macro at hash address 537 to object global with value value_netbiosdgm_out=0 AddMacroValue(global.average_netbiosdgm_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 290 to object global with value average_netbiosdgm_out=0.0 AddMacroValue(global.stddev_netbiosdgm_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 881 to object global with value stddev_netbiosdgm_out=0.0 AddMacroValue(global.value_netbiosssn_in=0) ExpandVarstring(0) Added Macro at hash address 305 to object global with value value_netbiosssn_in=0 AddMacroValue(global.average_netbiosssn_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 234 to object global with value average_netbiosssn_in=0.0 AddMacroValue(global.stddev_netbiosssn_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 160 to object global with value stddev_netbiosssn_in=0.0 AddMacroValue(global.value_netbiosssn_out=0) ExpandVarstring(0) Added Macro at hash address 634 to object global with value value_netbiosssn_out=0 AddMacroValue(global.average_netbiosssn_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 387 to object global with value average_netbiosssn_out=0.0 AddMacroValue(global.stddev_netbiosssn_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 978 to object global with value stddev_netbiosssn_out=0.0 AddMacroValue(global.value_irc_in=0) ExpandVarstring(0) Added Macro at hash address 605 to object global with value value_irc_in=0 AddMacroValue(global.average_irc_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 692 to object global with value average_irc_in=0.0 AddMacroValue(global.stddev_irc_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 984 to object global with value stddev_irc_in=0.0 AddMacroValue(global.value_irc_out=0) ExpandVarstring(0) Added Macro at hash address 556 to object global with value value_irc_out=0 AddMacroValue(global.average_irc_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 758 to object global with value average_irc_out=0.0 AddMacroValue(global.stddev_irc_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 192 to object global with value stddev_irc_out=0.0 AddMacroValue(global.value_cfengine_in=0) ExpandVarstring(0) Added Macro at hash address 919 to object global with value value_cfengine_in=0 AddMacroValue(global.average_cfengine_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 787 to object global with value average_cfengine_in=0.0 AddMacroValue(global.stddev_cfengine_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 520 to object global with value stddev_cfengine_in=0.0 AddMacroValue(global.value_cfengine_out=0) ExpandVarstring(0) Added Macro at hash address 311 to object global with value value_cfengine_out=0 AddMacroValue(global.average_cfengine_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 427 to object global with value average_cfengine_out=0.0 AddMacroValue(global.stddev_cfengine_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 476 to object global with value stddev_cfengine_out=0.0 AddMacroValue(global.value_nfsd_in=0) ExpandVarstring(0) Added Macro at hash address 343 to object global with value value_nfsd_in=0 AddMacroValue(global.average_nfsd_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 545 to object global with value average_nfsd_in=0.0 AddMacroValue(global.stddev_nfsd_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 1000 to object global with value stddev_nfsd_in=0.0 AddMacroValue(global.value_nfsd_out=0) ExpandVarstring(0) Added Macro at hash address 910 to object global with value value_nfsd_out=0 AddMacroValue(global.average_nfsd_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 980 to object global with value average_nfsd_out=0.0 AddMacroValue(global.stddev_nfsd_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 147 to object global with value stddev_nfsd_out=0.0 AddMacroValue(global.value_smtp_in=0) ExpandVarstring(0) Added Macro at hash address 589 to object global with value value_smtp_in=0 AddMacroValue(global.average_smtp_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 791 to object global with value average_smtp_in=0.0 AddMacroValue(global.stddev_smtp_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 225 to object global with value stddev_smtp_in=0.0 AddMacroValue(global.value_smtp_out=0) ExpandVarstring(0) Added Macro at hash address 601 to object global with value value_smtp_out=0 AddMacroValue(global.average_smtp_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 671 to object global with value average_smtp_out=0.0 AddMacroValue(global.stddev_smtp_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 859 to object global with value stddev_smtp_out=0.0 AddMacroValue(global.value_www_in=0) ExpandVarstring(0) Added Macro at hash address 328 to object global with value value_www_in=0 AddMacroValue(global.average_www_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 415 to object global with value average_www_in=0.0 AddMacroValue(global.stddev_www_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 707 to object global with value stddev_www_in=0.0 AddMacroValue(global.value_www_out=0) ExpandVarstring(0) Added Macro at hash address 1016 to object global with value value_www_out=0 AddMacroValue(global.average_www_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 197 to object global with value average_www_out=0.0 AddMacroValue(global.stddev_www_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 652 to object global with value stddev_www_out=0.0 AddMacroValue(global.value_ftp_in=0) ExpandVarstring(0) Added Macro at hash address 18 to object global with value value_ftp_in=0 AddMacroValue(global.average_ftp_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 105 to object global with value average_ftp_in=0.0 AddMacroValue(global.stddev_ftp_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 397 to object global with value stddev_ftp_in=0.0 AddMacroValue(global.value_ftp_out=0) ExpandVarstring(0) Added Macro at hash address 484 to object global with value value_ftp_out=0 AddMacroValue(global.average_ftp_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 686 to object global with value average_ftp_out=0.0 AddMacroValue(global.stddev_ftp_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 120 to object global with value stddev_ftp_out=0.0 AddMacroValue(global.value_ssh_in=2) ExpandVarstring(2) Added Macro at hash address 62 to object global with value value_ssh_in=2 AddMacroValue(global.average_ssh_in=1.4) ExpandVarstring(1.4) Added Macro at hash address 149 to object global with value average_ssh_in=1.4 AddMacroValue(global.stddev_ssh_in=0.8) ExpandVarstring(0.8) Added Macro at hash address 441 to object global with value stddev_ssh_in=0.8 AddMacroValue(global.value_ssh_out=2) ExpandVarstring(2) Macro Collision! Added Macro at hash address 106 to object global with value value_ssh_out=2 AddMacroValue(global.average_ssh_out=1.4) ExpandVarstring(1.4) Added Macro at hash address 307 to object global with value average_ssh_out=1.4 AddMacroValue(global.stddev_ssh_out=0.8) ExpandVarstring(0.8) Added Macro at hash address 762 to object global with value stddev_ssh_out=0.8 AddMacroValue(global.value_wwws_in=0) ExpandVarstring(0) Added Macro at hash address 214 to object global with value value_wwws_in=0 AddMacroValue(global.average_wwws_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 416 to object global with value average_wwws_in=0.0 AddMacroValue(global.stddev_wwws_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 871 to object global with value stddev_wwws_in=0.0 AddMacroValue(global.value_wwws_out=0) ExpandVarstring(0) Added Macro at hash address 188 to object global with value value_wwws_out=0 AddMacroValue(global.average_wwws_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 258 to object global with value average_wwws_out=0.0 AddMacroValue(global.stddev_wwws_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 446 to object global with value stddev_wwws_out=0.0 AddMacroValue(global.value_usr_sbin_atd=0) ExpandVarstring(0) Added Macro at hash address 344 to object global with value value_usr_sbin_atd=0 AddMacroValue(global.average_usr_sbin_atd=0.0) ExpandVarstring(0.0) Added Macro at hash address 460 to object global with value average_usr_sbin_atd=0.0 AddMacroValue(global.stddev_usr_sbin_atd=0.0) ExpandVarstring(0.0) Added Macro at hash address 509 to object global with value stddev_usr_sbin_atd=0.0 AddMacroValue(global.value_sbin_getty=0) ExpandVarstring(0) Added Macro at hash address 585 to object global with value value_sbin_getty=0 AddMacroValue(global.average_sbin_getty=0.0) ExpandVarstring(0.0) Added Macro at hash address 700 to object global with value average_sbin_getty=0.0 AddMacroValue(global.stddev_sbin_getty=0.0) ExpandVarstring(0.0) Added Macro at hash address 863 to object global with value stddev_sbin_getty=0.0 AddMacroValue(global.value_bin_bash=0) ExpandVarstring(0) Added Macro at hash address 516 to object global with value value_bin_bash=0 AddMacroValue(global.average_bin_bash=0.0) ExpandVarstring(0.0) Added Macro at hash address 586 to object global with value average_bin_bash=0.0 AddMacroValue(global.stddev_bin_bash=0.0) ExpandVarstring(0.0) Added Macro at hash address 774 to object global with value stddev_bin_bash=0.0 AddMacroValue(global.value_usr_sbin_exim=0) ExpandVarstring(0) Added Macro at hash address 802 to object global with value value_usr_sbin_exim=0 AddMacroValue(global.average_usr_sbin_exim=0.0) ExpandVarstring(0.0) Added Macro at hash address 731 to object global with value average_usr_sbin_exim=0.0 AddMacroValue(global.stddev_usr_sbin_exim=0.0) ExpandVarstring(0.0) Added Macro at hash address 657 to object global with value stddev_usr_sbin_exim=0.0 AddMacroValue(global.value_bin_run_parts=0) ExpandVarstring(0) Added Macro at hash address 874 to object global with value value_bin_run_parts=0 AddMacroValue(global.average_bin_run_parts=0.0) ExpandVarstring(0.0) Added Macro at hash address 803 to object global with value average_bin_run_parts=0.0 AddMacroValue(global.stddev_bin_run_parts=0.0) ExpandVarstring(0.0) Added Macro at hash address 729 to object global with value stddev_bin_run_parts=0.0 Environment data loaded cfengine:: No preconfiguration file $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ * (Changing context state to: main) * $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ --------------------------------------------------------------------- Loading persistent classes --------------------------------------------------------------------- --------------------------------------------------------------------- Loaded persistent memory --------------------------------------------------------------------- Looking for environment from cfenvd... AddMacroValue(main.env_time=Fri Sep 3 11:06:09 2004) ExpandVarstring(Fri Sep 3 11:06:09 2004) Added Macro at hash address 979 to object main with value env_time=Fri Sep 3 11:06:09 2004 Loading environment... AddMacroValue(main.value_users=6) ExpandVarstring(6) Added Macro at hash address 285 to object main with value value_users=6 AddMacroValue(main.average_users=4.2) ExpandVarstring(4.2) Added Macro at hash address 186 to object main with value average_users=4.2 AddMacroValue(main.stddev_users=2.3) ExpandVarstring(2.3) Added Macro at hash address 241 to object main with value stddev_users=2.3 AddClassToHeap(RootProcs_high_dev1) AddMacroValue(main.value_rootprocs=49) ExpandVarstring(49) Added Macro at hash address 40 to object main with value value_rootprocs=49 AddMacroValue(main.average_rootprocs=34.3) ExpandVarstring(34.3) Added Macro at hash address 226 to object main with value average_rootprocs=34.3 AddMacroValue(main.stddev_rootprocs=19.2) ExpandVarstring(19.2) Added Macro at hash address 463 to object main with value stddev_rootprocs=19.2 AddClassToHeap(UserProcs_high_normal) AddMacroValue(main.value_userprocs=55) ExpandVarstring(55) Added Macro at hash address 769 to object main with value value_userprocs=55 AddMacroValue(main.average_userprocs=38.5) ExpandVarstring(38.5) Added Macro at hash address 955 to object main with value average_userprocs=38.5 AddMacroValue(main.stddev_userprocs=21.4) ExpandVarstring(21.4) Added Macro at hash address 171 to object main with value stddev_userprocs=21.4 AddClassToHeap(DiskFree_high_dev1) AddMacroValue(main.value_diskfree=36) ExpandVarstring(36) Added Macro at hash address 1014 to object main with value value_diskfree=36 AddMacroValue(main.average_diskfree=25.2) ExpandVarstring(25.2) Added Macro at hash address 63 to object main with value average_diskfree=25.2 AddMacroValue(main.stddev_diskfree=14.1) ExpandVarstring(14.1) Added Macro at hash address 251 to object main with value stddev_diskfree=14.1 AddClassToHeap(LoadAvg_high_dev1) AddMacroValue(main.value_loadavg=0) ExpandVarstring(0) Added Macro at hash address 269 to object main with value value_loadavg=0 AddMacroValue(main.average_loadavg=0.0) ExpandVarstring(0.0) Added Macro at hash address 471 to object main with value average_loadavg=0.0 AddMacroValue(main.stddev_loadavg=14.1) ExpandVarstring(14.1) Added Macro at hash address 926 to object main with value stddev_loadavg=14.1 AddMacroValue(main.value_netbiosns_in=0) ExpandVarstring(0) Macro Collision! Added Macro at hash address 927 to object main with value value_netbiosns_in=0 AddMacroValue(main.average_netbiosns_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 21 to object main with value average_netbiosns_in=0.0 AddMacroValue(main.stddev_netbiosns_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 70 to object main with value stddev_netbiosns_in=0.0 AddMacroValue(main.value_netbiosns_out=0) ExpandVarstring(0) Added Macro at hash address 738 to object main with value value_netbiosns_out=0 AddMacroValue(main.average_netbiosns_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 667 to object main with value average_netbiosns_out=0.0 AddMacroValue(main.stddev_netbiosns_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 593 to object main with value stddev_netbiosns_out=0.0 AddMacroValue(main.value_netbiosdgm_in=0) ExpandVarstring(0) Added Macro at hash address 521 to object main with value value_netbiosdgm_in=0 AddMacroValue(main.average_netbiosdgm_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 450 to object main with value average_netbiosdgm_in=0.0 AddMacroValue(main.stddev_netbiosdgm_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 376 to object main with value stddev_netbiosdgm_in=0.0 AddMacroValue(main.value_netbiosdgm_out=0) ExpandVarstring(0) Added Macro at hash address 537 to object main with value value_netbiosdgm_out=0 AddMacroValue(main.average_netbiosdgm_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 290 to object main with value average_netbiosdgm_out=0.0 AddMacroValue(main.stddev_netbiosdgm_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 881 to object main with value stddev_netbiosdgm_out=0.0 AddMacroValue(main.value_netbiosssn_in=0) ExpandVarstring(0) Added Macro at hash address 305 to object main with value value_netbiosssn_in=0 AddMacroValue(main.average_netbiosssn_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 234 to object main with value average_netbiosssn_in=0.0 AddMacroValue(main.stddev_netbiosssn_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 160 to object main with value stddev_netbiosssn_in=0.0 AddMacroValue(main.value_netbiosssn_out=0) ExpandVarstring(0) Added Macro at hash address 634 to object main with value value_netbiosssn_out=0 AddMacroValue(main.average_netbiosssn_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 387 to object main with value average_netbiosssn_out=0.0 AddMacroValue(main.stddev_netbiosssn_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 978 to object main with value stddev_netbiosssn_out=0.0 AddMacroValue(main.value_irc_in=0) ExpandVarstring(0) Added Macro at hash address 605 to object main with value value_irc_in=0 AddMacroValue(main.average_irc_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 692 to object main with value average_irc_in=0.0 AddMacroValue(main.stddev_irc_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 984 to object main with value stddev_irc_in=0.0 AddMacroValue(main.value_irc_out=0) ExpandVarstring(0) Added Macro at hash address 556 to object main with value value_irc_out=0 AddMacroValue(main.average_irc_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 758 to object main with value average_irc_out=0.0 AddMacroValue(main.stddev_irc_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 192 to object main with value stddev_irc_out=0.0 AddMacroValue(main.value_cfengine_in=0) ExpandVarstring(0) Added Macro at hash address 919 to object main with value value_cfengine_in=0 AddMacroValue(main.average_cfengine_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 787 to object main with value average_cfengine_in=0.0 AddMacroValue(main.stddev_cfengine_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 520 to object main with value stddev_cfengine_in=0.0 AddMacroValue(main.value_cfengine_out=0) ExpandVarstring(0) Added Macro at hash address 311 to object main with value value_cfengine_out=0 AddMacroValue(main.average_cfengine_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 427 to object main with value average_cfengine_out=0.0 AddMacroValue(main.stddev_cfengine_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 476 to object main with value stddev_cfengine_out=0.0 AddMacroValue(main.value_nfsd_in=0) ExpandVarstring(0) Added Macro at hash address 343 to object main with value value_nfsd_in=0 AddMacroValue(main.average_nfsd_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 545 to object main with value average_nfsd_in=0.0 AddMacroValue(main.stddev_nfsd_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 1000 to object main with value stddev_nfsd_in=0.0 AddMacroValue(main.value_nfsd_out=0) ExpandVarstring(0) Added Macro at hash address 910 to object main with value value_nfsd_out=0 AddMacroValue(main.average_nfsd_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 980 to object main with value average_nfsd_out=0.0 AddMacroValue(main.stddev_nfsd_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 147 to object main with value stddev_nfsd_out=0.0 AddMacroValue(main.value_smtp_in=0) ExpandVarstring(0) Added Macro at hash address 589 to object main with value value_smtp_in=0 AddMacroValue(main.average_smtp_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 791 to object main with value average_smtp_in=0.0 AddMacroValue(main.stddev_smtp_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 225 to object main with value stddev_smtp_in=0.0 AddMacroValue(main.value_smtp_out=0) ExpandVarstring(0) Added Macro at hash address 601 to object main with value value_smtp_out=0 AddMacroValue(main.average_smtp_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 671 to object main with value average_smtp_out=0.0 AddMacroValue(main.stddev_smtp_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 859 to object main with value stddev_smtp_out=0.0 AddMacroValue(main.value_www_in=0) ExpandVarstring(0) Added Macro at hash address 328 to object main with value value_www_in=0 AddMacroValue(main.average_www_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 415 to object main with value average_www_in=0.0 AddMacroValue(main.stddev_www_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 707 to object main with value stddev_www_in=0.0 AddMacroValue(main.value_www_out=0) ExpandVarstring(0) Added Macro at hash address 1016 to object main with value value_www_out=0 AddMacroValue(main.average_www_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 197 to object main with value average_www_out=0.0 AddMacroValue(main.stddev_www_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 652 to object main with value stddev_www_out=0.0 AddMacroValue(main.value_ftp_in=0) ExpandVarstring(0) Added Macro at hash address 18 to object main with value value_ftp_in=0 AddMacroValue(main.average_ftp_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 105 to object main with value average_ftp_in=0.0 AddMacroValue(main.stddev_ftp_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 397 to object main with value stddev_ftp_in=0.0 AddMacroValue(main.value_ftp_out=0) ExpandVarstring(0) Added Macro at hash address 484 to object main with value value_ftp_out=0 AddMacroValue(main.average_ftp_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 686 to object main with value average_ftp_out=0.0 AddMacroValue(main.stddev_ftp_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 120 to object main with value stddev_ftp_out=0.0 AddMacroValue(main.value_ssh_in=2) ExpandVarstring(2) Added Macro at hash address 62 to object main with value value_ssh_in=2 AddMacroValue(main.average_ssh_in=1.4) ExpandVarstring(1.4) Added Macro at hash address 149 to object main with value average_ssh_in=1.4 AddMacroValue(main.stddev_ssh_in=0.8) ExpandVarstring(0.8) Added Macro at hash address 441 to object main with value stddev_ssh_in=0.8 AddMacroValue(main.value_ssh_out=2) ExpandVarstring(2) Macro Collision! Added Macro at hash address 106 to object main with value value_ssh_out=2 AddMacroValue(main.average_ssh_out=1.4) ExpandVarstring(1.4) Added Macro at hash address 307 to object main with value average_ssh_out=1.4 AddMacroValue(main.stddev_ssh_out=0.8) ExpandVarstring(0.8) Added Macro at hash address 762 to object main with value stddev_ssh_out=0.8 AddMacroValue(main.value_wwws_in=0) ExpandVarstring(0) Added Macro at hash address 214 to object main with value value_wwws_in=0 AddMacroValue(main.average_wwws_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 416 to object main with value average_wwws_in=0.0 AddMacroValue(main.stddev_wwws_in=0.0) ExpandVarstring(0.0) Added Macro at hash address 871 to object main with value stddev_wwws_in=0.0 AddMacroValue(main.value_wwws_out=0) ExpandVarstring(0) Added Macro at hash address 188 to object main with value value_wwws_out=0 AddMacroValue(main.average_wwws_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 258 to object main with value average_wwws_out=0.0 AddMacroValue(main.stddev_wwws_out=0.0) ExpandVarstring(0.0) Added Macro at hash address 446 to object main with value stddev_wwws_out=0.0 AddMacroValue(main.value_usr_sbin_atd=0) ExpandVarstring(0) Added Macro at hash address 344 to object main with value value_usr_sbin_atd=0 AddMacroValue(main.average_usr_sbin_atd=0.0) ExpandVarstring(0.0) Added Macro at hash address 460 to object main with value average_usr_sbin_atd=0.0 AddMacroValue(main.stddev_usr_sbin_atd=0.0) ExpandVarstring(0.0) Added Macro at hash address 509 to object main with value stddev_usr_sbin_atd=0.0 AddMacroValue(main.value_sbin_getty=0) ExpandVarstring(0) Added Macro at hash address 585 to object main with value value_sbin_getty=0 AddMacroValue(main.average_sbin_getty=0.0) ExpandVarstring(0.0) Added Macro at hash address 700 to object main with value average_sbin_getty=0.0 AddMacroValue(main.stddev_sbin_getty=0.0) ExpandVarstring(0.0) Added Macro at hash address 863 to object main with value stddev_sbin_getty=0.0 AddMacroValue(main.value_bin_bash=0) ExpandVarstring(0) Added Macro at hash address 516 to object main with value value_bin_bash=0 AddMacroValue(main.average_bin_bash=0.0) ExpandVarstring(0.0) Added Macro at hash address 586 to object main with value average_bin_bash=0.0 AddMacroValue(main.stddev_bin_bash=0.0) ExpandVarstring(0.0) Added Macro at hash address 774 to object main with value stddev_bin_bash=0.0 AddMacroValue(main.value_usr_sbin_exim=0) ExpandVarstring(0) Added Macro at hash address 802 to object main with value value_usr_sbin_exim=0 AddMacroValue(main.average_usr_sbin_exim=0.0) ExpandVarstring(0.0) Added Macro at hash address 731 to object main with value average_usr_sbin_exim=0.0 AddMacroValue(main.stddev_usr_sbin_exim=0.0) ExpandVarstring(0.0) Added Macro at hash address 657 to object main with value stddev_usr_sbin_exim=0.0 AddMacroValue(main.value_bin_run_parts=0) ExpandVarstring(0) Added Macro at hash address 874 to object main with value value_bin_run_parts=0 AddMacroValue(main.average_bin_run_parts=0.0) ExpandVarstring(0.0) Added Macro at hash address 803 to object main with value average_bin_run_parts=0.0 AddMacroValue(main.stddev_bin_run_parts=0.0) ExpandVarstring(0.0) Added Macro at hash address 729 to object main with value stddev_bin_run_parts=0.0 Environment data loaded New Parser Object::(BEGIN PARSING ssh.cf) Looking for an input file /var/cfengine/inputs/ssh.cf ########################################################################## # BEGIN PARSING /var/cfengine/inputs/ssh.cf ########################################################################## ExpandVarstring(directories) Appending [directories] ExpandVarstring(files) Appending [files] ExpandVarstring(/m) ExpandVarstring(/m) Appending [/m] to mountlist Appending [/m] ExpandVarstring(home) Appending [home] Found 0 variables in (/root/.ssh) HandleOption(m=700) ExpandVarstring(m=700) HandleOption(o=root) ExpandVarstring(o=root) HandleOption(g=root) ExpandVarstring(g=root) ExpandVarstring(/root/.ssh) ExpandVarstring() ExpandVarstring() AddInstallable() AddInstallable() ExpandVarstring(root) ExpandVarstring(root) Found 0 variables in (home/.ssh) HandleOption(m=700) ExpandVarstring(m=700) ExpandVarstring(home/.ssh) ExpandVarstring() ExpandVarstring() AddInstallable() AddInstallable() ExpandVarstring(*) ExpandVarstring(*) Found 0 variables in (/root/.ssh/authorized_keys) HandleOption(m=600) ExpandVarstring(m=600) HandleOption(act=touch) ExpandVarstring(act=touch) HandleOption(o=root) ExpandVarstring(o=root) HandleOption(g=root) ExpandVarstring(g=root) SplitVarstring(/root/.ssh/authorized_keys,:=58) Found 0 variables in (/root/.ssh/authorized_keys) Appending [/root/.ssh/authorized_keys] ExpandVarstring() ExpandVarstring() AddInstallable() AddInstallable() ExpandVarstring(root) ExpandVarstring(root) Found 0 variables in (/root/.ssh/authorized_keys2) HandleOption(m=600) ExpandVarstring(m=600) HandleOption(act=touch) ExpandVarstring(act=touch) HandleOption(o=root) ExpandVarstring(o=root) HandleOption(g=root) ExpandVarstring(g=root) SplitVarstring(/root/.ssh/authorized_keys2,:=58) Found 0 variables in (/root/.ssh/authorized_keys2) Appending [/root/.ssh/authorized_keys2] ExpandVarstring() ExpandVarstring() AddInstallable() AddInstallable() ExpandVarstring(root) ExpandVarstring(root) Found 0 variables in (home/.ssh/authorized_keys) HandleOption(m=600) ExpandVarstring(m=600) HandleOption(act=touch) ExpandVarstring(act=touch) SplitVarstring(home/.ssh/authorized_keys,:=58) Found 0 variables in (home/.ssh/authorized_keys) Appending [home/.ssh/authorized_keys] ExpandVarstring() ExpandVarstring() AddInstallable() AddInstallable() ExpandVarstring(*) ExpandVarstring(*) Found 0 variables in (home/.ssh/authorized_keys2) HandleOption(m=600) ExpandVarstring(m=600) HandleOption(act=touch) ExpandVarstring(act=touch) SplitVarstring(home/.ssh/authorized_keys2,:=58) Found 0 variables in (home/.ssh/authorized_keys2) Appending [home/.ssh/authorized_keys2] ExpandVarstring() ExpandVarstring() AddInstallable() AddInstallable() ExpandVarstring(*) ExpandVarstring(*) Delete Parser Object::(END OF PARSING ssh.cf) Finished with ssh.cf Accepted domain name: undefined.domain Defined Classes = ( any cfengine_2_1_3 SuSE SuSE_9 SuSE_9_1 opt_debug Friday Hr17 Min10 Min10_15 Q1 Hr17_Q1 Day3 September Yr2004 linux raven 32_bit linux_2_6_5_7_104_default i686 linux_i686 linux_i686_2_6_5_7_104_default linux_i686_2_6_5_7_104_default__1_Wed_Jul_28_16_42_13_UTC_2004 compiled_on_linux net_iface_lo net_iface_eth0 192_168_1_43 raven_inka_de 192_168_1 ipv4_192_168_1_43 ipv4_192_168_1 ipv4_192_168 ipv4_192 RootProcs_high_dev1 UserProcs_high_normal DiskFree_high_dev1 LoadAvg_high_dev1 ) Negated Classes = ( ) Installable classes = ( ) Global expiry time for locks: 120 minutes Global anti-spam elapse time: 1 minutes Extensions which should not be directories = ( ) Suspicious filenames to be warned about = ( ) Fully qualified hostname is: raven Unqualified hostname is: System administrator mail address is: Sensible size = 1000 Sensible count = 2 Edit File (Max) Size = 10000 Edit Binary File (Max) Size = 10000000 ------------------------------------------------------------ DEFINED INTERFACES ------------------------------------------------------------ Defined Binservers = ( raven ) ------------------------------------------------------------ Defined home servers = ( ) ------------------------------------------------------------ Defined wildcards to match home directories = ( home ) ------------------------------------------------------------ Action sequence = (directories files ) Will need to copy from the following trusted sources = ( ) Using mailserver Local mountpoints: /m Default route for packets File repository = Net interface name = eth0 ------------------------------------------------------------ DEFINED MACRO/VARIABLES (by contexts) OBJECT: global 18 : value_ftp_in=0 21 : average_netbiosns_in=0.0 40 : value_rootprocs=49 62 : value_ssh_in=2 63 : average_diskfree=25.2 70 : stddev_netbiosns_in=0.0 105 : average_ftp_in=0.0 106 : value_ssh_out=2 120 : stddev_ftp_out=0.0 147 : stddev_nfsd_out=0.0 149 : average_ssh_in=1.4 160 : stddev_netbiosssn_in=0.0 171 : stddev_userprocs=21.4 186 : average_users=4.2 188 : value_wwws_out=0 192 : stddev_irc_out=0.0 197 : average_www_out=0.0 214 : value_wwws_in=0 225 : stddev_smtp_in=0.0 226 : average_rootprocs=34.3 234 : average_netbiosssn_in=0.0 241 : stddev_users=2.3 251 : stddev_diskfree=14.1 258 : average_wwws_out=0.0 269 : value_loadavg=0 285 : value_users=6 290 : average_netbiosdgm_out=0.0 305 : value_netbiosssn_in=0 307 : average_ssh_out=1.4 311 : value_cfengine_out=0 328 : value_www_in=0 343 : value_nfsd_in=0 344 : value_usr_sbin_atd=0 376 : stddev_netbiosdgm_in=0.0 387 : average_netbiosssn_out=0.0 397 : stddev_ftp_in=0.0 415 : average_www_in=0.0 416 : average_wwws_in=0.0 427 : average_cfengine_out=0.0 441 : stddev_ssh_in=0.8 446 : stddev_wwws_out=0.0 450 : average_netbiosdgm_in=0.0 460 : average_usr_sbin_atd=0.0 463 : stddev_rootprocs=19.2 471 : average_loadavg=0.0 476 : stddev_cfengine_out=0.0 484 : value_ftp_out=0 509 : stddev_usr_sbin_atd=0.0 516 : value_bin_bash=0 520 : stddev_cfengine_in=0.0 521 : value_netbiosdgm_in=0 537 : value_netbiosdgm_out=0 545 : average_nfsd_in=0.0 556 : value_irc_out=0 585 : value_sbin_getty=0 586 : average_bin_bash=0.0 589 : value_smtp_in=0 593 : stddev_netbiosns_out=0.0 601 : value_smtp_out=0 605 : value_irc_in=0 634 : value_netbiosssn_out=0 652 : stddev_www_out=0.0 657 : stddev_usr_sbin_exim=0.0 667 : average_netbiosns_out=0.0 671 : average_smtp_out=0.0 686 : average_ftp_out=0.0 692 : average_irc_in=0.0 700 : average_sbin_getty=0.0 707 : stddev_www_in=0.0 729 : stddev_bin_run_parts=0.0 731 : average_usr_sbin_exim=0.0 738 : value_netbiosns_out=0 758 : average_irc_out=0.0 762 : stddev_ssh_out=0.8 769 : value_userprocs=55 774 : stddev_bin_bash=0.0 787 : average_cfengine_in=0.0 791 : average_smtp_in=0.0 802 : value_usr_sbin_exim=0 803 : average_bin_run_parts=0.0 838 : ipv4[eth0]=192.168.1.43 859 : stddev_smtp_out=0.0 863 : stddev_sbin_getty=0.0 871 : stddev_wwws_in=0.0 874 : value_bin_run_parts=0 881 : stddev_netbiosdgm_out=0.0 910 : value_nfsd_out=0 919 : value_cfengine_in=0 926 : stddev_loadavg=14.1 927 : value_netbiosns_in=0 955 : average_userprocs=38.5 978 : stddev_netbiosssn_out=0.0 979 : env_time=Fri Sep 3 11:06:09 2004 980 : average_nfsd_out=0.0 984 : stddev_irc_in=0.0 1000 : stddev_nfsd_in=0.0 1014 : value_diskfree=36 1016 : value_www_out=0 OBJECT: main 18 : value_ftp_in=0 21 : average_netbiosns_in=0.0 40 : value_rootprocs=49 62 : value_ssh_in=2 63 : average_diskfree=25.2 70 : stddev_netbiosns_in=0.0 105 : average_ftp_in=0.0 106 : value_ssh_out=2 120 : stddev_ftp_out=0.0 147 : stddev_nfsd_out=0.0 149 : average_ssh_in=1.4 160 : stddev_netbiosssn_in=0.0 171 : stddev_userprocs=21.4 186 : average_users=4.2 188 : value_wwws_out=0 192 : stddev_irc_out=0.0 197 : average_www_out=0.0 214 : value_wwws_in=0 225 : stddev_smtp_in=0.0 226 : average_rootprocs=34.3 234 : average_netbiosssn_in=0.0 241 : stddev_users=2.3 251 : stddev_diskfree=14.1 258 : average_wwws_out=0.0 269 : value_loadavg=0 285 : value_users=6 290 : average_netbiosdgm_out=0.0 305 : value_netbiosssn_in=0 307 : average_ssh_out=1.4 311 : value_cfengine_out=0 328 : value_www_in=0 343 : value_nfsd_in=0 344 : value_usr_sbin_atd=0 376 : stddev_netbiosdgm_in=0.0 387 : average_netbiosssn_out=0.0 397 : stddev_ftp_in=0.0 415 : average_www_in=0.0 416 : average_wwws_in=0.0 427 : average_cfengine_out=0.0 441 : stddev_ssh_in=0.8 446 : stddev_wwws_out=0.0 450 : average_netbiosdgm_in=0.0 460 : average_usr_sbin_atd=0.0 463 : stddev_rootprocs=19.2 471 : average_loadavg=0.0 476 : stddev_cfengine_out=0.0 484 : value_ftp_out=0 509 : stddev_usr_sbin_atd=0.0 516 : value_bin_bash=0 520 : stddev_cfengine_in=0.0 521 : value_netbiosdgm_in=0 537 : value_netbiosdgm_out=0 545 : average_nfsd_in=0.0 556 : value_irc_out=0 585 : value_sbin_getty=0 586 : average_bin_bash=0.0 589 : value_smtp_in=0 593 : stddev_netbiosns_out=0.0 601 : value_smtp_out=0 605 : value_irc_in=0 634 : value_netbiosssn_out=0 652 : stddev_www_out=0.0 657 : stddev_usr_sbin_exim=0.0 667 : average_netbiosns_out=0.0 671 : average_smtp_out=0.0 686 : average_ftp_out=0.0 692 : average_irc_in=0.0 700 : average_sbin_getty=0.0 707 : stddev_www_in=0.0 729 : stddev_bin_run_parts=0.0 731 : average_usr_sbin_exim=0.0 738 : value_netbiosns_out=0 758 : average_irc_out=0.0 762 : stddev_ssh_out=0.8 769 : value_userprocs=55 774 : stddev_bin_bash=0.0 787 : average_cfengine_in=0.0 791 : average_smtp_in=0.0 802 : value_usr_sbin_exim=0 803 : average_bin_run_parts=0.0 859 : stddev_smtp_out=0.0 863 : stddev_sbin_getty=0.0 871 : stddev_wwws_in=0.0 874 : value_bin_run_parts=0 881 : stddev_netbiosdgm_out=0.0 910 : value_nfsd_out=0 919 : value_cfengine_in=0 926 : stddev_loadavg=14.1 927 : value_netbiosns_in=0 955 : average_userprocs=38.5 978 : stddev_netbiosssn_out=0.0 979 : env_time=Fri Sep 3 11:06:09 2004 980 : average_nfsd_out=0.0 984 : stddev_irc_in=0.0 1000 : stddev_nfsd_in=0.0 1014 : value_diskfree=36 1016 : value_www_out=0 ------------------------------------------------------------ DEFINED ALERTS ------------------------------------------------------------ DEFINED STRATEGIES ------------------------------------------------------------ DEFINED NAMESERVERS ------------------------------------------------------------ DEFINED REQUIRE ------------------------------------------------------------ DEFINED MOUNTABLES ------------------------------------------------------------ DEFINED MISC MOUNTABLES ------------------------------------------------------------ DEFINED UNMOUNTS ------------------------------------------------------------ DEFINED DIRECTORIES DIRECTORY /root/.ssh +700 -7077 fixdirs IfElapsed=1, ExpireAfter=120 recurse=0 uids = ( 0 ) gids = ( 0 ) Define ElseDefine DIRECTORY home/.ssh +700 -7077 fixdirs IfElapsed=1, ExpireAfter=120 recurse=0 uids = ( -1 ) gids = ( -1 ) Define ElseDefine ------------------------------------------------------------ DEFINED IMPORTS ------------------------------------------------------------ DEFINED FILES FILE OBJECT /root/.ssh/authorized_keys +600 -7177 +0 -0 touch travelinks=? IfElapsed=1, ExpireAfter=120 recurse=0 xdev = n uids = ( 0 ) gids = ( 0 ) Define ElseDefine FILE OBJECT /root/.ssh/authorized_keys2 +600 -7177 +0 -0 touch travelinks=? IfElapsed=1, ExpireAfter=120 recurse=0 xdev = n uids = ( 0 ) gids = ( 0 ) Define ElseDefine FILE OBJECT home/.ssh/authorized_keys +600 -7177 +0 -0 touch travelinks=? IfElapsed=1, ExpireAfter=120 recurse=0 xdev = n uids = ( -1 ) gids = ( -1 ) Define ElseDefine FILE OBJECT home/.ssh/authorized_keys2 +600 -7177 +0 -0 touch travelinks=? IfElapsed=1, ExpireAfter=120 recurse=0 xdev = n uids = ( -1 ) gids = ( -1 ) Define ElseDefine ------------------------------------------------------------ DEFINED ACCESS CONTROL LISTS ------------------------------------------------------------ DEFINED FILTERS ------------------------------------------------------------ DEFINED IGNORE ------------------------------------------------------------ DEFINED FILE EDITS ------------------------------------------------------------ DEFINED PROCESSES ) ------------------------------------------------------------ DEFINED FILE IMAGES ------------------------------------------------------------ DEFINED TIDY MASKS ------------------------------------------------------------ DEFINED DISABLE ------------------------------------------------------------ DEFINED LINKS ------------------------------------------------------------ DEFINED CHILD LINKS ------------------------------------------------------------ DEFINED SHELLCOMMANDS ------------------------------------------------------------ DEFINED PACKAGE CHECKS ------------------------------------------------------------ DEFINED METHODS ------------------------------------------------------------ Ignoring locks... cfagent -d : Debugging output enabled. LogDirectory = /var/cfengine Loaded /var/cfengine/ppkeys/localhost.priv Loaded /var/cfengine/ppkeys/localhost.pub Checksum database is /var/cfengine/checksum.db Reference time set to Fri Sep 3 17:10:41 2004 Job start time set to Fri Sep 3 17:10:41 2004 ********************************************************************* Main Tree Sched: directories pass 1 @ Fri Sep 3 17:10:41 2004 ********************************************************************* (BuildClassEnvironment) --- ENVIRONMENT: CFALLCLASSES=any:cfengine_2_1_3:SuSE:SuSE_9:SuSE_9_1:opt_debug:Friday:Hr17:Min10:Min10_15:Q1:Hr17_Q1:Day3:September:Yr2004:linux:raven:32_bit:linux_2_6_5_7_104_default:i686:linux_i686:linux_i686_2_6_5_7_104_default:linux_i686_2_6_5_7_104_default__1_Wed_Jul_28_16_42_13_UTC_2004:compiled_on_linux:net_iface_lo:net_iface_eth0:192_168_1_43:raven_inka_de:192_168_1:ipv4_192_168_1_43:ipv4_192_168_1:ipv4_192_168:ipv4_192:RootProcs_high_dev1:UserProcs_high_normal:DiskFree_high_dev1:LoadAvg_high_dev1: --- Actionsequence item directories SETUID-LOG: /bin/umount SETUID-LOG: /bin/mount MakePath(/root/.ssh) ExpandVarstring(/root/.ssh) ExpandWildCardsAndDo(/root/.ssh=/root/.ssh) ExpandVarstring(/.ssh) ExpandWildCardsAndDo(/.ssh=/.ssh) ExpandVarstring() ExpandWildCardsAndDo(=) ExpandVarstring(/root/.ssh) Directory for /root/.ssh/. exists. Okay cfengine:: Checking fs-object /root/.ssh CheckExistingFile(+700,-7077) IgnoredOrExcluded(/root/.ssh) FileObjectFilter(/root/.ssh) Directory...fixing x bits CheckOwner: 0 uid 0 File okay, newperm = 700, stat = 700 ExpandVarstring(/m/home/*/.ssh) ExpandWildCardsAndDo(/m/home/*/.ssh=/m/home/*/.ssh) ExpandVarstring(/home/*/.ssh) ExpandWildCardsAndDo(/home/*/.ssh=/home/*/.ssh) ExpandVarstring(/*/.ssh) ExpandWildCardsAndDo(/*/.ssh=/*/.ssh) Filename /m/home//. is classified as ignorable Filename /m/home//.. is classified as ignorable ExpandVarstring(/.ssh) ExpandWildCardsAndDo(/.ssh=/.ssh) ExpandVarstring() ExpandWildCardsAndDo(=) ExpandVarstring(/m/home/jw/.ssh) Directory for /m/home/jw/.ssh/. exists. Okay cfengine:: Checking fs-object /m/home/jw/.ssh CheckExistingFile(+700,-7077) IgnoredOrExcluded(/m/home/jw/.ssh) FileObjectFilter(/m/home/jw/.ssh) Directory...fixing x bits CheckOwner: 1000 uid -1 File okay, newperm = 700, stat = 700 ExpandVarstring(/.ssh) ExpandWildCardsAndDo(/.ssh=/.ssh) ExpandVarstring() ExpandWildCardsAndDo(=) ExpandVarstring(/m/home/kdb/.ssh) Directory for /m/home/kdb/.ssh/. exists. Okay cfengine:: Checking fs-object /m/home/kdb/.ssh CheckExistingFile(+700,-7077) IgnoredOrExcluded(/m/home/kdb/.ssh) FileObjectFilter(/m/home/kdb/.ssh) Directory...fixing x bits CheckOwner: 0 uid -1 File okay, newperm = 700, stat = 700 ExpandVarstring(/.ssh) ExpandWildCardsAndDo(/.ssh=/.ssh) ExpandVarstring() ExpandWildCardsAndDo(=) ExpandVarstring(/m/home/jwsec/.ssh) Directory for /m/home/jwsec/.ssh/. exists. Okay cfengine:: Checking fs-object /m/home/jwsec/.ssh CheckExistingFile(+700,-7077) IgnoredOrExcluded(/m/home/jwsec/.ssh) FileObjectFilter(/m/home/jwsec/.ssh) Directory...fixing x bits CheckOwner: 1001 uid -1 File okay, newperm = 700, stat = 700 Saving the setuid log in /var/cfengine/cfagent.raven.log SAVE-SETUID-LOG: /bin/umount SAVE-SETUID-LOG: /bin/mount Job start time set to Fri Sep 3 17:10:41 2004 ********************************************************************* Main Tree Sched: files pass 1 @ Fri Sep 3 17:10:41 2004 ********************************************************************* (BuildClassEnvironment) --- ENVIRONMENT: CFALLCLASSES=any:cfengine_2_1_3:SuSE:SuSE_9:SuSE_9_1:opt_debug:Friday:Hr17:Min10:Min10_15:Q1:Hr17_Q1:Day3:September:Yr2004:linux:raven:32_bit:linux_2_6_5_7_104_default:i686:linux_i686:linux_i686_2_6_5_7_104_default:linux_i686_2_6_5_7_104_default__1_Wed_Jul_28_16_42_13_UTC_2004:compiled_on_linux:net_iface_lo:net_iface_eth0:192_168_1_43:raven_inka_de:192_168_1:ipv4_192_168_1_43:ipv4_192_168_1:ipv4_192_168:ipv4_192:RootProcs_high_dev1:UserProcs_high_normal:DiskFree_high_dev1:LoadAvg_high_dev1: --- Actionsequence item files SETUID-LOG: /bin/umount SETUID-LOG: /bin/mount Checking file(s) in /root/.ssh/authorized_keys ExpandVarstring(/root/.ssh/authorized_keys) ExpandWildCardsAndDo(/root/.ssh/authorized_keys=/root/.ssh/authorized_keys) ExpandVarstring(/.ssh/authorized_keys) ExpandWildCardsAndDo(/.ssh/authorized_keys=/.ssh/authorized_keys) ExpandVarstring(/authorized_keys) ExpandWildCardsAndDo(/authorized_keys=/authorized_keys) ExpandVarstring() ExpandWildCardsAndDo(=) cfengine:: Checking fs-object /root/.ssh/authorized_keys CheckExistingFile(+600,-7177) IgnoredOrExcluded(/root/.ssh/authorized_keys) FileObjectFilter(/root/.ssh/authorized_keys) CheckOwner: 0 uid 0 Trying to fix mode... CheckExistingFile(Done) Checking file(s) in /root/.ssh/authorized_keys2 ExpandVarstring(/root/.ssh/authorized_keys2) ExpandWildCardsAndDo(/root/.ssh/authorized_keys2=/root/.ssh/authorized_keys2) ExpandVarstring(/.ssh/authorized_keys2) ExpandWildCardsAndDo(/.ssh/authorized_keys2=/.ssh/authorized_keys2) ExpandVarstring(/authorized_keys2) ExpandWildCardsAndDo(/authorized_keys2=/authorized_keys2) ExpandVarstring() ExpandWildCardsAndDo(=) cfengine:: Checking fs-object /root/.ssh/authorized_keys2 CheckExistingFile(+600,-7177) IgnoredOrExcluded(/root/.ssh/authorized_keys2) FileObjectFilter(/root/.ssh/authorized_keys2) CheckOwner: 0 uid 0 Trying to fix mode... CheckExistingFile(Done) CheckHome(home/.ssh/authorized_keys) ExpandVarstring(/m/home/*/.ssh/authorized_keys) ExpandWildCardsAndDo(/m/home/*/.ssh/authorized_keys=/m/home/*/.ssh/authorized_keys) ExpandVarstring(/home/*/.ssh/authorized_keys) ExpandWildCardsAndDo(/home/*/.ssh/authorized_keys=/home/*/.ssh/authorized_keys) ExpandVarstring(/*/.ssh/authorized_keys) ExpandWildCardsAndDo(/*/.ssh/authorized_keys=/*/.ssh/authorized_keys) Filename /m/home//. is classified as ignorable Filename /m/home//.. is classified as ignorable ExpandVarstring(/.ssh/authorized_keys) ExpandWildCardsAndDo(/.ssh/authorized_keys=/.ssh/authorized_keys) ExpandVarstring(/authorized_keys) ExpandWildCardsAndDo(/authorized_keys=/authorized_keys) ExpandVarstring() ExpandWildCardsAndDo(=) cfengine:: Checking files in /m/home/jw/.ssh/authorized_keys... cfengine:: Directory /m/home/jw/.ssh/authorized_keys cannot be accessed in files ExpandVarstring(/.ssh/authorized_keys) ExpandWildCardsAndDo(/.ssh/authorized_keys=/.ssh/authorized_keys) ExpandVarstring(/authorized_keys) ExpandWildCardsAndDo(/authorized_keys=/authorized_keys) ExpandVarstring() ExpandWildCardsAndDo(=) cfengine:: Checking files in /m/home/kdb/.ssh/authorized_keys... cfengine:: Directory /m/home/kdb/.ssh/authorized_keys cannot be accessed in files ExpandVarstring(/.ssh/authorized_keys) ExpandWildCardsAndDo(/.ssh/authorized_keys=/.ssh/authorized_keys) ExpandVarstring(/authorized_keys) ExpandWildCardsAndDo(/authorized_keys=/authorized_keys) ExpandVarstring() ExpandWildCardsAndDo(=) cfengine:: Checking files in /m/home/jwsec/.ssh/authorized_keys... cfengine:: Directory /m/home/jwsec/.ssh/authorized_keys cannot be accessed in files CheckHome(home/.ssh/authorized_keys2) ExpandVarstring(/m/home/*/.ssh/authorized_keys2) ExpandWildCardsAndDo(/m/home/*/.ssh/authorized_keys2=/m/home/*/.ssh/authorized_keys2) ExpandVarstring(/home/*/.ssh/authorized_keys2) ExpandWildCardsAndDo(/home/*/.ssh/authorized_keys2=/home/*/.ssh/authorized_keys2) ExpandVarstring(/*/.ssh/authorized_keys2) ExpandWildCardsAndDo(/*/.ssh/authorized_keys2=/*/.ssh/authorized_keys2) Filename /m/home//. is classified as ignorable Filename /m/home//.. is classified as ignorable ExpandVarstring(/.ssh/authorized_keys2) ExpandWildCardsAndDo(/.ssh/authorized_keys2=/.ssh/authorized_keys2) ExpandVarstring(/authorized_keys2) ExpandWildCardsAndDo(/authorized_keys2=/authorized_keys2) ExpandVarstring() ExpandWildCardsAndDo(=) cfengine:: Checking files in /m/home/jw/.ssh/authorized_keys2... cfengine:: Directory /m/home/jw/.ssh/authorized_keys2 cannot be accessed in files ExpandVarstring(/.ssh/authorized_keys2) ExpandWildCardsAndDo(/.ssh/authorized_keys2=/.ssh/authorized_keys2) ExpandVarstring(/authorized_keys2) ExpandWildCardsAndDo(/authorized_keys2=/authorized_keys2) ExpandVarstring() ExpandWildCardsAndDo(=) cfengine:: Checking files in /m/home/kdb/.ssh/authorized_keys2... cfengine:: Directory /m/home/kdb/.ssh/authorized_keys2 cannot be accessed in files ExpandVarstring(/.ssh/authorized_keys2) ExpandWildCardsAndDo(/.ssh/authorized_keys2=/.ssh/authorized_keys2) ExpandVarstring(/authorized_keys2) ExpandWildCardsAndDo(/authorized_keys2=/authorized_keys2) ExpandVarstring() ExpandWildCardsAndDo(=) cfengine:: Checking files in /m/home/jwsec/.ssh/authorized_keys2... cfengine:: Directory /m/home/jwsec/.ssh/authorized_keys2 cannot be accessed in files Saving the setuid log in /var/cfengine/cfagent.raven.log SAVE-SETUID-LOG: /bin/umount SAVE-SETUID-LOG: /bin/mount Job start time set to Fri Sep 3 17:10:41 2004 Job start time set to Fri Sep 3 17:10:41 2004 --------------------------------------------------------------------- Alerts --------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++ Summary of objects involved ++++++++++++++++++++++++++++++++++++++++ global main -- Please visit and sign and http://www.ffii.org -- Josef Wolf -- jw@raven.inka.de -- From MAILER-DAEMON Fri Sep 03 16:18:20 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3KVo-0000eh-P7 for mharc-help-cfengine@gnu.org; Fri, 03 Sep 2004 16:18:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3KVm-0000cj-Qc for help-cfengine@gnu.org; Fri, 03 Sep 2004 16:18:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3KVl-0000cX-5E for help-cfengine@gnu.org; Fri, 03 Sep 2004 16:18:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3KVj-0000cP-C8 for help-cfengine@gnu.org; Fri, 03 Sep 2004 16:18:17 -0400 Received: from [62.245.182.8] (helo=mx.leogic.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C3KQT-0002ci-2Q for help-cfengine@gnu.org; Fri, 03 Sep 2004 16:12:49 -0400 Received: from [127.0.0.1] ([192.168.65.59]) (authenticated bits=0) by mx.leogic.com (8.12.11/8.12.10) with ESMTP id i83KCdpd028239 (version=TLSv1/SSLv3 cipher=IDEA-CBC-SHA bits=128 verify=NO) for ; Fri, 3 Sep 2004 22:12:41 +0200 Message-ID: <4138D032.4070201@leogic.com> Date: Fri, 03 Sep 2004 22:12:34 +0200 From: Sven Mueller User-Agent: Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <4137096C.2060306@leogic.com> <20040902122541.GF2593@raven.inka.de> <4137278F.60806@leogic.com> In-Reply-To: <4137278F.60806@leogic.com> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: editfiles problem - revisited - Still nobody having an idea what goes wrong? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 20:18:19 -0000 Status: O Content-Length: 2526 Lines: 79 Sven Mueller [u] wrote on 02/09/2004 16:00: Still nobody having an idea of how to solve my problem? In short my problem was that I _need_ to restart a program if I changed it's config file. But for various reasons, I have to avoid restarting it, if I didn't change it. The only way I have come up with is using a temporary file, and with various shellcommands I shouldn't even have available on the machine in question (diff among them). I am desperately looking for a solution which is maintainable even when (potentially) updating hundreds of lines in a file. Please also see my additions inserted between the quotes below: > Josef Wolf [u] wrote on 02/09/2004 14:25: > > >>On Thu, Sep 02, 2004 at 01:52:12PM +0200, Sven Mueller wrote: >> >> >> >>>test:x:1:1::/tmp/:/bin/bash >>>test2:x:2:2::/tmp/:/bin/bash >>> >>>Here is what cfagent.conf looks like: >>> >>>control: >>> actionsequence = ( editfiles ) >>> >>>editfiles: >>> { /tmp/passwd >>> Backup "Off" >>> SplitOn ":" >>> ReplaceLinesMatchingField 1 >>> SetLine "test::::::" >>> AppendIfNoLineMatching "ThisLine" >>> } >> >> AFAICS, the ThisLine notation works only in a ForEachLineIn loop. Hmm, this didn't make a difference. Also, the documentation says: 'If "ThisLine" is given as the argument, the current value of the line buffer is assumed.' The documentation of "ForEachLineIn" says: 'The result is like using SetLine for each line in the file' And while the SetLine documentation says nothing about a line buffer (but ForEachLineIn doesn't either), what I gather from the above two snippets is that 'AppendIfNoLineMatching "ThisLine"' should do exactly what I expected. But it doesn't. >> You need to give a regexp to AppendIfNoLineMatching. Further, >> ReplaceLinesMatching requires either a ForEachLineIn loop or a SetLine. >> So please try: >> >> { /tmp/passwd >> Backup "Off" >> SplitOn ":" >> SetLine "test::::::" >> ReplaceLinesMatchingField 1 >> AppendIfNoLineMatching "test:.*" >> } > > > Changing it this way still doesn't replace an existing > "test:x:1:1::/tmp/:/bin/bash" line with the "test::::::" line. > > It doesn't seem to matter wether the ReplaceLinesMatchingField > instruction is given before or after SetLine. It doesn't do what the > documentation suggests in either case. I'm really out of wits on this problem. cu, sven From MAILER-DAEMON Fri Sep 03 16:52:17 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3L2f-0003RZ-EF for mharc-help-cfengine@gnu.org; Fri, 03 Sep 2004 16:52:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3L2b-0003R1-KR for help-cfengine@gnu.org; Fri, 03 Sep 2004 16:52:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3L2a-0003Pw-1W for help-cfengine@gnu.org; Fri, 03 Sep 2004 16:52:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3L2Z-0003PV-Kn for help-cfengine@gnu.org; Fri, 03 Sep 2004 16:52:11 -0400 Received: from [134.134.136.7] (helo=caduceus.jf.intel.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C3Kx7-00088d-Iy for help-cfengine@gnu.org; Fri, 03 Sep 2004 16:46:34 -0400 Received: from petasus.jf.intel.com (petasus.jf.intel.com [10.7.209.6]) by caduceus.jf.intel.com (8.12.9-20030918-01/8.12.9/d: major-outer.mc,v 1.15 2004/01/30 18:16:28 root Exp $) with ESMTP id i83KjqlN000932; Fri, 3 Sep 2004 20:45:59 GMT Received: from nwlxmail02.jf.intel.com (nwlxmail02.jf.intel.com [192.168.74.77]) by petasus.jf.intel.com (8.12.9-20030918-01/8.12.9/d: major-inner.mc,v 1.11 2004/07/29 22:51:53 root Exp $) with ESMTP id i83Kn7An011362; Fri, 3 Sep 2004 20:49:07 GMT Received: from [134.134.155.103] ([134.134.155.103]) by nwlxmail02.jf.intel.com (8.12.10/8.12.9/MailSET/Hub) with ESMTP id i83KkL9V010156; Fri, 3 Sep 2004 13:46:21 -0700 In-Reply-To: <4138D032.4070201@leogic.com> References: <4137096C.2060306@leogic.com> <20040902122541.GF2593@raven.inka.de> <4137278F.60806@leogic.com> <4138D032.4070201@leogic.com> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <5402AD44-FDEA-11D8-846E-000A95C47858@intel.com> Content-Transfer-Encoding: 7bit From: Tod Oace Date: Fri, 3 Sep 2004 13:46:28 -0700 To: Sven Mueller X-Mailer: Apple Mail (2.619) X-Scanned-By: MIMEDefang 2.31 (www . roaringpenguin . com / mimedefang) Cc: help-cfengine@gnu.org Subject: Re: editfiles problem - revisited - Still nobody having an idea what goes wrong? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 20:52:14 -0000 Status: O Content-Length: 3017 Lines: 98 On Sep 3, 2004, at 13:12, Sven Mueller wrote: > Still nobody having an idea of how to solve my problem? How about something like this: { /etc/passwd BeginGroupIfNoSuchLine "test::::::" DeleteLinesMatching "^test:.*$" Append "test::::::" EndGroup DefineClasses "restart_whatever" } -Tod > In short my problem was that I _need_ to restart a program if I > changed it's config file. But for various reasons, I have to avoid > restarting it, if I didn't change it. > > The only way I have come up with is using a temporary file, and with > various shellcommands I shouldn't even have available on the machine > in question (diff among them). > > I am desperately looking for a solution which is maintainable even > when (potentially) updating hundreds of lines in a file. > > Please also see my additions inserted between the quotes below: > >> Josef Wolf [u] wrote on 02/09/2004 14:25: >>> On Thu, Sep 02, 2004 at 01:52:12PM +0200, Sven Mueller wrote: >>> >>> >>> >>>> test:x:1:1::/tmp/:/bin/bash >>>> test2:x:2:2::/tmp/:/bin/bash >>>> >>>> Here is what cfagent.conf looks like: >>>> >>>> control: >>>> actionsequence = ( editfiles ) >>>> >>>> editfiles: >>>> { /tmp/passwd >>>> Backup "Off" >>>> SplitOn ":" >>>> ReplaceLinesMatchingField 1 >>>> SetLine "test::::::" >>>> AppendIfNoLineMatching "ThisLine" >>>> } >>> >>> AFAICS, the ThisLine notation works only in a ForEachLineIn loop. > > Hmm, this didn't make a difference. Also, the documentation says: > 'If "ThisLine" is given as the argument, the current value of the line > buffer is assumed.' > The documentation of "ForEachLineIn" says: > 'The result is like using SetLine for each line in the file' > And while the SetLine documentation says nothing about a line buffer > (but ForEachLineIn doesn't either), what I gather from the above two > snippets is that 'AppendIfNoLineMatching "ThisLine"' should do exactly > what I expected. But it doesn't. > > >> You need to give a regexp to AppendIfNoLineMatching. Further, > >> ReplaceLinesMatching requires either a ForEachLineIn loop or a > SetLine. >>> So please try: >>> >>> { /tmp/passwd >>> Backup "Off" >>> SplitOn ":" >>> SetLine "test::::::" >>> ReplaceLinesMatchingField 1 >>> AppendIfNoLineMatching "test:.*" >>> } >> Changing it this way still doesn't replace an existing >> "test:x:1:1::/tmp/:/bin/bash" line with the "test::::::" line. >> It doesn't seem to matter wether the ReplaceLinesMatchingField >> instruction is given before or after SetLine. It doesn't do what the >> documentation suggests in either case. > > I'm really out of wits on this problem. > > cu, > sven > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- Tod Oace, Intel Corporation From MAILER-DAEMON Fri Sep 03 17:54:33 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3M0v-0005g7-9e for mharc-help-cfengine@gnu.org; Fri, 03 Sep 2004 17:54:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3M0t-0005fF-8H for help-cfengine@gnu.org; Fri, 03 Sep 2004 17:54:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3M0s-0005eD-Aw for help-cfengine@gnu.org; Fri, 03 Sep 2004 17:54:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3M0s-0005e6-73 for help-cfengine@gnu.org; Fri, 03 Sep 2004 17:54:30 -0400 Received: from [62.245.182.8] (helo=mx.leogic.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C3LuI-0000cw-6H for help-cfengine@gnu.org; Fri, 03 Sep 2004 17:47:42 -0400 Received: from [127.0.0.1] ([192.168.65.59]) (authenticated bits=0) by mx.leogic.com (8.12.11/8.12.10) with ESMTP id i83LldPj017808 (version=TLSv1/SSLv3 cipher=IDEA-CBC-SHA bits=128 verify=NO); Fri, 3 Sep 2004 23:47:41 +0200 Message-ID: <4138E676.1070300@leogic.com> Date: Fri, 03 Sep 2004 23:47:34 +0200 From: Sven Mueller User-Agent: Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: "Mark.Burgess@iu.hio.no" References: <200409032040.i83KeiHt017468@nexus.iu.hio.no> In-Reply-To: <200409032040.i83KeiHt017468@nexus.iu.hio.no> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: help-cfengine@gnu.org Subject: Re: editfiles problem - revisited - Still nobody having an idea what goes wrong? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 21:54:31 -0000 Status: O Content-Length: 3933 Lines: 127 Mark.Burgess@iu.hio.no [u] wrote on 03/09/2004 22:40: > Why can't you Define a class on edit, and then call a restart in processes? Because all ways of achieving the basic editing task (replace exiting lines with the same first field, append line if none matched) I or others on the list found so far results in _always_ editing the files and _always_ defining that class. using editfiles: { /tmp/aliases SetLine "root:xxxxx" ReplaceLinesMatchingField 1 AppendIfNoLineMatching "ThisLine" DefineClasses "file edited" } should do the job in theory (from all I read in the documentation), but that doesn't work as expected, instead it: - doesn't replace existing lines and - always appends the line in question if it wasn't found by exact match. cu, sven > On 3 Sep, Sven Mueller wrote: > >>Sven Mueller [u] wrote on 02/09/2004 16:00: >> >>Still nobody having an idea of how to solve my problem? >> >>In short my problem was that I _need_ to restart a program if I changed >>it's config file. But for various reasons, I have to avoid restarting >>it, if I didn't change it. >> >>The only way I have come up with is using a temporary file, and with >>various shellcommands I shouldn't even have available on the machine in >>question (diff among them). >> >>I am desperately looking for a solution which is maintainable even when >>(potentially) updating hundreds of lines in a file. >> >>Please also see my additions inserted between the quotes below: >> >> >>>Josef Wolf [u] wrote on 02/09/2004 14:25: >>> >>> >>> >>>>On Thu, Sep 02, 2004 at 01:52:12PM +0200, Sven Mueller wrote: >>>> >>>> >>>> >>>> >>>>>test:x:1:1::/tmp/:/bin/bash >>>>>test2:x:2:2::/tmp/:/bin/bash >>>>> >>>>>Here is what cfagent.conf looks like: >>>>> >>>>>control: >>>>> actionsequence = ( editfiles ) >>>>> >>>>>editfiles: >>>>> { /tmp/passwd >>>>> Backup "Off" >>>>> SplitOn ":" >>>>> ReplaceLinesMatchingField 1 >>>>> SetLine "test::::::" >>>>> AppendIfNoLineMatching "ThisLine" >>>>> } >>>> >>>>AFAICS, the ThisLine notation works only in a ForEachLineIn loop. >> >>Hmm, this didn't make a difference. Also, the documentation says: >>'If "ThisLine" is given as the argument, the current value of the line >>buffer is assumed.' >>The documentation of "ForEachLineIn" says: >>'The result is like using SetLine for each line in the file' >>And while the SetLine documentation says nothing about a line buffer >>(but ForEachLineIn doesn't either), what I gather from the above two >>snippets is that 'AppendIfNoLineMatching "ThisLine"' should do exactly >>what I expected. But it doesn't. >> >> >> You need to give a regexp to AppendIfNoLineMatching. Further, >> >> ReplaceLinesMatching requires either a ForEachLineIn loop or a SetLine. >> >>>>So please try: >>>> >>>> { /tmp/passwd >>>> Backup "Off" >>>> SplitOn ":" >>>> SetLine "test::::::" >>>> ReplaceLinesMatchingField 1 >>>> AppendIfNoLineMatching "test:.*" >>>> } >>> >>> >>>Changing it this way still doesn't replace an existing >>>"test:x:1:1::/tmp/:/bin/bash" line with the "test::::::" line. >>> >>>It doesn't seem to matter wether the ReplaceLinesMatchingField >>>instruction is given before or after SetLine. It doesn't do what the >>>documentation suggests in either case. >> >>I'm really out of wits on this problem. >> >>cu, >>sven >> >> >>_______________________________________________ >>Help-cfengine mailing list >>Help-cfengine@gnu.org >>http://lists.gnu.org/mailman/listinfo/help-cfengine > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Work: +47 22453272 Email: Mark.Burgess@iu.hio.no > Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > From MAILER-DAEMON Fri Sep 03 18:04:23 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3MAR-0001L8-H1 for mharc-help-cfengine@gnu.org; Fri, 03 Sep 2004 18:04:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3MAQ-0001Jw-K1 for help-cfengine@gnu.org; Fri, 03 Sep 2004 18:04:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3MAP-0001JF-W2 for help-cfengine@gnu.org; Fri, 03 Sep 2004 18:04:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3MAP-0001J5-SP for help-cfengine@gnu.org; Fri, 03 Sep 2004 18:04:21 -0400 Received: from [62.245.182.8] (helo=mx.leogic.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C3M4c-0002I3-HE for help-cfengine@gnu.org; Fri, 03 Sep 2004 17:58:22 -0400 Received: from [127.0.0.1] ([192.168.65.59]) (authenticated bits=0) by mx.leogic.com (8.12.11/8.12.10) with ESMTP id i83LwJgn000773 (version=TLSv1/SSLv3 cipher=IDEA-CBC-SHA bits=128 verify=NO); Fri, 3 Sep 2004 23:58:21 +0200 Message-ID: <4138E8F6.8030907@leogic.com> Date: Fri, 03 Sep 2004 23:58:14 +0200 From: Sven Mueller User-Agent: Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <4137096C.2060306@leogic.com> <20040902122541.GF2593@raven.inka.de> <4137278F.60806@leogic.com> <4138D032.4070201@leogic.com> <5402AD44-FDEA-11D8-846E-000A95C47858@intel.com> In-Reply-To: <5402AD44-FDEA-11D8-846E-000A95C47858@intel.com> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: ReplaceLinesMatchingField working at all? (was: Re: editfiles problem - revisited - Still nobody having an idea what goes wrong?) X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 22:04:22 -0000 Status: O Content-Length: 4469 Lines: 154 Tod Oace [u] wrote on 03/09/2004 22:46: > On Sep 3, 2004, at 13:12, Sven Mueller wrote: > > >>Still nobody having an idea of how to solve my problem? > > > How about something like this: > > { /etc/passwd > BeginGroupIfNoSuchLine "test::::::" > DeleteLinesMatching "^test:.*$" > Append "test::::::" > EndGroup > DefineClasses "restart_whatever" > } Hmm, that should indeed work. But it is still error-prone because the line which should be inserted (as replacement if needed) still needs to be repeated character for character. That could be avoided by setting one or more variables and using them instead. But setting 100 variables and then repeating 5 lines a hundred times isn't really effective either. The most effective way would of course be to list the lines that (might) need to be replaced in a file of their own, and using "ForEachLineIn" on that file, instead of using the "SetLine" directive. But that doesn't work either. *** As it seems, ReplaceLinesMatchingField seems not to work at all. *** I just tried that approach: cfagent.conf: ---- cut here ---- control: ActionSequence = ( editfiles ) editfiles: { /tmp/aliases ReplaceLinesMatchingField 1 ForEachLineIn "/tmp/newaliases" AppendIfNoLineMatching "ThisLine" EndLoop DefineClasses "edited" } alerts: edited:: "File was edited" ---- cut here ---- /tmp/newaliases: ---- cut here ---- user1:xx ---- cut here ---- /tmp/aliases before cfagent run: ---- cut here ---- user1:xxxx user2:xxxx ---- cut here ---- /tmp/aliases after cfagent run: ---- cut here ---- user1:xxxx user2:xxxx user1:xx ---- cut here ---- cu, sven >>In short my problem was that I _need_ to restart a program if I >>changed it's config file. But for various reasons, I have to avoid >>restarting it, if I didn't change it. >> >>The only way I have come up with is using a temporary file, and with >>various shellcommands I shouldn't even have available on the machine >>in question (diff among them). >> >>I am desperately looking for a solution which is maintainable even >>when (potentially) updating hundreds of lines in a file. >> >>Please also see my additions inserted between the quotes below: >> >> >>>Josef Wolf [u] wrote on 02/09/2004 14:25: >>> >>>>On Thu, Sep 02, 2004 at 01:52:12PM +0200, Sven Mueller wrote: >>>> >>>> >>>> >>>> >>>>>test:x:1:1::/tmp/:/bin/bash >>>>>test2:x:2:2::/tmp/:/bin/bash >>>>> >>>>>Here is what cfagent.conf looks like: >>>>> >>>>>control: >>>>> actionsequence = ( editfiles ) >>>>> >>>>>editfiles: >>>>> { /tmp/passwd >>>>> Backup "Off" >>>>> SplitOn ":" >>>>> ReplaceLinesMatchingField 1 >>>>> SetLine "test::::::" >>>>> AppendIfNoLineMatching "ThisLine" >>>>> } >>>> >>>>AFAICS, the ThisLine notation works only in a ForEachLineIn loop. >> >>Hmm, this didn't make a difference. Also, the documentation says: >>'If "ThisLine" is given as the argument, the current value of the line >>buffer is assumed.' >>The documentation of "ForEachLineIn" says: >>'The result is like using SetLine for each line in the file' >>And while the SetLine documentation says nothing about a line buffer >>(but ForEachLineIn doesn't either), what I gather from the above two >>snippets is that 'AppendIfNoLineMatching "ThisLine"' should do exactly >>what I expected. But it doesn't. >> >> >>>>You need to give a regexp to AppendIfNoLineMatching. Further, >>>>ReplaceLinesMatching requires either a ForEachLineIn loop or a >> >>SetLine. >> >>>>So please try: >>>> >>>> { /tmp/passwd >>>> Backup "Off" >>>> SplitOn ":" >>>> SetLine "test::::::" >>>> ReplaceLinesMatchingField 1 >>>> AppendIfNoLineMatching "test:.*" >>>> } >>> >>>Changing it this way still doesn't replace an existing >>>"test:x:1:1::/tmp/:/bin/bash" line with the "test::::::" line. >>>It doesn't seem to matter wether the ReplaceLinesMatchingField >>>instruction is given before or after SetLine. It doesn't do what the >>>documentation suggests in either case. >> >>I'm really out of wits on this problem. >> >>cu, >>sven >> >> >>_______________________________________________ >>Help-cfengine mailing list >>Help-cfengine@gnu.org >>http://lists.gnu.org/mailman/listinfo/help-cfengine >> From MAILER-DAEMON Fri Sep 03 18:36:16 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3MfI-0003zP-BN for mharc-help-cfengine@gnu.org; Fri, 03 Sep 2004 18:36:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3MfF-0003wU-QA for help-cfengine@gnu.org; Fri, 03 Sep 2004 18:36:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3MfD-0003s9-IC for help-cfengine@gnu.org; Fri, 03 Sep 2004 18:36:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3MfD-0003s3-FO for help-cfengine@gnu.org; Fri, 03 Sep 2004 18:36:11 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C3MZi-0007S3-QC for help-cfengine@gnu.org; Fri, 03 Sep 2004 18:30:31 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i83MUVoQ028146 for ; Sat, 4 Sep 2004 00:30:35 +0200 (MEST) Message-Id: <200409032230.i83MUVoQ028146@nexus.iu.hio.no> Date: Sat, 4 Sep 2004 00:30:31 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: help-cfengine@gnu.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Subject: ifconfig zombies X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 22:36:14 -0000 Status: O Content-Length: 581 Lines: 18 I had a moment of inspiration and discovered that the pipe that reads ipv6 addresses from ifconfig was incorrectly terminated at line 483 in src/nameinfo.c with fclose() rather than pclose(). I strongly suspect this is the reason for the zombies. Current snapshot patches this, or you can fix manually. M ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Fri Sep 03 19:29:33 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3NUr-0002bg-Fr for mharc-help-cfengine@gnu.org; Fri, 03 Sep 2004 19:29:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3NUp-0002ao-LT for help-cfengine@gnu.org; Fri, 03 Sep 2004 19:29:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3NUl-0002aP-QZ for help-cfengine@gnu.org; Fri, 03 Sep 2004 19:29:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3NUl-0002aF-Ma for help-cfengine@gnu.org; Fri, 03 Sep 2004 19:29:27 -0400 Received: from [152.157.64.30] (helo=nsd.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C3NP7-0007Tc-BX for help-cfengine@gnu.org; Fri, 03 Sep 2004 19:23:37 -0400 Received: from [10.2.9.13] (account ckacoroski HELO [10.2.9.13]) by nsd.org (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5264959 for help-cfengine@gnu.org; Fri, 03 Sep 2004 16:23:34 -0700 Message-ID: <4138FCF6.6070309@nsd.org> Date: Fri, 03 Sep 2004 16:23:34 -0700 From: Chris Kacoroski Organization: Northshore School District User-Agent: Mozilla Thunderbird 0.7.3 (Macintosh/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: cfrun strangeness X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ckacoroski@nsd.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 23:29:32 -0000 Status: O Content-Length: 321 Lines: 15 Hi, I have cfrun working except that the first time I run it on a client I get an authentication error. After that it runs fine. Any idea why. ski -- "When we try to pick out anything by itself, we find it connected to the entire universe" John Muir Chris "Ski" Kacoroski, ckacoroski@nsd.org, 425-489-6263 From MAILER-DAEMON Fri Sep 03 20:31:44 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3OT2-0004hq-IC for mharc-help-cfengine@gnu.org; Fri, 03 Sep 2004 20:31:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3OT0-0004fq-Ri for help-cfengine@gnu.org; Fri, 03 Sep 2004 20:31:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3OSz-0004eG-E9 for help-cfengine@gnu.org; Fri, 03 Sep 2004 20:31:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3OSz-0004e6-7r for help-cfengine@gnu.org; Fri, 03 Sep 2004 20:31:41 -0400 Received: from [192.149.105.121] (helo=sebastion.artisan.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C3ONi-0000S9-OW for help-cfengine@gnu.org; Fri, 03 Sep 2004 20:26:15 -0400 Received: from ypmaster.artisan.com (mailhost [172.16.2.1]) by sebastion.artisan.com (8.11.6+Sun/8.11.6/mailgateway) with ESMTP id i840OLg21205 for ; Fri, 3 Sep 2004 17:24:21 -0700 (PDT) Received: from halfdome.artisan.com (halfdome.artisan.com [172.16.110.35]) by ypmaster.artisan.com (8.9.2/8.9.2) with ESMTP id RAA08582 for ; Fri, 3 Sep 2004 17:26:11 -0700 (PDT) Received: from halfdome.artisan.com (localhost [127.0.0.1]) by halfdome.artisan.com (8.12.8/8.11.6) with ESMTP id i840QBjW007836 for ; Fri, 3 Sep 2004 17:26:11 -0700 Received: (from lyndon@localhost) by halfdome.artisan.com (8.12.8/8.12.8/Submit) id i840QB01007832; Fri, 3 Sep 2004 17:26:11 -0700 From: "Lyndon C. Lim" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16697.2979.457266.1561@gargle.gargle.HOWL> Date: Fri, 3 Sep 2004 17:26:11 -0700 To: help-cfengine@gnu.org References: <200409021334.i82DYXg27234@sebastion.artisan.com> X-Mailer: VM 7.18 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid Subject: Re: hostname's hyphen character brings inconsistency in cfengine X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2004 00:31:43 -0000 Status: O Content-Length: 2184 Lines: 68 Hi. I'd like to follow up on Guolin Cheng's observation. I have experienced similar difficulties, and I am unable to pin it down. My only conclusion is to completely avoid hyphens in host names. I'm using v2.1.8 Here is my configuration file: control: actionsequence = ( shellcommands ) domain = ( artisan.com ) addInstallable = ( Group1 Group2 ) # Don't think I need this group1 = ( l-eng-2447 ) group2 = ( l_eng_2447 ) ifElapsed = ( 0 ) shellcommands: l_eng_2447:: "/bin/echo l_eng_2447, host names with underbar." Group1:: "/bin/echo Group1, group: host names with hyphen." Group2:: "/bin/echo Group2, group: host names underbar." !Group1:: "/bin/echo !Group1, negated group: host names with hyphen." !Group2:: "/bin/echo !Group2, negated group: host names with underbar." Here are my results: [root@l-eng-2447 tmp]# cfagent --file /nfs/cad-root/tmp/cfagent.conf -q cfengine:l-eng-2447:/bin/echo l_eng: l_eng_2447, host names with underbar. cfengine:l-eng-2447:/bin/echo !Grou: !Group1, negated group: host names with hyphen. cfengine:l-eng-2447:/bin/echo !Grou: !Group2, negated group: host names with underbar. > Hyphens cannot be used in class names, just as they cannot be used in > variable names in any language I know of. Underscores can be used so you > must have a different problem. I am guessing that your class definition > is parsed after your rule to echo a string. > > This all works fine, it is used all the time for internal stuff. > M > > On 1 Sep, Guolin Cheng wrote: > > Hi, > > > > We got a problem to implement cfengine to hosts with hyphen > > character(s) in their names like "ops-test2". According to our tests, we > > can use either "ops-test2" or "ops_test2" in group|class definitions, or > > take advantage of group definitions in NIS netgroup map in cf.groups > > file. But if we directly use hostnames to work as class names in > > cf.main, we find that "ops-test2" class will fails, while "ops_test2" > > class works fine. -- Lyndon C. Lim; lyndon@artisan.com; 408.734.5600; 408.734.5050 (fax) Artisan Components; 141 Caspian Court; Sunnyvale, CA 94089-1013; USA From MAILER-DAEMON Fri Sep 03 20:39:46 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3Oao-0005wQ-EQ for mharc-help-cfengine@gnu.org; Fri, 03 Sep 2004 20:39:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3Oam-0005vw-S7 for help-cfengine@gnu.org; Fri, 03 Sep 2004 20:39:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3Oal-0005vk-Bn for help-cfengine@gnu.org; Fri, 03 Sep 2004 20:39:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3Oak-0005vM-VY for help-cfengine@gnu.org; Fri, 03 Sep 2004 20:39:43 -0400 Received: from [192.149.105.121] (helo=sebastion.artisan.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C3OUU-0001Wh-4h for help-cfengine@gnu.org; Fri, 03 Sep 2004 20:33:14 -0400 Received: from ypmaster.artisan.com (mailhost [172.16.2.1]) by sebastion.artisan.com (8.11.6+Sun/8.11.6/mailgateway) with ESMTP id i840VMg21447 for ; Fri, 3 Sep 2004 17:31:22 -0700 (PDT) Received: from halfdome.artisan.com (halfdome.artisan.com [172.16.110.35]) by ypmaster.artisan.com (8.9.2/8.9.2) with ESMTP id RAA09497 for ; Fri, 3 Sep 2004 17:33:12 -0700 (PDT) Received: from halfdome.artisan.com (localhost [127.0.0.1]) by halfdome.artisan.com (8.12.8/8.11.6) with ESMTP id i840XCjW008052 for ; Fri, 3 Sep 2004 17:33:12 -0700 Received: (from lyndon@localhost) by halfdome.artisan.com (8.12.8/8.12.8/Submit) id i840XCDN008048; Fri, 3 Sep 2004 17:33:12 -0700 From: "Lyndon C. Lim" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16697.3400.468322.475125@gargle.gargle.HOWL> Date: Fri, 3 Sep 2004 17:33:12 -0700 To: help-cfengine@gnu.org X-Mailer: VM 7.18 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid Subject: dual copy rules X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2004 00:39:45 -0000 Status: O Content-Length: 1556 Lines: 60 copy: $(templates)/ntp.conf dest=/etc/ntp.conf server=$(policy_host) type=checksum mode=644 owner=root group=root timestamps=preserve verify=true define=notify_ntpconf shellcommands: notify_ntpconf:: "/usr/bin/printf \"Installed /etc/ntp.conf\n\"" "/usr/bin/rdate -s ntp01.artisan.com" "/etc/init.d/ntpd restart" I have the rules above to update and restart NTP. I use the type=checksum construct to ensure that a local modification is caught and reverted. However, sometimes I might like to force an update w/o actually modifying the file to cause the checksum to differ. Is there any potential difficulty if I use two copy rules? $(templates)/ntp.conf dest=/etc/ntp.conf server=$(policy_host) type=checksum mode=644 owner=root group=root timestamps=preserve verify=true $(templates)/ntp.conf dest=/etc/ntp.conf server=$(policy_host) type=mtime mode=644 owner=root group=root timestamps=preserve verify=true This way, I could require the file is both exactly the same for checksum and timestamp. Could I cause some kind of loop or lock problem? -- Lyndon C. Lim; lyndon@artisan.com; 408.734.5600; 408.734.5050 (fax) Artisan Components; 141 Caspian Court; Sunnyvale, CA 94089-1013; USA From MAILER-DAEMON Fri Sep 03 22:38:16 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3QRU-0005Kz-DA for mharc-help-cfengine@gnu.org; Fri, 03 Sep 2004 22:38:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3QRT-0005Kj-Gf for help-cfengine@gnu.org; Fri, 03 Sep 2004 22:38:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3QRR-0005IW-QZ for help-cfengine@gnu.org; Fri, 03 Sep 2004 22:38:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3QRR-0005IT-Ma for help-cfengine@gnu.org; Fri, 03 Sep 2004 22:38:13 -0400 Received: from [156.56.111.197] (helo=smtp.gentoo.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C3QMB-00034J-NE for help-cfengine@gnu.org; Fri, 03 Sep 2004 22:32:47 -0400 Received: from 12.40.38.196.wireless.bbwi.net ([12.40.38.196] helo=10.3.2.134) by smtp.gentoo.org with asmtp (Exim 4.34) id 1C3QMA-0004oz-5T; Sat, 04 Sep 2004 02:32:46 +0000 From: Lance Albertson To: Mark.Burgess@iu.hio.no In-Reply-To: <200409032230.i83MUVoQ028146@nexus.iu.hio.no> References: <200409032230.i83MUVoQ028146@nexus.iu.hio.no> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Y7wBlYxEV2KGqAJIxfU0" Message-Id: <1094265331.26839.6.camel@pursuit> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 03 Sep 2004 21:35:32 -0500 Cc: help-cfengine@gnu.org Subject: Re: ifconfig zombies X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2004 02:38:15 -0000 Status: O Content-Length: 1186 Lines: 44 --=-Y7wBlYxEV2KGqAJIxfU0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2004-09-03 at 17:30, Mark.Burgess@iu.hio.no wrote: > I had a moment of inspiration and discovered that the pipe > that reads ipv6 addresses from ifconfig was incorrectly > terminated at line 483 in src/nameinfo.c with=20 > fclose() rather than pclose(). >=20 > I strongly suspect this is the reason for the zombies. > Current snapshot patches this, or you can fix manually. Nice! Thanks for finally catching that! Sorry I didn't have time to contribute to more debugging though.=20 Cheers!=20 --=20 Lance Albertson Gentoo Infrastructure --- GPG Public Key: Key fingerprint: 0423 92F3 544A 1282 5AB1 4D07 416F A15D 27F4 B742 ramereth/irc.freenode.net --=-Y7wBlYxEV2KGqAJIxfU0 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBOSnzQW+hXSf0t0IRAgP6AJ92D4RMK+fIYA12ZWA836u/tpSvZQCbB9g0 zwUKsxRBjiuwm/3KQ+zdU68= =YjpF -----END PGP SIGNATURE----- --=-Y7wBlYxEV2KGqAJIxfU0-- From MAILER-DAEMON Sat Sep 04 01:51:47 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3TSl-0007QN-5b for mharc-help-cfengine@gnu.org; Sat, 04 Sep 2004 01:51:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3TSk-0007Q2-1j for help-cfengine@gnu.org; Sat, 04 Sep 2004 01:51:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3TSj-0007Pq-8t for help-cfengine@gnu.org; Sat, 04 Sep 2004 01:51:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3TSj-0007PZ-4N for help-cfengine@gnu.org; Sat, 04 Sep 2004 01:51:45 -0400 Received: from [192.149.105.121] (helo=sebastion.artisan.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C3TNG-0008MS-UU for help-cfengine@gnu.org; Sat, 04 Sep 2004 01:46:07 -0400 Received: from ypmaster.artisan.com (mailhost [172.16.2.1]) by sebastion.artisan.com (8.11.6+Sun/8.11.6/mailgateway) with ESMTP id i845iFg01347 for ; Fri, 3 Sep 2004 22:44:15 -0700 (PDT) Received: from l-eng-2447.artisan.com (l-eng-2447.artisan.com [172.16.11.161]) by ypmaster.artisan.com (8.9.2/8.9.2) with ESMTP id WAA03422 for ; Fri, 3 Sep 2004 22:46:05 -0700 (PDT) Received: from l-eng-2447.artisan.com (localhost [127.0.0.1]) by l-eng-2447.artisan.com (8.12.8/8.11.6) with ESMTP id i845k5Nt015383 for ; Fri, 3 Sep 2004 22:46:05 -0700 Received: (from lyndon@localhost) by l-eng-2447.artisan.com (8.12.8/8.12.8/Submit) id i845k48b015381 for help-cfengine@gnu.org; Fri, 3 Sep 2004 22:46:04 -0700 Date: Fri, 3 Sep 2004 22:46:04 -0700 From: "Lyndon C. Lim" Message-Id: <200409040546.i845k48b015381@l-eng-2447.artisan.com> To: help-cfengine@gnu.org Subject: Re: hostname's hyphen character brings inconsistency in cfengine X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2004 05:51:46 -0000 Status: O Content-Length: 255 Lines: 9 I fixed a typo in my configuration file, replacing the group1/group2 class definitions. No difference. :( -- Lyndon C. Lim; lyndon@artisan.com; 408.734.5600; 408.734.5050 (fax) Artisan Components; 141 Caspian Court; Sunnyvale, CA 94089-1013; USA From MAILER-DAEMON Sat Sep 04 11:37:04 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3cb9-0007tF-O3 for mharc-help-cfengine@gnu.org; Sat, 04 Sep 2004 11:37:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3cb7-0007sd-JN for help-cfengine@gnu.org; Sat, 04 Sep 2004 11:37:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3cb6-0007sE-Hs for help-cfengine@gnu.org; Sat, 04 Sep 2004 11:37:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3cb6-0007sB-Eh for help-cfengine@gnu.org; Sat, 04 Sep 2004 11:37:00 -0400 Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C3cVk-0005pl-J8 for help-cfengine@gnu.org; Sat, 04 Sep 2004 11:31:28 -0400 Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by mailwasher-b.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i84FVQ6U009813 for ; Sat, 4 Sep 2004 09:31:26 -0600 Received: from webmail.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11/8.12.11) with ESMTP id i84FVQ5G000458; Sat, 4 Sep 2004 09:31:26 -0600 Received: from 128.165.7.48 (SquirrelMail authenticated user ebrown); by webmail.lanl.gov with HTTP; Sat, 4 Sep 2004 09:31:26 -0600 (MDT) Message-ID: <33698.128.165.7.48.1094311886.squirrel@128.165.7.48> In-Reply-To: <16697.2979.457266.1561@gargle.gargle.HOWL> References: <200409021334.i82DYXg27234@sebastion.artisan.com> <16697.2979.457266.1561@gargle.gargle.HOWL> Date: Sat, 4 Sep 2004 09:31:26 -0600 (MDT) From: ebrown@lanl.gov To: "Lyndon C. Lim" User-Agent: SquirrelMail/1.4.3-1.lanl X-Mailer: SquirrelMail/1.4.3-1.lanl MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Scanned-By: MIMEDefang 2.35 Cc: help-cfengine@gnu.org Subject: Re: hostname's hyphen character brings inconsistency in cfengine X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2004 15:37:02 -0000 Status: O Content-Length: 3160 Lines: 110 I think there is some confusion here about the difference between groups/classes and variables. Here you have defined 2 variables, group1 and group2. They are not the same as classes or groups, which aren't defined in 'control:' sections, but rather in, well, 'classes:' or 'groups:' (synonyms). Hostnames with hyphens can be used as rvalues in class/group definitions. Try this- groups: group1 = ( l-eng-2447 ) shellcommands: group1:: "/bin/echo good to go" or, you could simply do this, in this case- shellcommands: l_eng_2447:: "/bin/echo that would be me too" but this would not work- shellcommands: l-eng-2447:: "/bin/echo wont get here, illegal classname" -Ed > > Hi. I'd like to follow up on Guolin Cheng's observation. > I have experienced similar difficulties, and I am unable > to pin it down. My only conclusion is to completely avoid > hyphens in host names. I'm using v2.1.8 > > > Here is my configuration file: > > control: > actionsequence = ( shellcommands ) > domain = ( artisan.com ) > addInstallable = ( Group1 Group2 ) # Don't think I need this > group1 = ( l-eng-2447 ) > group2 = ( l_eng_2447 ) > ifElapsed = ( 0 ) > > shellcommands: > > l_eng_2447:: > "/bin/echo l_eng_2447, host names with underbar." > > Group1:: > "/bin/echo Group1, group: host names with hyphen." > > Group2:: > "/bin/echo Group2, group: host names underbar." > > !Group1:: > "/bin/echo !Group1, negated group: host names with hyphen." > > !Group2:: > "/bin/echo !Group2, negated group: host names with underbar." > > > Here are my results: > > [root@l-eng-2447 tmp]# cfagent --file /nfs/cad-root/tmp/cfagent.conf -q > cfengine:l-eng-2447:/bin/echo l_eng: l_eng_2447, host names with underbar. > cfengine:l-eng-2447:/bin/echo !Grou: !Group1, negated group: host names > with hyphen. > cfengine:l-eng-2447:/bin/echo !Grou: !Group2, negated group: host names > with underbar. > > >> Hyphens cannot be used in class names, just as they cannot be used in >> variable names in any language I know of. Underscores can be used so you >> must have a different problem. I am guessing that your class definition >> is parsed after your rule to echo a string. >> >> This all works fine, it is used all the time for internal stuff. >> M >> >> On 1 Sep, Guolin Cheng wrote: >> > Hi, >> > >> > We got a problem to implement cfengine to hosts with hyphen >> > character(s) in their names like "ops-test2". According to our tests, >> we >> > can use either "ops-test2" or "ops_test2" in group|class definitions, >> or >> > take advantage of group definitions in NIS netgroup map in cf.groups >> > file. But if we directly use hostnames to work as class names in >> > cf.main, we find that "ops-test2" class will fails, while "ops_test2" >> > class works fine. > > > -- > Lyndon C. Lim; lyndon@artisan.com; 408.734.5600; 408.734.5050 (fax) > Artisan Components; 141 Caspian Court; Sunnyvale, CA 94089-1013; USA > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > From MAILER-DAEMON Sun Sep 05 01:11:36 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C3pJQ-0006qN-1f for mharc-help-cfengine@gnu.org; Sun, 05 Sep 2004 01:11:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3pJO-0006oQ-BP for help-cfengine@gnu.org; Sun, 05 Sep 2004 01:11:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3pJN-0006nW-J6 for help-cfengine@gnu.org; Sun, 05 Sep 2004 01:11:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3pJN-0006nJ-EJ for help-cfengine@gnu.org; Sun, 05 Sep 2004 01:11:33 -0400 Received: from [192.149.105.121] (helo=sebastion.artisan.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C3pEA-0006qs-Tv for help-cfengine@gnu.org; Sun, 05 Sep 2004 01:06:11 -0400 Received: from ypmaster.artisan.com (mailhost [172.16.2.1]) by sebastion.artisan.com (8.11.6+Sun/8.11.6/mailgateway) with ESMTP id i8554Gg10478 for ; Sat, 4 Sep 2004 22:04:17 -0700 (PDT) Received: from halfdome.artisan.com (halfdome.artisan.com [172.16.110.35]) by ypmaster.artisan.com (8.9.2/8.9.2) with ESMTP id WAA26952 for ; Sat, 4 Sep 2004 22:06:07 -0700 (PDT) Received: from halfdome.artisan.com (localhost [127.0.0.1]) by halfdome.artisan.com (8.12.8/8.11.6) with ESMTP id i85567jW027186 for ; Sat, 4 Sep 2004 22:06:07 -0700 Received: (from lyndon@localhost) by halfdome.artisan.com (8.12.8/8.12.8/Submit) id i85567ux027176; Sat, 4 Sep 2004 22:06:07 -0700 From: "Lyndon C. Lim" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16698.40639.52845.425406@gargle.gargle.HOWL> Date: Sat, 4 Sep 2004 22:06:07 -0700 To: help-cfengine@gnu.org References: <200409021334.i82DYXg27234@sebastion.artisan.com> <16697.2979.457266.1561@gargle.gargle.HOWL> <33698.128.165.7.48.1094311886.squirrel@128.165.7.48> X-Mailer: VM 7.18 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid Subject: Re: hostname's hyphen character brings inconsistency in cfengine X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Sep 2004 05:11:34 -0000 Status: O Content-Length: 721 Lines: 21 ebrown@lanl.gov writes: > I think there is some confusion here about the difference between > groups/classes and variables. Here you have defined 2 variables, group1 > and group2. They are not the same as classes or groups, which aren't > defined in 'control:' sections, but rather in, well, 'classes:' or > 'groups:' (synonyms). Ed is right, I keep getting tripped up with variables versus classes. Thanks for helping me understand them better. BTW, I really appreciate that people spend the time to answer this mailing list, even for questions by newbies like me. -- Lyndon C. Lim; lyndon@artisan.com; 408.734.5600; 408.734.5050 (fax) Artisan Components; 141 Caspian Court; Sunnyvale, CA 94089-1013; USA From MAILER-DAEMON Mon Sep 06 01:47:06 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C4CLK-0003KX-D4 for mharc-help-cfengine@gnu.org; Mon, 06 Sep 2004 01:47:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4CLH-0003K5-W4 for help-cfengine@gnu.org; Mon, 06 Sep 2004 01:47:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4CLG-0003Jm-KR for help-cfengine@gnu.org; Mon, 06 Sep 2004 01:47:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4CLG-0003Jj-Gx for help-cfengine@gnu.org; Mon, 06 Sep 2004 01:47:02 -0400 Received: from [202.4.236.33] (helo=support.anchor.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C4CFB-0001Fv-5Q for help-cfengine@gnu.org; Mon, 06 Sep 2004 01:40:46 -0400 Received: from willow.home.spacepants.org (willow.bridge.anchor.net.au [10.108.62.188]) by support.anchor.net.au (Postfix) with ESMTP id 04FEB2BA52 for ; Mon, 6 Sep 2004 15:40:42 +1000 (EST) Received: by willow.home.spacepants.org (Postfix, from userid 1000) id E13F2CB9C6; Mon, 6 Sep 2004 15:40:39 +1000 (EST) Date: Mon, 6 Sep 2004 15:40:39 +1000 From: Jamie Wilkinson To: help-cfengine@gnu.org Message-ID: <20040906054039.GJ2670@spacepants.org> Mail-Followup-To: help-cfengine@gnu.org References: <4137096C.2060306@leogic.com> <20040902122541.GF2593@raven.inka.de> <4137278F.60806@leogic.com> <4138D032.4070201@leogic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4138D032.4070201@leogic.com> X-Message-Flag: Magic 8-Ball says Outlook Not Good. X-Mailer: beefmail v0.0 Reply-By: Sat, 07 Aug 2004 13:41:59 +1000 X-No-CC: Please respect the setting of my Mail-Followup-To header User-Agent: Mutt/1.5.6+20040803i Subject: Re: editfiles problem - revisited - Still nobody having an idea what goes wrong? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2004 05:47:04 -0000 Status: O Content-Length: 844 Lines: 35 This one time, at band camp, Sven Mueller wrote: >In short my problem was that I _need_ to restart a program if I changed >it's config file. But for various reasons, I have to avoid restarting >it, if I didn't change it. I'm not sure what your problem is. editfiles doesn't actually change the file if there are no changes to make, and doesn't define any of the DefineClasses either. If your editfiles script is convergent, then it will just work. editfiles: { /etc/foo BeginGroupIfNoLineMatching '^foo:.*' Append 'foo:' EndGroup ResetSearch '1' LocateLineMatching '^foo:.*' BeginGroupIfNoMatch '^foo:bar:quux' ReplaceLineWith 'foo:bar:quux' EndGroup DefineClasses 'foo_restart' } shellcommands: foo_restart:: "/etc/init.d/foo restart" useshell=dumb -- jaq@spacepants.org http://spacepants.org/jaq.gpg From MAILER-DAEMON Mon Sep 06 04:38:16 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C4F0y-0001QO-MS for mharc-help-cfengine@gnu.org; Mon, 06 Sep 2004 04:38:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4F0w-0001QC-SB for help-cfengine@gnu.org; Mon, 06 Sep 2004 04:38:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4F0u-0001Q0-Ob for help-cfengine@gnu.org; Mon, 06 Sep 2004 04:38:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4F0u-0001Px-FY for help-cfengine@gnu.org; Mon, 06 Sep 2004 04:38:12 -0400 Received: from [212.103.160.60] (helo=smtp.tedata.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C4EvI-0002Vq-0C for help-cfengine@gnu.org; Mon, 06 Sep 2004 04:32:24 -0400 Received: (qmail 985 invoked from network); 6 Sep 2004 08:32:05 -0000 Received: from eldesoky.tedata.net (HELO one.admin) ([212.103.165.86]) (envelope-sender ) by smtp.tedata.net (qmail-ldap-1.03) with SMTP for ; 6 Sep 2004 08:32:05 -0000 From: Mohamed Eldesoky To: help-cfengine@gnu.org Date: Mon, 6 Sep 2004 11:31:56 +0300 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <200409061132.04781.m.eldesoky@tedata.net> Subject: cfengine and RHEL U3 ? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: m.eldesoky@tedata.net List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2004 08:38:15 -0000 Status: O Content-Length: 376 Lines: 19 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anyone here using cfengine along with RHEL U3 ?? =2D --=20 Mohamed Eldesoky Systems Engineer RedHat Certified Engineer TE Data =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBPCCD2FHsOWMJBKMRAqRtAKCDTCGz2X/FW2a/Mise72FbNRuXbQCgwc0s 4/0L7T7RUuaFZiJv6d1ZLCo=3D =3DlPHL =2D----END PGP SIGNATURE----- From MAILER-DAEMON Mon Sep 06 05:15:19 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C4Fao-0004HX-2F for mharc-help-cfengine@gnu.org; Mon, 06 Sep 2004 05:15:18 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4Fam-0004H6-6j for help-cfengine@gnu.org; Mon, 06 Sep 2004 05:15:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4Fae-0004Dx-RH for help-cfengine@gnu.org; Mon, 06 Sep 2004 05:15:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4Fae-0004Du-Nn for help-cfengine@gnu.org; Mon, 06 Sep 2004 05:15:08 -0400 Received: from [195.37.215.43] (helo=mail-gw-1.br-online.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C4FVA-0008TX-9E for help-cfengine@gnu.org; Mon, 06 Sep 2004 05:09:28 -0400 Received: from localhost (localhost [127.0.0.1]) by mail-gw-1.br-online.de (Postfix) with ESMTP id 96E883855CF for ; Mon, 6 Sep 2004 11:09:26 +0200 (CEST) Received: from mail-gw-1.br-online.de ([127.0.0.1]) by localhost (mail-gw-1 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14458-04 for ; Mon, 6 Sep 2004 11:09:25 +0200 (CEST) Received: from mail.br-online.de (nuts-57.br-online.de [195.37.215.57]) by mail-gw-1.br-online.de (Postfix) with ESMTP id A9D7F3855B5 for ; Mon, 6 Sep 2004 11:09:25 +0200 (CEST) Received: from localhorst.br.de (localhorst.br.de [10.65.3.180]) by mail.br-online.de (Postfix) with ESMTP id CAD9320B421 for ; Mon, 6 Sep 2004 11:08:38 +0200 (CEST) Received: from localhorst.br.de (localhost.localdomain [127.0.0.1]) by localhorst.br.de (8.12.11/8.12.10) with ESMTP id i8699DqR031625 for ; Mon, 6 Sep 2004 11:09:13 +0200 Received: (from angenenr@localhost) by localhorst.br.de (8.12.11/8.12.11/Submit) id i8699D7x031624 for help-cfengine@gnu.org; Mon, 6 Sep 2004 11:09:13 +0200 X-Authentication-Warning: localhorst.br.de: angenenr set sender to ra+cfengine@br-online.de using -f Date: Mon, 6 Sep 2004 11:09:12 +0200 From: Ralph Angenendt To: help-cfengine@gnu.org Message-ID: <20040906090912.GB16057@br-online.de> Mail-Followup-To: help-cfengine@gnu.org References: <200409061132.04781.m.eldesoky@tedata.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ylS2wUBXLOxYXZFQ" Content-Disposition: inline In-Reply-To: <200409061132.04781.m.eldesoky@tedata.net> X-Message-Flag: You are using an insecure mail reader which can be used to spread viruses. User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at br-online.de Subject: Re: cfengine and RHEL U3 ? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2004 09:15:16 -0000 Status: O Content-Length: 971 Lines: 40 --ylS2wUBXLOxYXZFQ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Mohamed Eldesoky wrote: > Anyone here using cfengine along with RHEL U3 ?? Is that a meta question? :) Yes, we do (no, we don't, we use CentOS 3.1, which should be fractal enough to RHEL U3). Ralph --=20 Ralph Angenendt......ra@br-online.de | .."Text processing has made it possi= ble Bayerischer Rundfunk...HA-Multimedia | ....to right-justify any idea, even = one Rundfunkplatz 1........80300 M=C3=BCnchen | .which cannot be justified on a= ny other Tl:089.5900.16023..Fx:089.5900.16240 | ..........grounds." -- J. Finnegan, = USC --ylS2wUBXLOxYXZFQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBPCk3jB6yu/0L7eURAsPxAJ4qFNimRJS5+E0iHCwmoSs0tTfG/QCdEt1p ULYxi/p5mhOreoE4HFF0rsg= =xTW+ -----END PGP SIGNATURE----- --ylS2wUBXLOxYXZFQ-- From MAILER-DAEMON Mon Sep 06 06:57:39 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C4HBq-0005lI-TR for mharc-help-cfengine@gnu.org; Mon, 06 Sep 2004 06:57:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4HBp-0005lC-2g for help-cfengine@gnu.org; Mon, 06 Sep 2004 06:57:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4HBn-0005l0-D4 for help-cfengine@gnu.org; Mon, 06 Sep 2004 06:57:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4HBn-0005kw-5D for help-cfengine@gnu.org; Mon, 06 Sep 2004 06:57:35 -0400 Received: from [62.245.182.8] (helo=mx.leogic.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C4H6K-0006jU-R9 for help-cfengine@gnu.org; Mon, 06 Sep 2004 06:51:57 -0400 Received: from [127.0.0.1] ([192.168.65.59]) (authenticated bits=0) by mx.leogic.com (8.12.11/8.12.10) with ESMTP id i86ApjuV010357 (version=TLSv1/SSLv3 cipher=IDEA-CBC-SHA bits=128 verify=NO); Mon, 6 Sep 2004 12:51:47 +0200 Message-ID: <413C413B.2030507@leogic.com> Date: Mon, 06 Sep 2004 12:51:39 +0200 From: Sven Mueller User-Agent: Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <4137096C.2060306@leogic.com> <20040902122541.GF2593@raven.inka.de> <4137278F.60806@leogic.com> <4138D032.4070201@leogic.com> <20040906054039.GJ2670@spacepants.org> In-Reply-To: <20040906054039.GJ2670@spacepants.org> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Jamie Wilkinson Subject: Re: editfiles problem - revisited - Still nobody having an idea what goes wrong? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2004 10:57:37 -0000 Status: O Content-Length: 952 Lines: 27 Jamie Wilkinson [u] wrote on 06/09/2004 07:40: > This one time, at band camp, Sven Mueller wrote: > >>In short my problem was that I _need_ to restart a program if I changed >>it's config file. But for various reasons, I have to avoid restarting >>it, if I didn't change it. > > I'm not sure what your problem is. editfiles doesn't actually change the > file if there are no changes to make, and doesn't define any of the > DefineClasses either. > > If your editfiles script is convergent, then it will just work. Hmm, looks as if you are right here. So even a DeleteLinesMatching "root:.*" followed by "AppendIfNoSuchLine "root:abc" won't define anything on if root:abc already exists. Fine. Now the only problem left is that cfengine doesn't behave as advertised with the ReplaceLinesMatchingField directive. Not behaving the way the manual suggests isn't good, even if there are Ways to work around that particular problem. cu, sven From MAILER-DAEMON Mon Sep 06 20:58:14 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C4UJK-0002B9-MA for mharc-help-cfengine@gnu.org; Mon, 06 Sep 2004 20:58:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4UJH-0002B3-IY for help-cfengine@gnu.org; Mon, 06 Sep 2004 20:58:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4UJG-0002Ar-Qq for help-cfengine@gnu.org; Mon, 06 Sep 2004 20:58:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4UJG-0002Ao-P2 for help-cfengine@gnu.org; Mon, 06 Sep 2004 20:58:10 -0400 Received: from [202.4.236.33] (helo=support.anchor.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C4UE0-0006QI-9s for help-cfengine@gnu.org; Mon, 06 Sep 2004 20:52:44 -0400 Received: from willow.home.spacepants.org (willow.bridge.anchor.net.au [10.108.62.188]) by support.anchor.net.au (Postfix) with ESMTP id B3B0A2BA52 for ; Tue, 7 Sep 2004 10:52:42 +1000 (EST) Received: by willow.home.spacepants.org (Postfix, from userid 1000) id 83CFCCB9C6; Tue, 7 Sep 2004 10:52:42 +1000 (EST) Date: Tue, 7 Sep 2004 10:52:42 +1000 From: Jamie Wilkinson To: help-cfengine@gnu.org Message-ID: <20040907005242.GD10697@spacepants.org> Mail-Followup-To: help-cfengine@gnu.org References: <200409061132.04781.m.eldesoky@tedata.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409061132.04781.m.eldesoky@tedata.net> X-Message-Flag: Magic 8-Ball says Outlook Not Good. X-Mailer: beefmail v0.0 Reply-By: Sun, 08 Aug 2004 10:22:10 +1000 X-No-CC: Please respect the setting of my Mail-Followup-To header User-Agent: Mutt/1.5.6+20040803i Subject: Re: cfengine and RHEL U3 ? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2004 00:58:11 -0000 Status: O Content-Length: 258 Lines: 9 This one time, at band camp, Mohamed Eldesoky wrote: >Anyone here using cfengine along with RHEL U3 ?? Yep; Dag Wieer's packages from http://dag.wieers.com/packages/cfengine/ -- jaq@spacepants.org http://spacepants.org/jaq.gpg From MAILER-DAEMON Tue Sep 07 07:24:22 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C4e5G-0002Uc-Ey for mharc-help-cfengine@gnu.org; Tue, 07 Sep 2004 07:24:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4e5E-0002TD-5U for help-cfengine@gnu.org; Tue, 07 Sep 2004 07:24:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4e5A-0002Sf-Ob for help-cfengine@gnu.org; Tue, 07 Sep 2004 07:24:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4e5A-0002SV-M3 for help-cfengine@gnu.org; Tue, 07 Sep 2004 07:24:16 -0400 Received: from [212.103.160.60] (helo=smtp.tedata.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C4dzr-0003gr-Dt for help-cfengine@gnu.org; Tue, 07 Sep 2004 07:18:47 -0400 Received: (qmail 16270 invoked from network); 7 Sep 2004 11:15:45 -0000 Received: from eldesoky.tedata.net (HELO one.admin) ([212.103.165.86]) (envelope-sender ) by smtp.tedata.net (qmail-ldap-1.03) with SMTP for ; 7 Sep 2004 11:15:45 -0000 From: Mohamed Eldesoky To: help-cfengine@gnu.org Date: Tue, 7 Sep 2004 14:15:42 +0300 User-Agent: KMail/1.6.2 References: <200409061132.04781.m.eldesoky@tedata.net> <20040907005242.GD10697@spacepants.org> In-Reply-To: <20040907005242.GD10697@spacepants.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="windows-1256" Content-Transfer-Encoding: quoted-printable Message-Id: <200409071415.44748.m.eldesoky@tedata.net> Subject: Re: cfengine and RHEL U3 ? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: m.eldesoky@tedata.net List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2004 11:24:20 -0000 Status: O Content-Length: 614 Lines: 26 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 07 September 2004 3:52 am, Jamie Wilkinson wrote: > This one time, at band camp, Mohamed Eldesoky wrote: > >Anyone here using cfengine along with RHEL U3 ?? > > Yep; Dag Wieer's packages from http://dag.wieers.com/packages/cfengine/ ahh, ok ok. Misleading question, so sorry =2D --=20 Mohamed Eldesoky Systems Engineer RedHat Certified Engineer TE Data =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBPZhg2FHsOWMJBKMRAmALAJ9YMAj0nlDrLm0k6UgbNpbJsYuBewCcCzrj xYFBH6OrYMRNEZJPhQy5Fn0=3D =3DK0tg =2D----END PGP SIGNATURE----- From MAILER-DAEMON Tue Sep 07 10:45:32 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C4hDw-0002cg-8Q for mharc-help-cfengine@gnu.org; Tue, 07 Sep 2004 10:45:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4hDu-0002cJ-SP for help-cfengine@gnu.org; Tue, 07 Sep 2004 10:45:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4hDt-0002c7-CH for help-cfengine@gnu.org; Tue, 07 Sep 2004 10:45:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4hDt-0002c4-AH for help-cfengine@gnu.org; Tue, 07 Sep 2004 10:45:29 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C4h8X-0002sB-J4 for help-cfengine@gnu.org; Tue, 07 Sep 2004 10:39:57 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i87EdpMK016671; Tue, 7 Sep 2004 09:39:51 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: Sven Mueller , help-cfengine@gnu.org Date: Tue, 7 Sep 2004 09:39:50 -0500 User-Agent: KMail/1.5.4 References: <4137096C.2060306@leogic.com> <20040906054039.GJ2670@spacepants.org> <413C413B.2030507@leogic.com> In-Reply-To: <413C413B.2030507@leogic.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409070939.50960.chip@trdlnk.com> Cc: Jamie Wilkinson Subject: Re: editfiles problem - revisited - Still nobody having an idea what goes wrong? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2004 14:45:31 -0000 Status: O Content-Length: 979 Lines: 31 On Monday 06 September 2004 05:51, Sven Mueller wrote: > Jamie Wilkinson [u] wrote on 06/09/2004 07:40: > > If your editfiles script is convergent, then it will just work. > > Hmm, looks as if you are right here. So even a > DeleteLinesMatching "root:.*" followed by "AppendIfNoSuchLine "root:abc" > won't define anything on if root:abc already exists. Fine. > > Now the only problem left is that cfengine doesn't behave as advertised > with the ReplaceLinesMatchingField directive. Not behaving the way the > manual suggests isn't good, even if there are Ways to work around that > particular problem. I've had similar problems since 2.1.0 when editing crontabs; the ReplaceLinesMatchingField simply refuses to fire. I ended up just deleting the matching lines and then appending them; the only problem is that this is only convergent if nobody else ever edits the file :-) -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Wed Sep 08 15:10:06 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C57pW-0000Za-2V for mharc-help-cfengine@gnu.org; Wed, 08 Sep 2004 15:10:06 -0400 Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!uio.no!quimby.gnus.org!not-for-mail From: "tuningchip turbo gti audi conversao gasolina alcool " Newsgroups: gnu.cfengine.help Date: Wed, 8 Sep 2004 15:56:24 -0300 Organization: chip tuning arrancadas pegas rachas nfsu sexo gratis Sender: tuningchip turbo gti audi conversao gasolina alcool Message-ID: NNTP-Posting-Host: 200165006103.user.veloxzone.com.br X-Trace: quimby.gnus.org 1094669764 5864 200.165.6.103 (8 Sep 2004 18:56:04 GMT) X-Complaints-To: usenet@quimby.gnus.org NNTP-Posting-Date: Wed, 8 Sep 2004 18:56:04 +0000 (UTC) X-Priority: 3 X-Library: Indy 9.00.10 Xref: shelby.stanford.edu gnu.cfengine.help:6128 To: help-cfengine@gnu.org Subject: remapeamento gasolina alcool chip =?iso-8859-1?q?pre=E7o?= X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: tuningchip@conversao.alcool.chiptuning List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2004 19:10:04 -0000 Status: O Content-Length: 544 Lines: 21 Chip personalizado para carros originais, turbo e aspirados. Conversão de veiculos de gasolina para alcool com ganho de potencia e torque!!! Chip de potencia para a gasolina , ganhe 20% a mais de potencia e torque no seu carro!!! Alguns exemplos: Original chipado gol 1.0 turbo 112 cv 155 cv marea turbo 182 cv 243 cv audi a3 t 150 cv 210 cv audi a3 t 180 cv 220 cv http://www.tuningchip.com.br/?id=9 From MAILER-DAEMON Wed Sep 08 16:02:49 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C58eX-0006Xz-Hd for mharc-help-cfengine@gnu.org; Wed, 08 Sep 2004 16:02:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C58eV-0006Xr-79 for help-cfengine@gnu.org; Wed, 08 Sep 2004 16:02:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C58eT-0006Xe-JB for help-cfengine@gnu.org; Wed, 08 Sep 2004 16:02:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C58eT-0006Xb-H0 for help-cfengine@gnu.org; Wed, 08 Sep 2004 16:02:45 -0400 Received: from [128.249.42.192] (helo=silver.hgsc.bcm.tmc.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C58Yj-0004tJ-QV for help-cfengine@gnu.org; Wed, 08 Sep 2004 15:56:50 -0400 Received: from technetium.hgsc.bcm.tmc.edu (technetium.hgsc.bcm.tmc.edu [128.249.42.166]) by silver.hgsc.bcm.tmc.edu (8.12.9/8.12.9) with ESMTP id i88Juim0006469 for ; Wed, 8 Sep 2004 14:56:44 -0500 (CDT) Received: from localhost (adunn@localhost) by technetium.hgsc.bcm.tmc.edu (8.12.9/8.12.9/Submit) with ESMTP id i88JuhKq028040 for ; Wed, 8 Sep 2004 14:56:43 -0500 (CDT) X-Authentication-Warning: technetium.hgsc.bcm.tmc.edu: adunn owned process doing -bs Date: Wed, 8 Sep 2004 14:56:43 -0500 (CDT) From: "Adam M. Dunn" To: help-cfengine@gnu.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Recursion Problem?? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2004 20:02:47 -0000 Status: O Content-Length: 1078 Lines: 24 Anyone, I'm running into a problem with the recursion option in a copy command. For example, using the default model of copying the updated configs from: server:/var/cfengine/masterfiles --> client:/var/cfengine/inputs just as an example, and setting a recursion to r=0, nothing copies. However, if I keep it at r=1, or r=inf, then everything copies, but I don't want that. Basically I just want to copy only single files from a source directory to the client and ignore any subdirectories, but it's not letting me. Is this common behavior, or am I doing something wrong? Thanks, Adam From MAILER-DAEMON Wed Sep 08 17:15:43 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C59n4-0007Co-OH for mharc-help-cfengine@gnu.org; Wed, 08 Sep 2004 17:15:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C59n2-0007Bw-Kx for help-cfengine@gnu.org; Wed, 08 Sep 2004 17:15:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C59mw-0007BW-Gt for help-cfengine@gnu.org; Wed, 08 Sep 2004 17:15:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C59mw-0007BT-E6 for help-cfengine@gnu.org; Wed, 08 Sep 2004 17:15:34 -0400 Received: from [130.164.141.23] (helo=mail.natinst.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C59hb-0001MT-WC for help-cfengine@gnu.org; Wed, 08 Sep 2004 17:10:04 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.natinst.com (Postfix) with ESMTP id 870EB473DF; Wed, 8 Sep 2004 16:09:55 -0500 (CDT) Received: from draconix.natinst.com (draconix.natinst.com [10.0.7.222]) by mail.natinst.com (Postfix) with ESMTP id 1EEEA47478; Wed, 8 Sep 2004 16:09:02 -0500 (CDT) Received: by draconix.natinst.com (Postfix, from userid 1631) id B8534229EC; Wed, 8 Sep 2004 16:09:01 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by draconix.natinst.com (Postfix) with ESMTP id AD7E0227FA; Wed, 8 Sep 2004 16:09:01 -0500 (CDT) Date: Wed, 8 Sep 2004 16:09:01 -0500 (CDT) From: "David E. Nelson" X-X-Sender: dnelson@draconix.natinst.com To: "Adam M. Dunn" In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS snapshot-20020300 Cc: help-cfengine@gnu.org Subject: Re: Recursion Problem?? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2004 21:15:40 -0000 Status: O Content-Length: 1256 Lines: 58 Hi Adam, I just used/tried: copy: any:: /var/cfengine/master_inputs/foo # Specific file dest=/tmp/bar # Specific file r=0 mode=0600 backup=false server=$(policyhost) w/o any problems. HTH, /\/elson On Wed, 8 Sep 2004, Adam M. Dunn wrote: > > Anyone, > > I'm running into a problem with the recursion option in a copy command. > For example, using the default model of copying the updated configs from: > > server:/var/cfengine/masterfiles --> client:/var/cfengine/inputs > > just as an example, and setting a recursion to r=0, nothing copies. > However, if I keep it at r=1, or r=inf, then everything copies, but I > don't want that. Basically I just want to copy only single files from a > source directory to the client and ignore any subdirectories, but it's not > letting me. > > Is this common behavior, or am I doing something wrong? > > > Thanks, > Adam > > > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- ~~ ** ~~ If you didn't learn anything when you broke it the 1st ~~ ** ~~ time, then break it again. From MAILER-DAEMON Wed Sep 08 18:10:29 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C5Ae4-0002Sj-Ru for mharc-help-cfengine@gnu.org; Wed, 08 Sep 2004 18:10:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C5Ae2-0002Pz-0o for help-cfengine@gnu.org; Wed, 08 Sep 2004 18:10:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C5Adv-0002KM-Bg for help-cfengine@gnu.org; Wed, 08 Sep 2004 18:10:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5Adt-0002KG-Hw for help-cfengine@gnu.org; Wed, 08 Sep 2004 18:10:19 -0400 Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C5AYA-0002hv-7x for help-cfengine@gnu.org; Wed, 08 Sep 2004 18:04:22 -0400 Received: from mailrelay1.lanl.gov (localhost.localdomain [127.0.0.1]) by mailwasher-b.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i88M4K6U023895 for ; Wed, 8 Sep 2004 16:04:20 -0600 Received: from ccn-mail.lanl.gov (ccn-mail.lanl.gov [128.165.4.105]) by mailrelay1.lanl.gov (8.12.10/8.12.11/(ccn-5)) with ESMTP id i88M4JIJ032494; Wed, 8 Sep 2004 16:04:19 -0600 Received: from edbrown.lanl.gov (edbrown.lanl.gov [128.165.114.35]) by ccn-mail.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i88M4JeV016690; Wed, 8 Sep 2004 16:04:19 -0600 From: Ed Brown To: "Adam M. Dunn" In-Reply-To: References: Content-Type: text/plain Message-Id: <1094681059.2403.52.camel@edbrown.lanl.gov> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 08 Sep 2004 16:04:19 -0600 Content-Transfer-Encoding: 7bit X-PMX-Version: 4.6.0.99824 X-Scanned-By: MIMEDefang 2.35 Cc: help-cfengine@gnu.org Subject: Re: Recursion Problem?? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2004 22:10:26 -0000 Status: O Content-Length: 1639 Lines: 41 With a directory for a source/dest, and 'r=1', cfengine will create any subdirectories in that top-level directory, but does not recurse into them (they will be empty). If you don't want the subdirectory created, try 'ignore=modules' (or whatever the subdirectory is that you don't want created.) -Ed On Wed, 2004-09-08 at 13:56, Adam M. Dunn wrote: > Anyone, > > I'm running into a problem with the recursion option in a copy command. > For example, using the default model of copying the updated configs from: > > server:/var/cfengine/masterfiles --> client:/var/cfengine/inputs > > just as an example, and setting a recursion to r=0, nothing copies. > However, if I keep it at r=1, or r=inf, then everything copies, but I > don't want that. Basically I just want to copy only single files from a > source directory to the client and ignore any subdirectories, but it's not > letting me. > > Is this common behavior, or am I doing something wrong? > > > Thanks, > Adam > > > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine From MAILER-DAEMON Wed Sep 08 18:26:17 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C5AtM-00061x-P1 for mharc-help-cfengine@gnu.org; Wed, 08 Sep 2004 18:26:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C5AtL-00060b-Hx for help-cfengine@gnu.org; Wed, 08 Sep 2004 18:26:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C5AtJ-000604-Ub for help-cfengine@gnu.org; Wed, 08 Sep 2004 18:26:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5AtJ-0005zu-PR for help-cfengine@gnu.org; Wed, 08 Sep 2004 18:26:13 -0400 Received: from [128.249.42.192] (helo=silver.hgsc.bcm.tmc.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C5Anc-0005Nw-RO for help-cfengine@gnu.org; Wed, 08 Sep 2004 18:20:21 -0400 Received: from technetium.hgsc.bcm.tmc.edu (technetium.hgsc.bcm.tmc.edu [128.249.42.166]) by silver.hgsc.bcm.tmc.edu (8.12.9/8.12.9) with ESMTP id i88MKKm0009431; Wed, 8 Sep 2004 17:20:20 -0500 (CDT) Received: from localhost (adunn@localhost) by technetium.hgsc.bcm.tmc.edu (8.12.9/8.12.9/Submit) with ESMTP id i88MKJnn014277; Wed, 8 Sep 2004 17:20:19 -0500 (CDT) X-Authentication-Warning: technetium.hgsc.bcm.tmc.edu: adunn owned process doing -bs Date: Wed, 8 Sep 2004 17:20:19 -0500 (CDT) From: "Adam M. Dunn" To: Ed Brown In-Reply-To: <1094681059.2403.52.camel@edbrown.lanl.gov> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: help-cfengine@gnu.org Subject: Re: Recursion Problem?? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2004 22:26:15 -0000 Status: O Content-Length: 2072 Lines: 59 Yes, thanks. That ignore worked. It would be nice though if cfengine had an option to treat files and directory names differently, such as an omit directory option. I would much rather be able to create random sub directories and not have them copied without specifying them explicitly. thanks, ~adam On Wed, 8 Sep 2004, Ed Brown wrote: > With a directory for a source/dest, and 'r=1', cfengine will create any > subdirectories in that top-level directory, but does not recurse into > them (they will be empty). If you don't want the subdirectory created, > try 'ignore=modules' (or whatever the subdirectory is that you don't > want created.) > > -Ed > > > > On Wed, 2004-09-08 at 13:56, Adam M. Dunn wrote: > > Anyone, > > > > I'm running into a problem with the recursion option in a copy command. > > For example, using the default model of copying the updated configs from: > > > > server:/var/cfengine/masterfiles --> client:/var/cfengine/inputs > > > > just as an example, and setting a recursion to r=0, nothing copies. > > However, if I keep it at r=1, or r=inf, then everything copies, but I > > don't want that. Basically I just want to copy only single files from a > > source directory to the client and ignore any subdirectories, but it's not > > letting me. > > > > Is this common behavior, or am I doing something wrong? > > > > > > Thanks, > > Adam > > > > > > > > > > > > _______________________________________________ > > Help-cfengine mailing list > > Help-cfengine@gnu.org > > http://lists.gnu.org/mailman/listinfo/help-cfengine > > > From MAILER-DAEMON Thu Sep 09 01:30:21 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C5HVl-0003uj-Nl for mharc-help-cfengine@gnu.org; Thu, 09 Sep 2004 01:30:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C5HVk-0003ue-Kz for help-cfengine@gnu.org; Thu, 09 Sep 2004 01:30:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C5HVi-0003uF-PJ for help-cfengine@gnu.org; Thu, 09 Sep 2004 01:30:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5HVi-0003u9-Mk for help-cfengine@gnu.org; Thu, 09 Sep 2004 01:30:18 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C5HQ0-0000xw-47 for help-cfengine@gnu.org; Thu, 09 Sep 2004 01:24:24 -0400 Received: from nexus.iu.hio.no (localhost [IPv6:::1]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i895OVQT023209; Thu, 9 Sep 2004 07:24:31 +0200 (MEST) Received: (from mark@localhost) by nexus.iu.hio.no (8.13.0/8.13.0/Submit) id i895OViT023206; Thu, 9 Sep 2004 07:24:31 +0200 (CEST) Date: Thu, 9 Sep 2004 07:24:31 +0200 From: Mark Burgess To: "Adam M. Dunn" Message-ID: <20040909052431.GB21983@nexus.iu.hio.no> References: <1094681059.2403.52.camel@edbrown.lanl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i X-SpamAssassin-Score: 0 X-Scanned-By: MIMEDefang 2.41 Cc: help-cfengine@gnu.org Subject: Re: Recursion Problem?? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2004 05:30:20 -0000 Status: O Content-Length: 2728 Lines: 81 You could use a filter to do this, M On Wed, Sep 08, 2004 at 05:20:19PM -0500, Adam M. Dunn wrote: > > Yes, thanks. That ignore worked. It would be nice though if cfengine had > an option to treat files and directory names differently, such as an omit > directory option. I would much rather be able to create random sub > directories and not have them copied without specifying them explicitly. > > > thanks, > > ~adam > > > > On Wed, 8 Sep 2004, Ed Brown wrote: > > > With a directory for a source/dest, and 'r=1', cfengine will create any > > subdirectories in that top-level directory, but does not recurse into > > them (they will be empty). If you don't want the subdirectory created, > > try 'ignore=modules' (or whatever the subdirectory is that you don't > > want created.) > > > > -Ed > > > > > > > > On Wed, 2004-09-08 at 13:56, Adam M. Dunn wrote: > > > Anyone, > > > > > > I'm running into a problem with the recursion option in a copy command. > > > For example, using the default model of copying the updated configs from: > > > > > > server:/var/cfengine/masterfiles --> client:/var/cfengine/inputs > > > > > > just as an example, and setting a recursion to r=0, nothing copies. > > > However, if I keep it at r=1, or r=inf, then everything copies, but I > > > don't want that. Basically I just want to copy only single files from a > > > source directory to the client and ignore any subdirectories, but it's not > > > letting me. > > > > > > Is this common behavior, or am I doing something wrong? > > > > > > > > > Thanks, > > > Adam > > > > > > > > > > > > > > > > > > _______________________________________________ > > > Help-cfengine mailing list > > > Help-cfengine@gnu.org > > > http://lists.gnu.org/mailman/listinfo/help-cfengine > > > > > > > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Thu Sep 09 11:42:12 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C5R3s-0003iM-Do for mharc-help-cfengine@gnu.org; Thu, 09 Sep 2004 11:42:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C5R3r-0003hp-KW for help-cfengine@gnu.org; Thu, 09 Sep 2004 11:42:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C5R3q-0003hU-0w for help-cfengine@gnu.org; Thu, 09 Sep 2004 11:42:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5R3p-0003hQ-Ss for help-cfengine@gnu.org; Thu, 09 Sep 2004 11:42:09 -0400 Received: from [128.249.42.192] (helo=silver.hgsc.bcm.tmc.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C5QyH-0006PL-FM for help-cfengine@gnu.org; Thu, 09 Sep 2004 11:36:25 -0400 Received: from technetium.hgsc.bcm.tmc.edu (technetium.hgsc.bcm.tmc.edu [128.249.42.166]) by silver.hgsc.bcm.tmc.edu (8.12.9/8.12.9) with ESMTP id i89FaNm0024308; Thu, 9 Sep 2004 10:36:24 -0500 (CDT) Received: from localhost (adunn@localhost) by technetium.hgsc.bcm.tmc.edu (8.12.9/8.12.9/Submit) with ESMTP id i89FaNCU010312; Thu, 9 Sep 2004 10:36:23 -0500 (CDT) X-Authentication-Warning: technetium.hgsc.bcm.tmc.edu: adunn owned process doing -bs Date: Thu, 9 Sep 2004 10:36:23 -0500 (CDT) From: "Adam M. Dunn" To: Mark Burgess In-Reply-To: <20040909052431.GB21983@nexus.iu.hio.no> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: help-cfengine@gnu.org Subject: Re: Recursion Problem?? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2004 15:42:11 -0000 Status: O Content-Length: 3491 Lines: 110 GREAT! I hadn't used filters before, but that worked great. I just setup a filter to ignore directories and can now just call it from a files option: filter=ignoredir. That's exactly what I was looking for. filters: { ignoredir Type: "dir" Result: "!Type" } Thanks Mark! ~Adam On Thu, 9 Sep 2004, Mark Burgess wrote: > > You could use a filter to do this, > > M > > > On Wed, Sep 08, 2004 at 05:20:19PM -0500, Adam M. Dunn wrote: > > > > Yes, thanks. That ignore worked. It would be nice though if cfengine had > > an option to treat files and directory names differently, such as an omit > > directory option. I would much rather be able to create random sub > > directories and not have them copied without specifying them explicitly. > > > > > > thanks, > > > > ~adam > > > > > > > > On Wed, 8 Sep 2004, Ed Brown wrote: > > > > > With a directory for a source/dest, and 'r=1', cfengine will create any > > > subdirectories in that top-level directory, but does not recurse into > > > them (they will be empty). If you don't want the subdirectory created, > > > try 'ignore=modules' (or whatever the subdirectory is that you don't > > > want created.) > > > > > > -Ed > > > > > > > > > > > > On Wed, 2004-09-08 at 13:56, Adam M. Dunn wrote: > > > > Anyone, > > > > > > > > I'm running into a problem with the recursion option in a copy command. > > > > For example, using the default model of copying the updated configs from: > > > > > > > > server:/var/cfengine/masterfiles --> client:/var/cfengine/inputs > > > > > > > > just as an example, and setting a recursion to r=0, nothing copies. > > > > However, if I keep it at r=1, or r=inf, then everything copies, but I > > > > don't want that. Basically I just want to copy only single files from a > > > > source directory to the client and ignore any subdirectories, but it's not > > > > letting me. > > > > > > > > Is this common behavior, or am I doing something wrong? > > > > > > > > > > > > Thanks, > > > > Adam > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Help-cfengine mailing list > > > > Help-cfengine@gnu.org > > > > http://lists.gnu.org/mailman/listinfo/help-cfengine > > > > > > > > > > > > > > > > > _______________________________________________ > > Help-cfengine mailing list > > Help-cfengine@gnu.org > > http://lists.gnu.org/mailman/listinfo/help-cfengine > > -- > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Work: +47 22453272 Email: Mark.Burgess@iu.hio.no > Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > From MAILER-DAEMON Thu Sep 09 14:06:16 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C5TJH-00068p-OT for mharc-help-cfengine@gnu.org; Thu, 09 Sep 2004 14:06:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C5TJE-00067Y-WA for help-cfengine@gnu.org; Thu, 09 Sep 2004 14:06:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C5TJA-00066j-JH for help-cfengine@gnu.org; Thu, 09 Sep 2004 14:06:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5TJA-00066g-Hn for help-cfengine@gnu.org; Thu, 09 Sep 2004 14:06:08 -0400 Received: from [207.36.86.205] (helo=intruder.com.mx) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C5TDX-0007kS-T6 for help-cfengine@gnu.org; Thu, 09 Sep 2004 14:00:20 -0400 Received: from localhost (server.intruder.com.mx [127.0.0.1]) by intruder.com.mx (Postfix) with ESMTP id 02C8C5B4125 for ; Thu, 9 Sep 2004 12:59:13 -0500 (CDT) Received: from intruder.com.mx ([127.0.0.1]) by localhost (server.intruder.com.mx [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02608-02 for ; Thu, 9 Sep 2004 12:59:11 -0500 (CDT) Received: from akrall (unknown [201.133.125.44]) by intruder.com.mx (Postfix) with ESMTP id F01E25B40FA for ; Thu, 9 Sep 2004 12:59:10 -0500 (CDT) From: "Anton Krall" To: Date: Thu, 9 Sep 2004 13:00:13 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcSWlj5vrTRs1/gtQ7CWGKdJxrqgAgAAGiQg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-Id: <20040909175910.F01E25B40FA@intruder.com.mx> X-Virus-Scanned: by amavisd-new at intruder.com.mx Subject: Problems with cfengine X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2004 18:06:13 -0000 Status: O Content-Length: 435 Lines: 17 Guys... I run cfengine on my wkrstations like this /var/cfengine/bin/cfagent -I and it runs every hours... Every so hours I get emails like this: %Subject: Cron /var/cfengine/bin/cfagent -I % %!: Protocol transaction broken off %!: Authentication dialogue with intruder.com.mx failed %!: Unable to establish connection with intruder.com.mx (failover) % Whats wrong? Why is this been sent every so often? Thx! From MAILER-DAEMON Fri Sep 10 03:49:58 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C5gAQ-0003oq-B7 for mharc-help-cfengine@gnu.org; Fri, 10 Sep 2004 03:49:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C5gAN-0003l6-I0 for help-cfengine@gnu.org; Fri, 10 Sep 2004 03:49:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C5gAK-0003hv-Kv for help-cfengine@gnu.org; Fri, 10 Sep 2004 03:49:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5gAK-0003hU-Ct for help-cfengine@gnu.org; Fri, 10 Sep 2004 03:49:52 -0400 Received: from [62.80.19.64] (helo=stinger.2e-systems.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C5g4u-0004th-3c for help-cfengine@gnu.org; Fri, 10 Sep 2004 03:44:16 -0400 Received: from [192.168.101.41] (panix.lhe-support.com [192.168.101.41]) by stinger.2e-systems.com (Postfix) with ESMTP id 6355A36E6EF for ; Fri, 10 Sep 2004 09:44:09 +0200 (CEST) Message-ID: <41415B48.50803@2e-systems.com> Date: Fri, 10 Sep 2004 09:44:08 +0200 From: Predrag Zecevic - Solaris System Administrator User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7.2) Gecko/20040817 X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <200407061547.i66FlQKn014175@nexus.iu.hio.no> In-Reply-To: <200407061547.i66FlQKn014175@nexus.iu.hio.no> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [MODULES] worked in 2.16 not 2.17 X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2004 07:49:56 -0000 Status: O Content-Length: 1807 Lines: 67 Hi, this issue is fixed in 2.1.10, which I am using now... Thanks and regards ;-) Mark.Burgess@iu.hio.no wrote: >I am taking a short holiday. I will look into this when I return >M > >On 6 Jul, Predrag Zecevic - Solaris System Administrator wrote: > > >>Hi, >> >>I have (shell) module (for ages) which consist of 3 lines (never changed >>location of module): >>------------------------------ -- >>#!/bin/ksh >>IP_ADDR=`/sbin/ifconfig -a | /usr/bin/grep 192 | /usr/bin/nawk '{print $2}'` >>echo "=myLAN=${IP_ADDR}" >>------------------------------ -- >>which was used on SPARC Solaris 8 & 9 since cfEngine version from 2.0.1 >>up to 2.1.6. >>Recently I did update of cfEngine to 2.1.7 and it stopped to return >>value back ... >> >>Did I missed something? >> >>Regards ;-) >> >> >> >>_______________________________________________ >>Help-cfengine mailing list >>Help-cfengine@gnu.org >>http://lists.gnu.org/mailman/listinfo/help-cfengine >> >> > > > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Work: +47 22453272 Email: Mark.Burgess@iu.hio.no >Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > >_______________________________________________ >Help-cfengine mailing list >Help-cfengine@gnu.org >http://lists.gnu.org/mailman/listinfo/help-cfengine > > -- | Predrag Zecevic | e-Mail: Predrag.Zecevic@2e-Systems.COM | | 2e Systems GmbH | Tel: (+49)[0]6107 989 415 | |Im Taubengrund 12| Fax: (+49)[0]6107 989 494 | |65451 Kelsterbach| | | Germany | Cellular: (+49)[0]174 3109 288 | +=================+ Wonderful day. Your hangover just makes it seem terrible. From MAILER-DAEMON Fri Sep 10 04:01:59 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C5gM3-0006ua-F0 for mharc-help-cfengine@gnu.org; Fri, 10 Sep 2004 04:01:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C5gLz-0006tw-DC for help-cfengine@gnu.org; Fri, 10 Sep 2004 04:01:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C5gLu-0006tE-O1 for help-cfengine@gnu.org; Fri, 10 Sep 2004 04:01:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5gLu-0006t0-7y for help-cfengine@gnu.org; Fri, 10 Sep 2004 04:01:50 -0400 Received: from [62.80.19.64] (helo=stinger.2e-systems.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C5gGH-0006zD-JO for help-cfengine@gnu.org; Fri, 10 Sep 2004 03:56:01 -0400 Received: from [192.168.101.41] (panix.lhe-support.com [192.168.101.41]) by stinger.2e-systems.com (Postfix) with ESMTP id 018B336E6EF for ; Fri, 10 Sep 2004 09:56:01 +0200 (CEST) Message-ID: <41415E11.1010104@2e-systems.com> Date: Fri, 10 Sep 2004 09:56:01 +0200 From: Predrag Zecevic - Solaris System Administrator User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7.2) Gecko/20040817 X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <40EAC4CC.70901@2e-systems.com> In-Reply-To: <40EAC4CC.70901@2e-systems.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [SysLog]: logs events 3 times... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2004 08:01:56 -0000 Status: O Content-Length: 2418 Lines: 56 Hi, Platform: Solaris SPARC 9, cfEngine 2.1.10 I have switched on syslog (with corresponding changes into /etc/syslog.conf): -------------------------------------------- ... solaris.main.conf: Syslog = ( on ) solaris.main.conf: SyslogFacility = ( LOG_LOCAL4 ) ... -------------------------------------------- *cfagent* is executed via cfexecd --no-fork and CFSERVD runs plain (no args) *cfagent* command ... Then, it (cfengine) started to log everything in /var/log/cgenlog file, but each action is logged 3 times! -------------------------------------------- ... Sep 10 03:41:49 moonrise cfengine:moonrise[28800]: [ID 702911 local4.notice] Group of /etc/logadm.conf was 1, setting to 3 Sep 10 03:41:49 moonrise cfengine:moonrise[28800]: [ID 702911 local4.notice] Group of /etc/logadm.conf was 1, setting to 3 Sep 10 03:41:49 moonrise cfengine:moonrise[28800]: [ID 702911 local4.notice] Group of /etc/logadm.conf was 1, setting to 3 Sep 10 03:41:49 moonrise cfengine:moonrise[28800]: [ID 702911 local4.notice] Object /etc/logadm.conf had permission 600, changed it to 644 Sep 10 03:41:49 moonrise cfengine:moonrise[28800]: [ID 702911 local4.notice] Object /etc/logadm.conf had permission 600, changed it to 644 Sep 10 03:41:49 moonrise cfengine:moonrise[28800]: [ID 702911 local4.notice] Object /etc/logadm.conf had permission 600, changed it to 644 Sep 10 03:41:52 moonrise cfengine:moonrise[28800]: [ID 702911 local4.notice] Deleting file /etc/motd_1094697690_Thu_Sep__9_04_41_49_2004_.cfsaved Sep 10 03:41:52 moonrise cfengine:moonrise[28800]: [ID 702911 local4.notice] Deleting file /etc/motd_1094697690_Thu_Sep__9_04_41_49_2004_.cfsaved Sep 10 03:41:52 moonrise cfengine:moonrise[28800]: [ID 702911 local4.notice] Deleting file /etc/motd_1094697690_Thu_Sep__9_04_41_49_2004_.cfsaved ... -------------------------------------------- Does some other cfengine configuration parameters are/shouldn't be involved? What I did wrong? ;-) -- | Predrag Zecevic | e-Mail: Predrag.Zecevic@2e-Systems.COM | | 2e Systems GmbH | Tel: (+49)[0]6107 989 415 | |Im Taubengrund 12| Fax: (+49)[0]6107 989 494 | |65451 Kelsterbach| | | Germany | Cellular: (+49)[0]174 3109 288 | +=================+ Wonderful day. Your hangover just makes it seem terrible. From MAILER-DAEMON Fri Sep 10 11:33:16 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C5nOm-00052Y-1M for mharc-help-cfengine@gnu.org; Fri, 10 Sep 2004 11:33:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C5nOj-00050e-66 for help-cfengine@gnu.org; Fri, 10 Sep 2004 11:33:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C5nOg-0004uH-0L for help-cfengine@gnu.org; Fri, 10 Sep 2004 11:33:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5nOf-0004u7-RW for help-cfengine@gnu.org; Fri, 10 Sep 2004 11:33:09 -0400 Received: from [198.70.184.137] (helo=smtp.poss.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C5nJG-0007FS-IN for help-cfengine@gnu.org; Fri, 10 Sep 2004 11:27:34 -0400 Received: from [198.70.184.239] (dhcp-239.poss.com [198.70.184.239]) by endeavor.poss.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTPA id <0I3U00BXD09SUN@endeavor.poss.com> for help-cfengine@gnu.org; Fri, 10 Sep 2004 11:27:28 -0400 (EDT) Date: Fri, 10 Sep 2004 11:27:33 -0400 From: Christian Pearce To: help-cfengine@gnu.org Message-id: <1094830053.5579.82.camel@dhcp-239.poss.com> Organization: Perfect Order, Inc. MIME-version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Content-type: text/plain Content-transfer-encoding: 7BIT Subject: cfexec doesn't work for a non-root X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2004 15:33:13 -0000 Status: O Content-Length: 922 Lines: 30 Not certain this is something we want to fix, but given the fact the users are allowed to run cfagent, it might stand to reason they should be able to run there own cfexec. I don't think this is functionality I will ever need. Just thought I would bring it up. I would rather see my next request fulfilled. [pearcec@mir tmp]$ CFINPUTS=. /usr/sbin/cfexecd -F cfexecd: Unable to make directories to /var/cfengine/outputs/spooled_reports cfexecd: mkdir: Permission denied cfexecd: cfengine defines no SMTP server -- or perhaps a syntax error in the config cfexecd: Need: smtpserver = ( ?? ) in control cfexecd: cfengine defines no system administrator address cfexecd: Need: sysadm = ( ??@?? ) in control cfexecd: Couldn't open /var/cfengine/outputs/cf_mir_perfectorder_com_Fri_Sep_10_11_22_37_2004_ cfexecd: fopen: No such file or directory -- Christian Pearce http://www.commnav.com http://www.perfectorder.com From MAILER-DAEMON Sun Sep 12 21:19:36 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C6fVI-0000MV-D4 for mharc-help-cfengine@gnu.org; Sun, 12 Sep 2004 21:19:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C6fVG-0000Lx-Tb for help-cfengine@gnu.org; Sun, 12 Sep 2004 21:19:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C6fVF-0000LS-Bd for help-cfengine@gnu.org; Sun, 12 Sep 2004 21:19:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C6fVF-0000LP-9o for help-cfengine@gnu.org; Sun, 12 Sep 2004 21:19:33 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1C6fPg-000512-Ci for help-cfengine@gnu.org; Sun, 12 Sep 2004 21:13:48 -0400 Received: (qmail 23536 invoked from network); 13 Sep 2004 01:13:33 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 13 Sep 2004 01:13:33 -0000 Date: Mon, 13 Sep 2004 11:12:06 +1000 (EST) From: Timothy Sven Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: cfengine help list Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: ssh-keygen & other things X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2004 01:19:35 -0000 Status: O Content-Length: 1043 Lines: 30 Hi all. I've been away from the list for a few weeks due to job change, but I'm back :), and with two questions... 1. I want to run ssh-keygen if /root/.ssh/id_dsa.pub doesn't exist. I can use shellcommands to get ssh-keygen to run, and I realise that I'll probably have to define a class in another section to get this to happen, but after looking at files and editfiles, I can't see anything that appears to do what I want. Any ideas? 2. Mark and I were intending to have a public discussion of how editfiles should work when he found the time. He may've tried to recontinue the discussion while I was away, or maybe not :). Mark, is this a possibility at the moment? Thanks, -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Mon Sep 13 04:52:31 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C6mZa-0006EE-Fk for mharc-help-cfengine@gnu.org; Mon, 13 Sep 2004 04:52:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C6mZO-0006Dd-B4 for help-cfengine@gnu.org; Mon, 13 Sep 2004 04:52:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C6mZK-0006CM-W3 for help-cfengine@gnu.org; Mon, 13 Sep 2004 04:52:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C6mZK-0006Bu-72 for help-cfengine@gnu.org; Mon, 13 Sep 2004 04:52:14 -0400 Received: from [131.188.30.103] (helo=faui03.informatik.uni-erlangen.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C6mTS-000399-KA for help-cfengine@gnu.org; Mon, 13 Sep 2004 04:46:11 -0400 Received: from faui03.informatik.uni-erlangen.de (faui03.informatik.uni-erlangen.de [131.188.30.103]) by faui03.informatik.uni-erlangen.de (8.12.9/8.12.9) with ESMTP id i8D8k7IK020040 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 13 Sep 2004 08:46:07 GMT Received: (from sithglan@localhost) by faui03.informatik.uni-erlangen.de (8.12.9/8.12.9) id i8D8k700020039 for help-cfengine@gnu.org; Mon, 13 Sep 2004 10:46:07 +0200 (CEST) Date: Mon, 13 Sep 2004 10:46:07 +0200 From: Thomas Glanzmann To: help-cfengine@gnu.org Message-ID: <20040913084606.GC27956@cip.informatik.uni-erlangen.de> Mail-Followup-To: help-cfengine@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-URL: http://wwwcip.informatik.uni-erlangen.de/~sithglan/ User-Agent: Mutt/1.5.6i Subject: Re: ssh-keygen & other things X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2004 08:52:22 -0000 Status: O Content-Length: 288 Lines: 13 Hello, > I want to run ssh-keygen if /root/.ssh/id_dsa.pub doesn't exist. use the startup scripts of your distributor, if they don't support that, fix them. Example can be found in the blastwave.org initscript of openssh or in the ones shipping with debian woody/sarge/sid. Thomas From MAILER-DAEMON Mon Sep 13 05:04:35 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C6mlH-0000n3-Cc for mharc-help-cfengine@gnu.org; Mon, 13 Sep 2004 05:04:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C6mlE-0000lN-Gl for help-cfengine@gnu.org; Mon, 13 Sep 2004 05:04:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C6mlC-0000k4-5v for help-cfengine@gnu.org; Mon, 13 Sep 2004 05:04:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C6mlB-0000jC-RJ for help-cfengine@gnu.org; Mon, 13 Sep 2004 05:04:29 -0400 Received: from [194.215.205.57] (helo=seula.almamedia.fi) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C6mfA-0005Ij-9A for help-cfengine@gnu.org; Mon, 13 Sep 2004 04:58:16 -0400 Received: by seula.almamedia.fi (Postfix, from userid 99) id CD1637CF0; Mon, 13 Sep 2004 11:58:12 +0300 (EEST) Received: from [10.31.42.42] (rakkine.i.siu.ro [10.31.42.42]) by seula.almamedia.fi (Postfix) with ESMTP id B9C217494 for ; Mon, 13 Sep 2004 11:58:10 +0300 (EEST) Message-ID: <41456121.9060805@almamedia.fi> Date: Mon, 13 Sep 2004 11:58:09 +0300 From: =?ISO-8859-1?Q?=22Sami_J=2E_M=E4kinen=22?= Organization: Alma Media Interactive User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <20040913084606.GC27956@cip.informatik.uni-erlangen.de> In-Reply-To: <20040913084606.GC27956@cip.informatik.uni-erlangen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: ssh-keygen & other things X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2004 09:04:32 -0000 Status: O Content-Length: 1066 Lines: 36 Thomas Glanzmann wrote: >>I want to run ssh-keygen if /root/.ssh/id_dsa.pub doesn't exist. > use the startup scripts of your distributor, if they don't support that= , > fix them. Often, it might be a bad idea to tamper with init scripts provided by your distributor/vendor. Your fixed script might be overwritten with a update, for example. It is always a good idea to make a copy of your own, like this on a red hat system: cd /etc/init.d cp sshd sshd.my vi sshd.my chkconfig --del sshd chkconfig --add sshd.my (this example was stupid because there is really nothing wrong with sshd init script provided by red hat) ...or run a shellcommand from cfengine to achieve this, like "/bin/sh -c '[ -f /root/.ssh/id_dsa.pub ] || ssh-keygen blaa blaa'" Even though cfengine is good and ver useful, you should still remember that simple sh onliners are often the most straightforward and readable way to do certain things. --=20 -- sjm "Pir=E4tt=E4k=E4=E4. Nakkeletta nuallen rassukoollen per=E4koijasta jokuja napollisia opaalia." - Junttapurin maharatsa From MAILER-DAEMON Mon Sep 13 11:56:23 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C6tBn-00010J-P0 for mharc-help-cfengine@gnu.org; Mon, 13 Sep 2004 11:56:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C6tBl-0000zm-PM for help-cfengine@gnu.org; Mon, 13 Sep 2004 11:56:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C6tBk-0000zT-Aj for help-cfengine@gnu.org; Mon, 13 Sep 2004 11:56:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C6tBk-0000zQ-7X for help-cfengine@gnu.org; Mon, 13 Sep 2004 11:56:20 -0400 Received: from [12.151.118.107] (helo=bluefly.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C6t5z-0000lI-HS for help-cfengine@gnu.org; Mon, 13 Sep 2004 11:50:23 -0400 Received: from mail1.bluefly.corp ([192.168.20.65]) by bluefly.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 13 Sep 2004 11:52:46 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Date: Mon, 13 Sep 2004 11:50:22 -0400 Message-ID: <67E1492EF44766448839037AFFB6E04A02CAC8AF@mail1.bluefly.corp> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Multiple Network Interfaces Thread-Index: AcSZqWBCX62Gp4/XQFu9uO9xyztQ8A== From: "Paul O'Malley" To: X-OriginalArrivalTime: 13 Sep 2004 15:52:46.0750 (UTC) FILETIME=[B6BBCBE0:01C499A9] Subject: Multiple Network Interfaces X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2004 15:56:22 -0000 Status: O Content-Length: 512 Lines: 22 Can someone give me a brief explanation of how to handle multiple network interfaces on a Solaris server? I have several machines with hme0, qfe0, and qfe1 interfaces and want to ensure all 3 are set up properly.. Thanks! paul o'malley, senior unix systems administrator [fly since 2003] [p] 212.944.8000 x306 [e] paul.omalley@bluefly.com bluefly, inc. 42 w. 39th st. new york, ny 10018 www.bluefly.com NASDAQ Symbol: BFLY click here to receive special discounts and new product previews from Bluefly From MAILER-DAEMON Tue Sep 14 09:41:11 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7DYV-0005Jj-OL for mharc-help-cfengine@gnu.org; Tue, 14 Sep 2004 09:41:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7DYU-0005Je-4h for help-cfengine@gnu.org; Tue, 14 Sep 2004 09:41:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7DYT-0005JS-FO for help-cfengine@gnu.org; Tue, 14 Sep 2004 09:41:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7DYT-0005JP-C5 for help-cfengine@gnu.org; Tue, 14 Sep 2004 09:41:09 -0400 Received: from [198.70.184.137] (helo=smtp.poss.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7DSi-0008Tn-MG for help-cfengine@gnu.org; Tue, 14 Sep 2004 09:35:17 -0400 Received: from [198.70.184.239] (dhcp-239.poss.com [198.70.184.239]) by endeavor.poss.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTPA id <0I4100AAH9QH8F@endeavor.poss.com> for help-cfengine@gnu.org; Tue, 14 Sep 2004 09:35:05 -0400 (EDT) Date: Tue, 14 Sep 2004 09:35:10 -0400 From: Christian Pearce To: help-cfengine@gnu.org Message-id: <1095168910.5579.131.camel@dhcp-239.poss.com> Organization: Perfect Order, Inc. MIME-version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Content-type: text/plain Content-transfer-encoding: 7BIT Subject: cfengine-die help... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 13:41:10 -0000 Status: O Content-Length: 952 Lines: 34 # Reboot if scheduled automation occurs reboot:: '$(nohup) $(shutdown) -y -g 300 -i 6 "SysNav is rebooting the server to install patch Cluster(s)." & echo "cfengine-die"' background=true useshell=true Can someone explain to me the process under which cfengine kills a forked script? This is the last statement I tried. I call shutdown with nohup, but that doesn't seem to keep cfengine from killing it after I echo the cfengine die. Unfortunately if I don't use cfengine-die cfengine will not continue executing. I assume this is the code that does it if (ptr->timeout != 0) { alarm(0); signal(SIGALRM,SIG_DFL); } alarm(0) sets the seconds for the signal to be generated to zero. signal(SIGALRM, SIG_DFL) executes Terminate by default with the SIG_DFL handle. But shutdown still gets killed off. -- Christian Pearce http://www.commnav.com http://www.perfectorder.com From MAILER-DAEMON Tue Sep 14 11:09:44 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7EwB-0007TR-V4 for mharc-help-cfengine@gnu.org; Tue, 14 Sep 2004 11:09:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7EwA-0007T1-3k for help-cfengine@gnu.org; Tue, 14 Sep 2004 11:09:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7Ew8-0007SW-8Y for help-cfengine@gnu.org; Tue, 14 Sep 2004 11:09:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7Ew8-0007ST-56 for help-cfengine@gnu.org; Tue, 14 Sep 2004 11:09:40 -0400 Received: from [62.80.19.64] (helo=stinger.2e-systems.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7EqV-0008CQ-7U for help-cfengine@gnu.org; Tue, 14 Sep 2004 11:03:51 -0400 Received: from [192.168.101.41] (panix.lhe-support.com [192.168.101.41]) by stinger.2e-systems.com (Postfix) with ESMTP id 109B736E6EE for ; Tue, 14 Sep 2004 17:03:47 +0200 (CEST) Message-ID: <41470852.3090706@2e-systems.com> Date: Tue, 14 Sep 2004 17:03:46 +0200 From: Predrag Zecevic - Solaris System Administrator User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <1095168910.5579.131.camel@dhcp-239.poss.com> In-Reply-To: <1095168910.5579.131.camel@dhcp-239.poss.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: cfengine-die help... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 15:09:42 -0000 Status: O Content-Length: 1478 Lines: 48 Hi Christian, you are missing one '&' in command bellow: shouldn't this look like: ... && echo "cfengine-die" ? Regards ;-) Christian Pearce wrote: > # Reboot if scheduled automation occurs > reboot:: > '$(nohup) $(shutdown) -y -g 300 -i 6 "SysNav is rebooting the >server to install patch Cluster(s)." & echo "cfengine-die"' > background=true > useshell=true > >Can someone explain to me the process under which cfengine kills a >forked script? This is the last statement I tried. I call shutdown >with nohup, but that doesn't seem to keep cfengine from killing it after >I echo the cfengine die. Unfortunately if I don't use cfengine-die >cfengine will not continue executing. > >I assume this is the code that does it > > if (ptr->timeout != 0) > { > alarm(0); > signal(SIGALRM,SIG_DFL); > } > >alarm(0) sets the seconds for the signal to be generated to zero. >signal(SIGALRM, SIG_DFL) executes Terminate by default with the SIG_DFL >handle. > >But shutdown still gets killed off. > > -- | Predrag Zecevic | e-Mail: Predrag.Zecevic@2e-Systems.COM | | 2e Systems GmbH | Tel: (+49)[0]6107 989 415 | |Im Taubengrund 12| Fax: (+49)[0]6107 989 494 | |65451 Kelsterbach| | | Germany | Cellular: (+49)[0]174 3109 288 | +=================+ Anyone who goes to a psychiatrist ought to have his head examined. -- Samuel Goldwyn From MAILER-DAEMON Tue Sep 14 11:14:15 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7F0Z-0000Lk-Do for mharc-help-cfengine@gnu.org; Tue, 14 Sep 2004 11:14:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7F0Y-0000L4-9c for help-cfengine@gnu.org; Tue, 14 Sep 2004 11:14:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7F0V-0000KF-CA for help-cfengine@gnu.org; Tue, 14 Sep 2004 11:14:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7F0U-0000Jn-QZ for help-cfengine@gnu.org; Tue, 14 Sep 2004 11:14:10 -0400 Received: from [198.70.184.137] (helo=smtp.poss.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7EuU-0000T9-9e for help-cfengine@gnu.org; Tue, 14 Sep 2004 11:08:03 -0400 Received: from [198.70.184.239] (dhcp-239.poss.com [198.70.184.239]) by endeavor.poss.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTPA id <0I4100ALZE0Y8F@endeavor.poss.com> for help-cfengine@gnu.org; Tue, 14 Sep 2004 11:07:46 -0400 (EDT) Date: Tue, 14 Sep 2004 11:07:52 -0400 From: Christian Pearce In-reply-to: <41470852.3090706@2e-systems.com> To: Predrag Zecevic - Solaris System Administrator Message-id: <1095174471.5579.135.camel@dhcp-239.poss.com> Organization: Perfect Order, Inc. MIME-version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Content-type: text/plain Content-transfer-encoding: 7BIT References: <1095168910.5579.131.camel@dhcp-239.poss.com> <41470852.3090706@2e-systems.com> Cc: help-cfengine@gnu.org Subject: Re: cfengine-die help... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 15:14:14 -0000 Status: O Content-Length: 1867 Lines: 56 I mistakenly put that before. I want the shutdown to go into the background. If I did && it would wait for shutdown to finish then it would echo "cfengine-die". Which leaves me where I was before. I think the shell command is correct. I am puzzled as to why shutdown gets killed. hmm maybe nohup doesn't block the SIGALRM. Only the SIGHUP. Maybe we need to change this behavior in cfengine. Considering we aren't using the alarm timer for anything other than 0. Which is immediate. This way we could block the hup with a nohup. Unless I am misunderstanding this. On Tue, 2004-09-14 at 11:03, Predrag Zecevic - Solaris System Administrator wrote: > Hi Christian, > > you are missing one '&' in command bellow: shouldn't this look like: ... > && echo "cfengine-die" ? > Regards ;-) > > Christian Pearce wrote: > > > # Reboot if scheduled automation occurs > > reboot:: > > '$(nohup) $(shutdown) -y -g 300 -i 6 "SysNav is rebooting the > >server to install patch Cluster(s)." & echo "cfengine-die"' > > background=true > > useshell=true > > > >Can someone explain to me the process under which cfengine kills a > >forked script? This is the last statement I tried. I call shutdown > >with nohup, but that doesn't seem to keep cfengine from killing it after > >I echo the cfengine die. Unfortunately if I don't use cfengine-die > >cfengine will not continue executing. > > > >I assume this is the code that does it > > > > if (ptr->timeout != 0) > > { > > alarm(0); > > signal(SIGALRM,SIG_DFL); > > } > > > >alarm(0) sets the seconds for the signal to be generated to zero. > >signal(SIGALRM, SIG_DFL) executes Terminate by default with the SIG_DFL > >handle. > > > >But shutdown still gets killed off. > > > > -- Christian Pearce http://www.commnav.com http://www.perfectorder.com From MAILER-DAEMON Tue Sep 14 11:36:13 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7FLp-0005js-Nl for mharc-help-cfengine@gnu.org; Tue, 14 Sep 2004 11:36:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7FLp-0005jn-1d for help-cfengine@gnu.org; Tue, 14 Sep 2004 11:36:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7FLn-0005jC-AP for help-cfengine@gnu.org; Tue, 14 Sep 2004 11:36:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7FLn-0005j6-4s for help-cfengine@gnu.org; Tue, 14 Sep 2004 11:36:11 -0400 Received: from [152.17.8.11] (helo=f1n1.spenet.wfu.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7FGA-0004re-4g for help-cfengine@gnu.org; Tue, 14 Sep 2004 11:30:22 -0400 Received: from f1n11.sp2net.wfu.edu (f1n11.sp2net.wfu.edu [152.17.8.21]) by f1n1.spenet.wfu.edu (8.11.6p2/8.11.6) with SMTP id i8EFUKJ135386 for ; Tue, 14 Sep 2004 11:30:20 -0400 X-Authentication-Warning: f1n1.spenet.wfu.edu: f1n11.sp2net.wfu.edu [152.17.8.21] didn't use HELO protocol Message-ID: <41470E8A.4050307@wfu.edu> Date: Tue, 14 Sep 2004 11:30:18 -0400 From: John Borwick Organization: Wake Forest University User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040901) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigCA13A1F2498F90DD7400ECC5" Subject: finding the IP for eth0 X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 15:36:13 -0000 Status: O Content-Length: 1297 Lines: 45 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCA13A1F2498F90DD7400ECC5 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hey, everybody. I hope you're doing well. I'm trying to do the following: control: eth0_ip = ( ExecResult(/bin/sh -c "/usr/sbin/ifconfig eth0 | /usr/bin/perl -lne 'print \$1 if / addr:(\S+)/'") ) It looks like cfengine gets hung up on the parentheses. How do I 1. find the IP for eth0 (for the purposes of editing ifcfg-eth0) 2. put parentheses inside ExecResult commands? Thanks! John -- John Borwick System Administrator Wake Forest University | web http://www.wfu.edu/~borwicjh Winston-Salem, NC, USA | GPG key ID 0x797326D5 --------------enigCA13A1F2498F90DD7400ECC5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBRw6M/81sF3lzJtURAoLDAKCtbeVssGqeNnXExvh1L1vcpBUrAwCgnprA IUsW92DiZlNypSQHEXvoQAU= =fyBW -----END PGP SIGNATURE----- --------------enigCA13A1F2498F90DD7400ECC5-- From MAILER-DAEMON Tue Sep 14 12:13:44 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7Fw8-0007fa-9U for mharc-help-cfengine@gnu.org; Tue, 14 Sep 2004 12:13:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7Fw6-0007fR-Ab for help-cfengine@gnu.org; Tue, 14 Sep 2004 12:13:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7Fw4-0007fF-Q5 for help-cfengine@gnu.org; Tue, 14 Sep 2004 12:13:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7Fw4-0007fC-MC for help-cfengine@gnu.org; Tue, 14 Sep 2004 12:13:40 -0400 Received: from [12.151.118.107] (helo=bluefly.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7FqT-0003qu-E4 for help-cfengine@gnu.org; Tue, 14 Sep 2004 12:07:53 -0400 Received: from mail1.bluefly.corp ([192.168.20.65]) by bluefly.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 14 Sep 2004 12:10:15 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C49A74.FC59F748" Date: Tue, 14 Sep 2004 12:07:51 -0400 Message-ID: <67E1492EF44766448839037AFFB6E04A02CAC8C6@mail1.bluefly.corp> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: WANTED: Config scripts Thread-Index: AcSadPxKbLhObRJrQ4WbQYgcomj55A== From: "Paul O'Malley" To: X-OriginalArrivalTime: 14 Sep 2004 16:10:15.0953 (UTC) FILETIME=[52853810:01C49A75] Subject: WANTED: Config scripts X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 16:13:42 -0000 Status: O Content-Length: 6416 Lines: 189 This is a multi-part message in MIME format. ------_=_NextPart_001_01C49A74.FC59F748 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hello everyone! =20 Would anyone be willing to share their cfengine scripts which perform common Unix configurations such as defaultrouter, IP config, named, etc? If so, please email to pomalley@bluefly.com =20 Thanks! =20 paul o'malley, senior unix systems administrator [fly since 2003] [p] 212.944.8000 x306 [e] paul.omalley@bluefly.com =20 =09 bluefly, inc. 42 w. 39th st. new york, ny 10018 www.bluefly.com NASDAQ Symbol: BFLY click here = to receive special discounts and new product previews from Bluefly =20 ------_=_NextPart_001_01C49A74.FC59F748 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Message
Hello=20 everyone!
 
Would = anyone be=20 willing to share their cfengine scripts which perform common Unix = configurations=20 such as defaultrouter, IP config, named, etc? If so, please email to pomalley@bluefly.com
 
Thanks!
 
paul = o'malley, senior=20 unix systems administrator [fly since 2003]
[p] 212.944.8000 = x306 [e]=20
paul.omalley@bluefly.com
bluefly, = inc. 42 w.=20 39th st. new york, ny 10018
www.bluefly.com=20 NASDAQ Symbol: BFLY

click=20 here to receive special discounts and new = product
previews=20 from Bluefly
 
=00 ------_=_NextPart_001_01C49A74.FC59F748-- From MAILER-DAEMON Tue Sep 14 12:29:00 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7GAu-00031e-0s for mharc-help-cfengine@gnu.org; Tue, 14 Sep 2004 12:29:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7GAs-00031D-Et for help-cfengine@gnu.org; Tue, 14 Sep 2004 12:28:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7GAp-00030t-RF for help-cfengine@gnu.org; Tue, 14 Sep 2004 12:28:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7GAp-00030q-La for help-cfengine@gnu.org; Tue, 14 Sep 2004 12:28:55 -0400 Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7G52-0006ZJ-02 for help-cfengine@gnu.org; Tue, 14 Sep 2004 12:22:56 -0400 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1C7G4y-00080v-00 for ; Tue, 14 Sep 2004 18:22:52 +0200 Received: from 22.dhcp2.enoreo.on.ca ([216.26.108.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Sep 2004 18:22:52 +0200 Received: from jametrel by 22.dhcp2.enoreo.on.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Sep 2004 18:22:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: help-cfengine@gnu.org From: James Treleaven Date: Tue, 14 Sep 2004 12:22:51 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 22.dhcp2.enoreo.on.ca User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en In-Reply-To: Sender: news Subject: Re: Multiple line matching and replace in editfiles X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 16:28:58 -0000 Status: O Content-Length: 639 Lines: 21 I found myself also wanting to "edit" multiple lines today with 'editfiles'. In my case, it is because radiusd.conf has a 'paragraph style' layout, and I need to make sure that 'sql' is listed in the following stanza: authorize { preprocess sql files } Unfortunately, it looks to me like editfiles is line based and it cannot do this for me. I think I have no choice but to use an external perl script. I really wish that shellcommands took a 'if-this-named-file-has-changed-run-this-shellcommand' option, because the whole set-a-class-to-kick-off-a-shellcommand idiom is pretty kludgey in my eyes. cheers, James From MAILER-DAEMON Tue Sep 14 14:39:48 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7IDU-0003Zf-DK for mharc-help-cfengine@gnu.org; Tue, 14 Sep 2004 14:39:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7IDS-0003ZW-BG for help-cfengine@gnu.org; Tue, 14 Sep 2004 14:39:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7IDP-0003Z3-7O for help-cfengine@gnu.org; Tue, 14 Sep 2004 14:39:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7IDP-0003Z0-2J for help-cfengine@gnu.org; Tue, 14 Sep 2004 14:39:43 -0400 Received: from [67.107.182.10] (helo=karl.presidio.alexa.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7I7L-0004RI-4E for help-cfengine@gnu.org; Tue, 14 Sep 2004 14:33:27 -0400 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C49A89.51BBFFAE" X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Date: Tue, 14 Sep 2004 11:33:24 -0700 Message-ID: <41089CB27BD8D24E8385C8003EDAF7ABBA49CB@karl.alexa.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to use cfengine modules? Thread-Index: AcSaiU332TtFT+XRTOKeNPQv2LuHoA== X-Priority: 1 Priority: Urgent Importance: high From: "Guolin Cheng" To: Subject: How to use cfengine modules? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 18:39:46 -0000 Status: O Content-Length: 15937 Lines: 320 This is a multi-part message in MIME format. ------_=_NextPart_001_01C49A89.51BBFFAE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I try to test cfengine module functions, and find there are two places I don't understand. 1, The classes defined in modules has to be "declared" with "AddInstallable" statement(s) in control section. This seems not convenient. For my case, my module script defined a dynamic number of classes, depending on the machines' status. So, is it possible to "dynamically" define classes without declaration with "AddInstallable" statements? [root@Server inputs]# cat ../modules/linuxProbeServicesStatus=20 #! /bin/bash =09 ############################################################ ## ## cfengine helper modules ## probe which services ( /etc/init.d/*) are on. ## =09 ############################################################ for i in `/sbin/chkconfig --list | /bin/grep "3:on" | /bin/awk '{ print $1 }'` do=20 /bin/echo "+${i}ServiceTurnedOn" done 2, The module name seems can not include a normal ".sh" suffix, and will not report error if the module file is not executable. I have tried several times to debug it out with "-v -d2" options to cfagent. Before that my script is named "linuxProbeServicesStatus.sh" and my CVS system kicked off the executable bit of the module script file by mistake. Classes defined in module files take effect only on sections behind module:* in actionsequence statement in same configuration file. They will not affect other imported siblings files (not child files or parent files). I haven't testes imported child files yet. I'll send another email about my implementation of cfengine, share my "experience" and ask for further help. Thanks. --Guolin Cheng =20 =09 ------_=_NextPart_001_01C49A89.51BBFFAE Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable How to use cfengine modules?

Hi,

  I try to test cfengine = module functions, and = find there are two places I dont = understand.

  1,  The classes defined in modules has to = be declared with AddInstallable = statement(s) in control section. This seems not = convenient. For my case, = my module script defined a dynamic number of classes, depending on the = machines status. So, is it possible = to dynamically define classes without = declaration with AddInstallable = statements?

      [root@Server inputs]# cat = ../modules/linuxProbeServicesStatus

      #! = /bin/bash

      ##########################################################= ##

      ##

      ##  cfengine helper modules

      ##  probe which services ( /etc/init.d/*) are = on.

      ##

      ############################################################

      =

      for i = in `/sbin/chkconfig --list | /bin/grep "3:on" | /bin/awk '{ = print $1 }'`

      do =

              = /bin/echo  "+${i}ServiceTurnedOn"

      done

2, The module name seems can not include a normal .sh suffix, and will not report error if the module file is not = executable.  I have tried several times to debug it out with -v d2 options to = cfagent. = Before that my script = is named linuxProbeServicesStatus.sh and my CVS system kicked off the executable bit of the = module script file by = mistake.

Classes = defined = in module files take effect only on sections behind module:* in = actionsequence statement in same configuration file. They will not = affect other imported siblings files (not child files or parent = files). I = havent testes imported child files yet.

 Ill send another email about my = implementation of cfengine, share = my experience and  ask for further = help.

Thanks.

--Guolin Cheng 

        =        

------_=_NextPart_001_01C49A89.51BBFFAE-- From MAILER-DAEMON Tue Sep 14 15:57:16 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7JQS-0000SN-EL for mharc-help-cfengine@gnu.org; Tue, 14 Sep 2004 15:57:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7JQQ-0000SB-O0 for help-cfengine@gnu.org; Tue, 14 Sep 2004 15:57:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7JQO-0000Rb-PZ for help-cfengine@gnu.org; Tue, 14 Sep 2004 15:57:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7JQO-0000RR-MF for help-cfengine@gnu.org; Tue, 14 Sep 2004 15:57:12 -0400 Received: from [152.17.8.11] (helo=f1n1.spenet.wfu.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7JKa-0000ug-Bn for help-cfengine@gnu.org; Tue, 14 Sep 2004 15:51:12 -0400 Received: from f1n11.sp2net.wfu.edu (f1n11.sp2net.wfu.edu [152.17.8.21]) by f1n1.spenet.wfu.edu (8.11.6p2/8.11.6) with SMTP id i8EJpBJ07640 for ; Tue, 14 Sep 2004 15:51:11 -0400 X-Authentication-Warning: f1n1.spenet.wfu.edu: f1n11.sp2net.wfu.edu [152.17.8.21] didn't use HELO protocol Message-ID: <41474BAD.7070408@wfu.edu> Date: Tue, 14 Sep 2004 15:51:09 -0400 From: John Borwick Organization: Wake Forest University User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040901) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA2AF04353BB6C18A1B46F92D" Subject: "disks"/"required" for all local disks X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 19:57:14 -0000 Status: O Content-Length: 1645 Lines: 57 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA2AF04353BB6C18A1B46F92D Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hey. Thanks very much for the help with finding out the interface. I ended up using ${global.ipv4[eth0]} for the IP address and eth0_gateway = ( ExecResult(/bin/sh -c "echo `ifconfig eth0 | grep 'inet' | cut -d: -f2 | cut -d. -f-3`.254") ) for the gateway. Next trick: I'm trying to assert that all the local disks have a certain amount of space free. I tried control: actionsequence = ( disks ) partitions = ( ExecResult(/bin/sh -c "df -l | grep '%' | perl -F\\s+ -alne 'print $F[5]'")) disks: $(partitions) freespace=100M But this doesn't work because $(partitions) is expanded as a string rather than as a list. If it's not possible, that's cool; we'll monitor it with SNMP instead. Thanks! Yours, John -- John Borwick System Administrator Wake Forest University | web http://www.wfu.edu/~borwicjh Winston-Salem, NC, USA | GPG key ID 0x797326D5 --------------enigA2AF04353BB6C18A1B46F92D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBR0uv/81sF3lzJtURAsy5AJ4ocFolWNh1Ii5sjIE7SGSOXYXHNwCgph8D d+j9bV72fJcMXaTFkGID1wo= =A+B+ -----END PGP SIGNATURE----- --------------enigA2AF04353BB6C18A1B46F92D-- From MAILER-DAEMON Tue Sep 14 16:28:53 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7Jv3-0008Ru-1U for mharc-help-cfengine@gnu.org; Tue, 14 Sep 2004 16:28:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7Jv1-0008RH-NH for help-cfengine@gnu.org; Tue, 14 Sep 2004 16:28:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7Juz-0008QC-Ag for help-cfengine@gnu.org; Tue, 14 Sep 2004 16:28:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7Juz-0008Q2-6r for help-cfengine@gnu.org; Tue, 14 Sep 2004 16:28:49 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7Joo-0006U1-3y for help-cfengine@gnu.org; Tue, 14 Sep 2004 16:22:26 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i8EKMSFB010138; Tue, 14 Sep 2004 22:22:32 +0200 (MEST) Message-Id: <200409142022.i8EKMSFB010138@nexus.iu.hio.no> Date: Tue, 14 Sep 2004 22:22:28 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: borwicjh@wfu.edu In-Reply-To: <41474BAD.7070408@wfu.edu> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: help-cfengine@gnu.org Subject: Re: "disks"/"required" for all local disks X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 20:28:52 -0000 Status: O Content-Length: 1313 Lines: 47 This will take me a while to answer. If the list expansion does not currently work, then it can easily be fixed. I need to spend a couple of days catching up on cfengine stuff ... I am way behind. M On 14 Sep, John Borwick wrote: > Hey. Thanks very much for the help with finding out the interface. I > ended up using ${global.ipv4[eth0]} for the IP address and > > eth0_gateway = ( ExecResult(/bin/sh -c "echo `ifconfig eth0 | grep > 'inet' | cut -d: -f2 | cut -d. -f-3`.254") ) > > for the gateway. > > Next trick: I'm trying to assert that all the local disks have a > certain amount of space free. I tried > > control: > actionsequence = ( disks ) > > partitions = ( ExecResult(/bin/sh -c "df -l | grep '%' | perl > -F\\s+ -alne 'print $F[5]'")) > > disks: > $(partitions) freespace=100M > > > But this doesn't work because $(partitions) is expanded as a string > rather than as a list. > > If it's not possible, that's cool; we'll monitor it with SNMP instead. > > Thanks! > Yours, > John ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Tue Sep 14 19:07:19 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7MON-0001v5-5X for mharc-help-cfengine@gnu.org; Tue, 14 Sep 2004 19:07:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7MOL-0001v0-OR for help-cfengine@gnu.org; Tue, 14 Sep 2004 19:07:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7MOI-0001uo-JY for help-cfengine@gnu.org; Tue, 14 Sep 2004 19:07:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7MOI-0001ul-GR for help-cfengine@gnu.org; Tue, 14 Sep 2004 19:07:14 -0400 Received: from [67.107.182.10] (helo=karl.presidio.alexa.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7MIS-0007l9-GH for help-cfengine@gnu.org; Tue, 14 Sep 2004 19:01:13 -0400 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C49AAE.BA2CF212" X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Date: Tue, 14 Sep 2004 16:01:11 -0700 Message-ID: <41089CB27BD8D24E8385C8003EDAF7AB014D6CEB@karl.alexa.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: variables and classes definitions across imported files. Thread-Index: AcSarrmwJAmkBw9RTUCFbh2T4R964A== From: "Guolin Cheng" To: Cc: help-cfengine@gnu.org Subject: variables and classes definitions across imported files. X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 23:07:18 -0000 Status: O Content-Length: 30165 Lines: 549 This is a multi-part message in MIME format. ------_=_NextPart_001_01C49AAE.BA2CF212 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I'm still a newbie to fancy cfengine tool because I still have a lot questions. :-) I got problems to understand the definitions of variables and classes across imported sibling files. My questions are listed below with difficulty from easy to difficult. 1, How many "actionsequence" variable can I defined in MAIN context? From the advanced sample configuration files, normally one and only one is enough. I debugged with "-v -d2" and find all "control" sections from imported siblings files are aggregated together to make a big "control" section.=20 So, if several conflicting "actionsequence" are defined, they may conflict with each, or at least introduce undesirable consequences. Is that idea|guess correct? 2, variables seems can only defined in "groups" and "control" sections in each configuration file, is this accurate? Variables defined in groups sections becomes "static" classes will be used later on. Variables definitions in control sections for statement "AddInstallable" and "AddClasses" are turned into declared(AddInstallable) and defined(Addclasses) "dynamic" classes. Others are normal variables. I tried to define variables in shellcommands section but it fails.=20 So, this means "groups" and "control" sections are special sections (maybe also "classes" I've not tried yet)? And variables definition can ONLY appear in these two types of sections? 3, For all imported sibling files, their same-named sections are merged|parsed into big sections before operations are carried out, is that correct for all or there are exceptions? I tried to debug with "-v -d2" options, it seems that above guess is true. With some kind of glitches listed in question #4. 4, NORMAL variables defined in one imported file can be seen in its siblings, and vice versa, and that is not related to importing sequence in their common parent file. This is a normal feature or not?=20 5, What does the "global", "update" and "main" contexts mean? And what and how is the inheritance relationship among them? =09 From the debugging output of cfagent, Does the output from the beginning to just before "* (Changing context state to: update) *" belong to GLOBAL context, output from here until "* (Changing context state to: main) *" are UPDATE context, Output from here to the end are MAIN context? Or in another way: All work before parsing|carrying-out update.conf are GLOBAL section? parsing|carrying-out sections in update.conf are UPDATE context, Parsing and carrying out sections in cfagent.conf (including imported files) are MAIN context? Also, what's the variables and classes inheritance relationship between these three contexts? Or there are no inheritance at all(seems this is right). For example, I have conflicting "actionsequence" statement in control section in update.conf and cfagent.conf, then which one will be in effect during parsing|carrying out actions in MAIN context?=20 Thanks a lot. --Guolin =09 ------_=_NextPart_001_01C49AAE.BA2CF212 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable variables and classes definitions across imported files.

Hi,

 Im still a newbie to fancy cfengine = tool = because I still have a lot = questions. J  I got problems to = understand  the = definitions of variables and classes across imported sibling files.

 My questions are listed below with difficulty from easy to difficult.

 1,     How many actionsequence variable can I = defined in MAIN context?

        From the advanced sample configuration files, = normally one and only one is enough. I debugged with -v d2 and find all control sections from imported = siblings files are aggregated together to make a big control section. =

        So, if several conflicting actionsequence are defined, they may conflict with each, or at least = introduce undesirable consequences. Is that idea|guess = correct?

2,      variables seems can only = defined in groups and control sections in each configuration file, is this accurate?

Variables = defined in groups sections becomes static classes will be used later on.

Variables definitions in control sections for = statement = AddInstallable and AddClasses are turned into = declared(AddInstallable) and defined(Addclasses) dynamic classes. Others are normal variables.

I = tried to define variables in shellcommands section but it = fails.

So, = this means groups and control sections are special sections (maybe = also = classes Ive not tried yet)?  And variables definition can ONLY appear in these two = types of sections?

3,      For all imported = sibling files, their = same-named sections are = merged|parsed into big sections = before operations are carried out, is that correct for all or there are exceptions?

        I tried to debug with -v d2 = options, = it seems that above guess is true. = With some kind of = glitches listed in question = #4.

4,      NORMAL variables defined in one = imported file can be seen in its siblings, and vice versa, = and that is not related to importing sequence in their common parent = file. This is a normal feature or not?

5,      What does the global, update and main contexts = mean? And what and = how is the inheritance relationship among them?

       

        From the debugging output of cfagent, Does the output from the = beginning to just = before = * (Changing context state to: update) = * belong = to GLOBAL context,  output from here = until = * (Changing context state to: main) * are UPDATE context, Output = from here to the end are MAIN context?

        Or in another way: All work before = parsing|carrying-out update.conf = are GLOBAL section?  parsing|carrying-out sections in update.conf are UPDATE context,

        Parsing and carrying out sections in cfagent.conf = (including imported files) are MAIN = context?

         Also, whats the variables and classes = inheritance relationship between these three = contexts?  Or = there are no inheritance at all(seems this = is right).  For example, I have conflicting actionsequence statement in control section in update.conf and cfagent.conf, then which one will be = in effect during parsing|carrying out actions in MAIN context?


Thanks a lot.

--Guolin

        =        

------_=_NextPart_001_01C49AAE.BA2CF212-- From MAILER-DAEMON Wed Sep 15 03:04:52 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7TqW-0004hN-7z for mharc-help-cfengine@gnu.org; Wed, 15 Sep 2004 03:04:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7TqU-0004h8-7g for help-cfengine@gnu.org; Wed, 15 Sep 2004 03:04:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7TqS-0004gS-E3 for help-cfengine@gnu.org; Wed, 15 Sep 2004 03:04:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7TqS-0004gI-8c for help-cfengine@gnu.org; Wed, 15 Sep 2004 03:04:48 -0400 Received: from [62.80.19.64] (helo=stinger.2e-systems.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7Tko-0003xa-43 for help-cfengine@gnu.org; Wed, 15 Sep 2004 02:58:58 -0400 Received: from [192.168.101.41] (panix.lhe-support.com [192.168.101.41]) by stinger.2e-systems.com (Postfix) with ESMTP id 8441B36E6F8 for ; Wed, 15 Sep 2004 08:58:57 +0200 (CEST) Message-ID: <4147E831.3090503@2e-systems.com> Date: Wed, 15 Sep 2004 08:58:57 +0200 From: Predrag Zecevic - Solaris System Administrator User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7.2) Gecko/20040817 X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <1095168910.5579.131.camel@dhcp-239.poss.com> <41470852.3090706@2e-systems.com> <1095174471.5579.135.camel@dhcp-239.poss.com> In-Reply-To: <1095174471.5579.135.camel@dhcp-239.poss.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: cfengine-die help... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2004 07:04:50 -0000 Status: O Content-Length: 2322 Lines: 73 Have you tried w/o echo command? Did you tried to debug it? Regards ;-) Christian Pearce wrote: >I mistakenly put that before. I want the shutdown to go into the >background. If I did && it would wait for shutdown to finish then it >would echo "cfengine-die". Which leaves me where I was before. I think >the shell command is correct. I am puzzled as to why shutdown gets >killed. hmm maybe nohup doesn't block the SIGALRM. Only the SIGHUP. >Maybe we need to change this behavior in cfengine. Considering we >aren't using the alarm timer for anything other than 0. Which is >immediate. This way we could block the hup with a nohup. Unless I am >misunderstanding this. > >On Tue, 2004-09-14 at 11:03, Predrag Zecevic - Solaris System >Administrator wrote: > > >>Hi Christian, >> >>you are missing one '&' in command bellow: shouldn't this look like: ... >>&& echo "cfengine-die" ? >>Regards ;-) >> >>Christian Pearce wrote: >> >> >> >>> # Reboot if scheduled automation occurs >>> reboot:: >>> '$(nohup) $(shutdown) -y -g 300 -i 6 "SysNav is rebooting the >>>server to install patch Cluster(s)." & echo "cfengine-die"' >>> background=true >>> useshell=true >>> >>>Can someone explain to me the process under which cfengine kills a >>>forked script? This is the last statement I tried. I call shutdown >>>with nohup, but that doesn't seem to keep cfengine from killing it after >>>I echo the cfengine die. Unfortunately if I don't use cfengine-die >>>cfengine will not continue executing. >>> >>>I assume this is the code that does it >>> >>> if (ptr->timeout != 0) >>> { >>> alarm(0); >>> signal(SIGALRM,SIG_DFL); >>> } >>> >>>alarm(0) sets the seconds for the signal to be generated to zero. >>>signal(SIGALRM, SIG_DFL) executes Terminate by default with the SIG_DFL >>>handle. >>> >>>But shutdown still gets killed off. >>> >>> >>> >>> -- | Predrag Zecevic | e-Mail: Predrag.Zecevic@2e-Systems.COM | | 2e Systems GmbH | Tel: (+49)[0]6107 989 415 | |Im Taubengrund 12| Fax: (+49)[0]6107 989 494 | |65451 Kelsterbach| | | Germany | Cellular: (+49)[0]174 3109 288 | +=================+ The absurd is the essential concept and the first truth. -- A. Camus From MAILER-DAEMON Wed Sep 15 08:46:01 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7ZAf-00079q-55 for mharc-help-cfengine@gnu.org; Wed, 15 Sep 2004 08:46:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7ZAd-00079a-8x for help-cfengine@gnu.org; Wed, 15 Sep 2004 08:45:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7ZAb-00079A-O6 for help-cfengine@gnu.org; Wed, 15 Sep 2004 08:45:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7ZAb-00078t-JF for help-cfengine@gnu.org; Wed, 15 Sep 2004 08:45:57 -0400 Received: from [198.70.184.137] (helo=smtp.poss.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7Z4O-0006XN-Bd for help-cfengine@gnu.org; Wed, 15 Sep 2004 08:39:37 -0400 Received: from [198.70.184.239] (dhcp-239.poss.com [198.70.184.239]) by endeavor.poss.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTPA id <0I430002M1TTE6@endeavor.poss.com> for help-cfengine@gnu.org; Wed, 15 Sep 2004 08:39:29 -0400 (EDT) Date: Wed, 15 Sep 2004 08:39:29 -0400 From: Christian Pearce In-reply-to: <4147E831.3090503@2e-systems.com> To: Predrag Zecevic - Solaris System Administrator Message-id: <1095251968.5579.1157.camel@dhcp-239.poss.com> Organization: Perfect Order, Inc. MIME-version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Content-type: text/plain Content-transfer-encoding: 7BIT References: <1095168910.5579.131.camel@dhcp-239.poss.com> <41470852.3090706@2e-systems.com> <1095174471.5579.135.camel@dhcp-239.poss.com> <4147E831.3090503@2e-systems.com> Cc: help-cfengine@gnu.org Subject: Re: cfengine-die help... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2004 12:45:59 -0000 Status: O Content-Length: 2464 Lines: 80 On Wed, 2004-09-15 at 02:58, Predrag Zecevic - Solaris System Administrator wrote: > Have you tried w/o echo command? Yes it hangs. Even with background set to true. > Did you tried to debug it? Yes. There isn't much debugging statements for that part of the code. The cfengine-die causes a SIGALRM which causes the process to terminate. a nohup only blocks SIGHUP. We would have to rewrite the code. > > Regards ;-) > > Christian Pearce wrote: > > >I mistakenly put that before. I want the shutdown to go into the > >background. If I did && it would wait for shutdown to finish then it > >would echo "cfengine-die". Which leaves me where I was before. I think > >the shell command is correct. I am puzzled as to why shutdown gets > >killed. hmm maybe nohup doesn't block the SIGALRM. Only the SIGHUP. > >Maybe we need to change this behavior in cfengine. Considering we > >aren't using the alarm timer for anything other than 0. Which is > >immediate. This way we could block the hup with a nohup. Unless I am > >misunderstanding this. > > > >On Tue, 2004-09-14 at 11:03, Predrag Zecevic - Solaris System > >Administrator wrote: > > > > > >>Hi Christian, > >> > >>you are missing one '&' in command bellow: shouldn't this look like: ... > >>&& echo "cfengine-die" ? > >>Regards ;-) > >> > >>Christian Pearce wrote: > >> > >> > >> > >>> # Reboot if scheduled automation occurs > >>> reboot:: > >>> '$(nohup) $(shutdown) -y -g 300 -i 6 "SysNav is rebooting the > >>>server to install patch Cluster(s)." & echo "cfengine-die"' > >>> background=true > >>> useshell=true > >>> > >>>Can someone explain to me the process under which cfengine kills a > >>>forked script? This is the last statement I tried. I call shutdown > >>>with nohup, but that doesn't seem to keep cfengine from killing it after > >>>I echo the cfengine die. Unfortunately if I don't use cfengine-die > >>>cfengine will not continue executing. > >>> > >>>I assume this is the code that does it > >>> > >>> if (ptr->timeout != 0) > >>> { > >>> alarm(0); > >>> signal(SIGALRM,SIG_DFL); > >>> } > >>> > >>>alarm(0) sets the seconds for the signal to be generated to zero. > >>>signal(SIGALRM, SIG_DFL) executes Terminate by default with the SIG_DFL > >>>handle. > >>> > >>>But shutdown still gets killed off. > >>> > >>> > >>> > >>> -- Christian Pearce http://www.commnav.com http://www.perfectorder.com From MAILER-DAEMON Wed Sep 15 11:11:38 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7bRa-00030k-Hc for mharc-help-cfengine@gnu.org; Wed, 15 Sep 2004 11:11:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7bRY-0002zR-UC for help-cfengine@gnu.org; Wed, 15 Sep 2004 11:11:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7bRW-0002y9-72 for help-cfengine@gnu.org; Wed, 15 Sep 2004 11:11:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7bRW-0002xz-31 for help-cfengine@gnu.org; Wed, 15 Sep 2004 11:11:34 -0400 Received: from [198.70.184.137] (helo=smtp.poss.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7bLk-0003xa-Vi for help-cfengine@gnu.org; Wed, 15 Sep 2004 11:05:37 -0400 Received: from [198.70.184.239] (dhcp-239.poss.com [198.70.184.239]) by endeavor.poss.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTPA id <0I43000WG8LCE6@endeavor.poss.com> for help-cfengine@gnu.org; Wed, 15 Sep 2004 11:05:36 -0400 (EDT) Date: Wed, 15 Sep 2004 11:05:36 -0400 From: Christian Pearce In-reply-to: <1095251968.5579.1157.camel@dhcp-239.poss.com> To: Predrag Zecevic - Solaris System Administrator Message-id: <1095260736.5579.1169.camel@dhcp-239.poss.com> Organization: Perfect Order, Inc. MIME-version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Content-type: text/plain Content-transfer-encoding: 7BIT References: <1095168910.5579.131.camel@dhcp-239.poss.com> <41470852.3090706@2e-systems.com> <1095174471.5579.135.camel@dhcp-239.poss.com> <4147E831.3090503@2e-systems.com> <1095251968.5579.1157.camel@dhcp-239.poss.com> Cc: help-cfengine@gnu.org Subject: SOLVED: Re: cfengine-die help... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2004 15:11:37 -0000 Status: O Content-Length: 2888 Lines: 89 reboot:: '$(shutdown) -y -g 300 -i 6 "SysNav is rebooting the server to install patch Clusters." > /dev/null 2>&1 &' useshell=true This worked. It detaches from the pipe by redirecting to /dev/null. On Wed, 2004-09-15 at 08:39, Christian Pearce wrote: > On Wed, 2004-09-15 at 02:58, Predrag Zecevic - Solaris System > Administrator wrote: > > Have you tried w/o echo command? > > Yes it hangs. Even with background set to true. > > > Did you tried to debug it? > > Yes. There isn't much debugging statements for that part of the code. > The cfengine-die causes a SIGALRM which causes the process to > terminate. a nohup only blocks SIGHUP. We would have to rewrite the > code. > > > > > Regards ;-) > > > > Christian Pearce wrote: > > > > >I mistakenly put that before. I want the shutdown to go into the > > >background. If I did && it would wait for shutdown to finish then it > > >would echo "cfengine-die". Which leaves me where I was before. I think > > >the shell command is correct. I am puzzled as to why shutdown gets > > >killed. hmm maybe nohup doesn't block the SIGALRM. Only the SIGHUP. > > >Maybe we need to change this behavior in cfengine. Considering we > > >aren't using the alarm timer for anything other than 0. Which is > > >immediate. This way we could block the hup with a nohup. Unless I am > > >misunderstanding this. > > > > > >On Tue, 2004-09-14 at 11:03, Predrag Zecevic - Solaris System > > >Administrator wrote: > > > > > > > > >>Hi Christian, > > >> > > >>you are missing one '&' in command bellow: shouldn't this look like: ... > > >>&& echo "cfengine-die" ? > > >>Regards ;-) > > >> > > >>Christian Pearce wrote: > > >> > > >> > > >> > > >>> # Reboot if scheduled automation occurs > > >>> reboot:: > > >>> '$(nohup) $(shutdown) -y -g 300 -i 6 "SysNav is rebooting the > > >>>server to install patch Cluster(s)." & echo "cfengine-die"' > > >>> background=true > > >>> useshell=true > > >>> > > >>>Can someone explain to me the process under which cfengine kills a > > >>>forked script? This is the last statement I tried. I call shutdown > > >>>with nohup, but that doesn't seem to keep cfengine from killing it after > > >>>I echo the cfengine die. Unfortunately if I don't use cfengine-die > > >>>cfengine will not continue executing. > > >>> > > >>>I assume this is the code that does it > > >>> > > >>> if (ptr->timeout != 0) > > >>> { > > >>> alarm(0); > > >>> signal(SIGALRM,SIG_DFL); > > >>> } > > >>> > > >>>alarm(0) sets the seconds for the signal to be generated to zero. > > >>>signal(SIGALRM, SIG_DFL) executes Terminate by default with the SIG_DFL > > >>>handle. > > >>> > > >>>But shutdown still gets killed off. > > >>> > > >>> > > >>> > > >>> -- Christian Pearce http://www.commnav.com http://www.perfectorder.com From MAILER-DAEMON Wed Sep 15 17:18:24 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7hAW-0002Ej-8Z for mharc-help-cfengine@gnu.org; Wed, 15 Sep 2004 17:18:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7hAU-0002DY-5X for help-cfengine@gnu.org; Wed, 15 Sep 2004 17:18:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7hAR-0002DB-EY for help-cfengine@gnu.org; Wed, 15 Sep 2004 17:18:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7hAR-0002D1-DE for help-cfengine@gnu.org; Wed, 15 Sep 2004 17:18:19 -0400 Received: from [152.17.8.11] (helo=f1n1.spenet.wfu.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7h4g-0000kA-3U for help-cfengine@gnu.org; Wed, 15 Sep 2004 17:12:22 -0400 Received: from f1n11.sp2net.wfu.edu (f1n11.sp2net.wfu.edu [152.17.8.21]) by f1n1.spenet.wfu.edu (8.11.6p2/8.11.6) with SMTP id i8FLCKJ43802 for ; Wed, 15 Sep 2004 17:12:20 -0400 X-Authentication-Warning: f1n1.spenet.wfu.edu: f1n11.sp2net.wfu.edu [152.17.8.21] didn't use HELO protocol Message-ID: <4148B031.7090600@wfu.edu> Date: Wed, 15 Sep 2004 17:12:17 -0400 From: John Borwick Organization: Wake Forest University User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040901) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig46DDA01493671ED95F65BCE5" Subject: FileExists X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2004 21:18:22 -0000 Status: O Content-Length: 1195 Lines: 38 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig46DDA01493671ED95F65BCE5 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Am I using FileExists correctly here? I get "/etc/hosts does not exist" returned. control: testing = ( FileExists(/etc/hosts) ) alerts: testing:: "/etc/hosts exists" !testing:: "/etc/hosts does not exist" -- John Borwick | work 336 758 2507 System Administrator | cell 336 391 6623 Wake Forest University | web http://www.wfu.edu/~borwicjh Winston-Salem, NC, USA | GPG key ID 0x797326D5 --------------enig46DDA01493671ED95F65BCE5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBSLA0/81sF3lzJtURAu+1AJ0e+lFvFRKwqADag6n8MTt2hKjPFQCdEvOK 04L8BBShfDyZl1IIH3R9OKs= =nhMH -----END PGP SIGNATURE----- --------------enig46DDA01493671ED95F65BCE5-- From MAILER-DAEMON Wed Sep 15 17:36:45 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7hSG-0005gH-Rl for mharc-help-cfengine@gnu.org; Wed, 15 Sep 2004 17:36:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7hSD-0005ei-BP for help-cfengine@gnu.org; Wed, 15 Sep 2004 17:36:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7hSB-0005dU-8r for help-cfengine@gnu.org; Wed, 15 Sep 2004 17:36:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7hSB-0005dK-3b for help-cfengine@gnu.org; Wed, 15 Sep 2004 17:36:39 -0400 Received: from [134.134.136.15] (helo=orsfmr001.jf.intel.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7hM4-0003WS-Oo for help-cfengine@gnu.org; Wed, 15 Sep 2004 17:30:21 -0400 Received: from petasus.jf.intel.com (petasus.jf.intel.com [10.7.209.6]) by orsfmr001.jf.intel.com (8.12.9-20030918-01/8.12.9/d: major-outer.mc,v 1.15 2004/01/30 18:16:28 root Exp $) with ESMTP id i8FLUGJB019945; Wed, 15 Sep 2004 21:30:16 GMT Received: from nwlxmail02.jf.intel.com (nwlxmail02.jf.intel.com [192.168.74.77]) by petasus.jf.intel.com (8.12.9-20030918-01/8.12.9/d: major-inner.mc,v 1.11 2004/07/29 22:51:53 root Exp $) with ESMTP id i8FLXEUr027131; Wed, 15 Sep 2004 21:33:14 GMT Received: from [134.134.155.103] ([134.134.155.103]) by nwlxmail02.jf.intel.com (8.12.10/8.12.9/MailSET/Hub) with ESMTP id i8FLUG9V031396; Wed, 15 Sep 2004 14:30:16 -0700 In-Reply-To: <4148B031.7090600@wfu.edu> References: <4148B031.7090600@wfu.edu> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <70F136FE-075E-11D9-AA0D-000A95C47858@intel.com> Content-Transfer-Encoding: 7bit From: Tod Oace Date: Wed, 15 Sep 2004 14:30:18 -0700 To: John Borwick X-Mailer: Apple Mail (2.619) X-Scanned-By: MIMEDefang 2.31 (www . roaringpenguin . com / mimedefang) Cc: help-cfengine@gnu.org Subject: Re: FileExists X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2004 21:36:41 -0000 Status: O Content-Length: 321 Lines: 16 On Sep 15, 2004, at 14:12, John Borwick wrote: > Am I using FileExists correctly here? I get "/etc/hosts does not > exist" returned. > > control: > testing = ( FileExists(/etc/hosts) ) Yes, except it needs to go into classes: (or groups:) rather than control:. -- Tod Oace, Intel Corporation From MAILER-DAEMON Thu Sep 16 10:43:01 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7xTR-0001ug-2J for mharc-help-cfengine@gnu.org; Thu, 16 Sep 2004 10:43:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7xTP-0001u6-9P for help-cfengine@gnu.org; Thu, 16 Sep 2004 10:42:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7xTN-0001tC-GK for help-cfengine@gnu.org; Thu, 16 Sep 2004 10:42:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7xTM-0001t5-Vo for help-cfengine@gnu.org; Thu, 16 Sep 2004 10:42:57 -0400 Received: from [134.109.132.2] (helo=john.hrz.tu-chemnitz.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7xNf-0001xh-M3 for help-cfengine@gnu.org; Thu, 16 Sep 2004 10:37:03 -0400 Received: from ultra.csn.tu-chemnitz.de ([134.109.116.202] helo=mail.ultra.csn.tu-chemnitz.de) by john.hrz.tu-chemnitz.de with esmtp (TLSv1:AES256-SHA:256) (Exim 4.41) id 1C7xNe-0002wy-Ra for help-cfengine@gnu.org; Thu, 16 Sep 2004 16:37:02 +0200 Received: from kosh.ultra.csn.tu-chemnitz.de ([192.168.5.2]) by mail.ultra.csn.tu-chemnitz.de (8.13.1/8.12.11) with ESMTP id i8GEaxpE018315 for ; Thu, 16 Sep 2004 16:36:59 +0200 Received: from kosh.ultra.csn.tu-chemnitz.de (localhost [127.0.0.1]) by kosh.ultra.csn.tu-chemnitz.de (8.13.1/8.12.10) with ESMTP id i8GEaxd6027803 for ; Thu, 16 Sep 2004 16:36:59 +0200 Received: (from ensc@localhost) by kosh.ultra.csn.tu-chemnitz.de (8.13.1/8.12.10/Submit) id i8GEaxZP027802; Thu, 16 Sep 2004 16:36:59 +0200 To: help-cfengine@gnu.org From: Enrico Scholz Date: Thu, 16 Sep 2004 16:36:59 +0200 Message-ID: <877jqu9t6c.fsf@kosh.ultra.csn.tu-chemnitz.de> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.9 () BAYES_00 X-Scanned-By: MIMEDefang 2.43 X-Spam-Score: 0.0 (/) X-Scan-Signature: 8e6f1e4ce138294a44c0e5f7c63fff85 Subject: Howto enforce global copy? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 14:42:59 -0000 Status: O Content-Length: 722 Lines: 23 Hello, does there exist a way to enforce a global copy (similarly to having 'force=true' at every copy:: statement)? At system-initalization with Red Hat's kickstart some files (e.g. /etc/resolv.conf, /etc/krb5.conf, ...) are created with a newer timestamp than this of the file handled by cfengine. So, a copy will never happen and the "wrong" files will stay forever. I solved it by appending 'force=$(GLOBAL_FORCE)' to every copy:: rule and setting GLOBAL_FORCE to 'true' or 'false' depending on '-D' options of cfagent. But this solution scales very bad as I am not sure which files are affected by such situations. Therefore, I would like a flag for 'cfagent' which implicates a global 'force=true'. Enrico From MAILER-DAEMON Thu Sep 16 12:39:01 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7zHh-0008Kb-L1 for mharc-help-cfengine@gnu.org; Thu, 16 Sep 2004 12:39:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7zHe-0008JG-1Y for help-cfengine@gnu.org; Thu, 16 Sep 2004 12:38:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7zHc-0008IH-EP for help-cfengine@gnu.org; Thu, 16 Sep 2004 12:38:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7zHc-0008I9-BA for help-cfengine@gnu.org; Thu, 16 Sep 2004 12:38:56 -0400 Received: from [134.109.132.3] (helo=lana.hrz.tu-chemnitz.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7zBT-0001Ug-LT for help-cfengine@gnu.org; Thu, 16 Sep 2004 12:32:36 -0400 Received: from ultra.csn.tu-chemnitz.de ([134.109.116.202] helo=mail.ultra.csn.tu-chemnitz.de) by lana.hrz.tu-chemnitz.de with esmtp (TLSv1:AES256-SHA:256) (Exim 4.41) id 1C7zBG-00069Q-BT for help-cfengine@gnu.org; Thu, 16 Sep 2004 18:32:22 +0200 Received: from kosh.ultra.csn.tu-chemnitz.de ([192.168.5.2]) by mail.ultra.csn.tu-chemnitz.de (8.13.1/8.12.11) with ESMTP id i8GEfdV8019287 for ; Thu, 16 Sep 2004 16:41:39 +0200 Received: from kosh.ultra.csn.tu-chemnitz.de (localhost [127.0.0.1]) by kosh.ultra.csn.tu-chemnitz.de (8.13.1/8.12.10) with ESMTP id i8GEfd2P028315 for ; Thu, 16 Sep 2004 16:41:39 +0200 Received: (from ensc@localhost) by kosh.ultra.csn.tu-chemnitz.de (8.13.1/8.12.10/Submit) id i8GEfdaA028314; Thu, 16 Sep 2004 16:41:39 +0200 To: help-cfengine@gnu.org From: Enrico Scholz Date: Thu, 16 Sep 2004 16:41:39 +0200 Message-ID: <873c1i9syk.fsf@kosh.ultra.csn.tu-chemnitz.de> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.9 () BAYES_00 X-Scanned-By: MIMEDefang 2.43 X-Spam-Score: 0.0 (/) X-Scan-Signature: bf792412a9282b88258c217492ac655a Subject: Howto copy dangling symlinks? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 16:38:58 -0000 Status: O Content-Length: 480 Lines: 24 Hello, does there exist a way to copy directory trees with dangling symlinks? E.g. on the fileserver ($(policyhost)) I have a | ...cfengine-masterfiles/minit/run -> /sbin/bar dead symlink (/sbin/bar does not exist there). When I use a | copy: | ...cfengine-masterfiles/minit dest=/etc/minit r=inf | server=$(policyhost) statement, the 'run' symlink will not be copied but only other files from this directory. Enrico From MAILER-DAEMON Thu Sep 16 13:05:33 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C7zhM-00058C-OY for mharc-help-cfengine@gnu.org; Thu, 16 Sep 2004 13:05:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7zhK-00057g-R8 for help-cfengine@gnu.org; Thu, 16 Sep 2004 13:05:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7zhG-00055y-QW for help-cfengine@gnu.org; Thu, 16 Sep 2004 13:05:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7zhG-00055U-3i for help-cfengine@gnu.org; Thu, 16 Sep 2004 13:05:26 -0400 Received: from [198.70.184.137] (helo=smtp.poss.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7zbD-0005Uv-8K for help-cfengine@gnu.org; Thu, 16 Sep 2004 12:59:11 -0400 Received: from [198.70.184.239] (dhcp-239.poss.com [198.70.184.239]) by endeavor.poss.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTPA id <0I450047J8IKGR@endeavor.poss.com> for help-cfengine@gnu.org; Thu, 16 Sep 2004 12:59:08 -0400 (EDT) Date: Thu, 16 Sep 2004 12:59:08 -0400 From: Christian Pearce To: help-cfengine@gnu.org Message-id: <1095353947.5579.1177.camel@dhcp-239.poss.com> Organization: Perfect Order, Inc. MIME-version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Content-type: text/plain Content-transfer-encoding: 7BIT Subject: Failover in copy... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 17:05:31 -0000 Status: O Content-Length: 545 Lines: 17 I know I talked about this before. But isn't this just the inverse of define? If the copy failed the define class wouldn't be set and the failover would. If the copy was successful just the opposite. Isn't this redundant? All you have to do is ! the class and you have the other condition. Is there something about failover that I am missing? I think it might be of interest to have it try a second IP address. So the server would take comma separated values. -- Christian Pearce http://www.commnav.com http://www.perfectorder.com From MAILER-DAEMON Thu Sep 16 13:40:30 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C80FC-0003lU-5q for mharc-help-cfengine@gnu.org; Thu, 16 Sep 2004 13:40:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C80FA-0003lF-9w for help-cfengine@gnu.org; Thu, 16 Sep 2004 13:40:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C80F8-0003l3-I5 for help-cfengine@gnu.org; Thu, 16 Sep 2004 13:40:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C80F8-0003l0-Ec for help-cfengine@gnu.org; Thu, 16 Sep 2004 13:40:26 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C809L-0002QL-Un for help-cfengine@gnu.org; Thu, 16 Sep 2004 13:34:28 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8GHYMh5001331; Thu, 16 Sep 2004 12:34:24 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: Christian Pearce , help-cfengine@gnu.org Date: Thu, 16 Sep 2004 12:34:20 -0500 User-Agent: KMail/1.5.4 References: <1095353947.5579.1177.camel@dhcp-239.poss.com> In-Reply-To: <1095353947.5579.1177.camel@dhcp-239.poss.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409161234.20542.chip@trdlnk.com> Cc: Subject: Re: Failover in copy... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 17:40:28 -0000 Status: O Content-Length: 880 Lines: 26 On Thursday 16 September 2004 11:59, Christian Pearce wrote: > I know I talked about this before. But isn't this just the inverse of > define? If the copy failed the define class wouldn't be set and the > failover would. If the copy was successful just the opposite. Isn't > this redundant? All you have to do is ! the class and you have the > other condition. Is there something about failover that I am missing? Order of operations. Does "!copygood" mean that the copy in question has not run yet, or that it failed? > I think it might be of interest to have it try a second IP address. So > the server would take comma separated values. That would be extremely, massively cool. I would recommend following the iterator conventions rather than introducing a new one, however. -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Thu Sep 16 14:11:34 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C80jF-0000ip-RV for mharc-help-cfengine@gnu.org; Thu, 16 Sep 2004 14:11:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C80jD-0000iI-LZ for help-cfengine@gnu.org; Thu, 16 Sep 2004 14:11:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C80jC-0000i6-0P for help-cfengine@gnu.org; Thu, 16 Sep 2004 14:11:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C80jB-0000i3-Sg for help-cfengine@gnu.org; Thu, 16 Sep 2004 14:11:29 -0400 Received: from [216.27.184.5] (helo=hexogen.explosive.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C80cn-0006eZ-PA for help-cfengine@gnu.org; Thu, 16 Sep 2004 14:04:53 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by hexogen-lo0.explosive.net (Postfix) with ESMTP id 60006EBF22; Thu, 16 Sep 2004 10:34:10 -0700 (PDT) Date: Thu, 16 Sep 2004 10:34:10 -0700 (PDT) From: Eric Sorenson To: Enrico Scholz In-Reply-To: <877jqu9t6c.fsf@kosh.ultra.csn.tu-chemnitz.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: help-cfengine@gnu.org Subject: Re: Howto enforce global copy? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 18:11:31 -0000 Status: O Content-Length: 269 Lines: 16 On Thu, 16 Sep 2004, Enrico Scholz wrote: > Therefore, I would like a flag for 'cfagent' which implicates a global > 'force=true'. control: DefaultCopyType = ( checksum ) is what you want. -- Eric Sorenson - EXPLOSIVE Networking - http://explosive.net From MAILER-DAEMON Thu Sep 16 14:28:34 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C80zi-0003Sh-2u for mharc-help-cfengine@gnu.org; Thu, 16 Sep 2004 14:28:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C80zg-0003Rz-Ke for help-cfengine@gnu.org; Thu, 16 Sep 2004 14:28:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C80za-0003R8-Dr for help-cfengine@gnu.org; Thu, 16 Sep 2004 14:28:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C80za-0003Qy-C3 for help-cfengine@gnu.org; Thu, 16 Sep 2004 14:28:26 -0400 Received: from [216.146.93.140] (helo=mail1.eb.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C80sx-0000N0-Ue for help-cfengine@gnu.org; Thu, 16 Sep 2004 14:21:36 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 16 Sep 2004 13:21:44 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Failover in copy... Thread-Index: AcScE4K3wCHXGPOaQOWs2736Uz701QABnJQA From: "Wheeler, John" To: , "Christian Pearce" , Cc: Subject: RE: Failover in copy... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 18:28:33 -0000 Status: O Content-Length: 1503 Lines: 53 think this is in 2.1.7? http://www.cfengine.org/src-mirror/ChangeLog.txt search for server. > -----Original Message----- > From: help-cfengine-bounces+jwheeler=3Deb.com@gnu.org [mailto:help-cfengine- > bounces+jwheeler=3Deb.com@gnu.org] On Behalf Of Chip Seraphine > Sent: Thursday, September 16, 2004 12:34 PM > To: Christian Pearce; help-cfengine@gnu.org > Subject: Re: Failover in copy... >=20 > On Thursday 16 September 2004 11:59, Christian Pearce wrote: > > I know I talked about this before. But isn't this just the inverse of > > define? If the copy failed the define class wouldn't be set and the > > failover would. If the copy was successful just the opposite. Isn't > > this redundant? All you have to do is ! the class and you have the > > other condition. Is there something about failover that I am missing? >=20 > Order of operations. Does "!copygood" mean that the copy in question has > not > run yet, or that it failed? >=20 > > I think it might be of interest to have it try a second IP address. So > > the server would take comma separated values. >=20 > That would be extremely, massively cool. I would recommend following the > iterator conventions rather than introducing a new one, however. >=20 > -- >=20 > Chip Seraphine > Unix Administrator > TradeLink, LLC > 312-264-2048 > chip@trdlnk.com >=20 >=20 >=20 > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine From MAILER-DAEMON Thu Sep 16 14:32:32 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C813X-0003rC-OR for mharc-help-cfengine@gnu.org; Thu, 16 Sep 2004 14:32:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C813V-0003r5-TA for help-cfengine@gnu.org; Thu, 16 Sep 2004 14:32:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C813U-0003qV-Ct for help-cfengine@gnu.org; Thu, 16 Sep 2004 14:32:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C813U-0003qL-8H for help-cfengine@gnu.org; Thu, 16 Sep 2004 14:32:28 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C80xg-00010Z-7D for help-cfengine@gnu.org; Thu, 16 Sep 2004 14:26:28 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8GIQRh5006515; Thu, 16 Sep 2004 13:26:27 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: "Wheeler, John" , "Christian Pearce" , Date: Thu, 16 Sep 2004 13:26:26 -0500 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409161326.26605.chip@trdlnk.com> Cc: Subject: Re: Failover in copy... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 18:32:30 -0000 Status: O Content-Length: 1813 Lines: 68 Hey, what's this crap on my face? EGGS? Wierd.... On Thursday 16 September 2004 13:21, Wheeler, John wrote: > think this is in 2.1.7? > > http://www.cfengine.org/src-mirror/ChangeLog.txt > > search for server. > > > -----Original Message----- > > From: help-cfengine-bounces+jwheeler=eb.com@gnu.org > [mailto:help-cfengine- > > bounces+jwheeler=eb.com@gnu.org] On Behalf Of Chip Seraphine > > Sent: Thursday, September 16, 2004 12:34 PM > > To: Christian Pearce; help-cfengine@gnu.org > > Subject: Re: Failover in copy... > > > > On Thursday 16 September 2004 11:59, Christian Pearce wrote: > > > I know I talked about this before. But isn't this just the inverse > of > > > define? If the copy failed the define class wouldn't be set and the > > > failover would. If the copy was successful just the opposite. > Isn't > > > this redundant? All you have to do is ! the class and you have the > > > other condition. Is there something about failover that I am > missing? > > > > Order of operations. Does "!copygood" mean that the copy in question > has > > not > > run yet, or that it failed? > > > > > I think it might be of interest to have it try a second IP address. > So > > > the server would take comma separated values. > > > > That would be extremely, massively cool. I would recommend following > the > > iterator conventions rather than introducing a new one, however. > > > > -- > > > > Chip Seraphine > > Unix Administrator > > TradeLink, LLC > > 312-264-2048 > > chip@trdlnk.com > > > > > > > > _______________________________________________ > > Help-cfengine mailing list > > Help-cfengine@gnu.org > > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Thu Sep 16 15:15:35 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C81jD-0003sb-IM for mharc-help-cfengine@gnu.org; Thu, 16 Sep 2004 15:15:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C81j7-0003ry-9K for help-cfengine@gnu.org; Thu, 16 Sep 2004 15:15:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C81j4-0003rT-J5 for help-cfengine@gnu.org; Thu, 16 Sep 2004 15:15:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C81j4-0003rQ-E2 for help-cfengine@gnu.org; Thu, 16 Sep 2004 15:15:26 -0400 Received: from [198.70.184.137] (helo=smtp.poss.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C81dL-0006ip-DU for help-cfengine@gnu.org; Thu, 16 Sep 2004 15:09:31 -0400 Received: from [198.70.184.239] (dhcp-239.poss.com [198.70.184.239]) by endeavor.poss.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTPA id <0I4500464EJUGR@endeavor.poss.com> for help-cfengine@gnu.org; Thu, 16 Sep 2004 15:09:31 -0400 (EDT) Date: Thu, 16 Sep 2004 15:09:30 -0400 From: Christian Pearce In-reply-to: To: "Wheeler, John" Message-id: <1095361769.5579.1186.camel@dhcp-239.poss.com> Organization: Perfect Order, Inc. MIME-version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Content-type: text/plain Content-transfer-encoding: 7BIT References: Cc: help-cfengine@gnu.org, chip@trdlnk.com Subject: RE: Failover in copy... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 19:15:29 -0000 Status: O Content-Length: 3139 Lines: 97 Wow, missed that... How cool. Checking copy from 192.168.1.1:/var/tmp/txt to /var/tmp/txt Connect to 192.168.1.1 = 192.168.1.1 on port cfengine cfengine:: Couldn't open a socket cfengine:: Unable to establish connection with 192.168.1.1 (failover) Checking copy from 192.168.1.2:/var/tmp/txt to /var/tmp/txt Connect to 192.168.1.2 = 192.168.1.2 on port cfengine cfengine:: Couldn't open a socket cfengine:: Unable to establish connection with 192.168.1.2 (failover) cfengine:: Executing script /bin/echo failed...(timeout=0,uid=-1,gid=-1) (Setting umask to 77) cfengine::/bin/echo faile: failed cfengine:: Finished script /bin/echo failed control: actionsequence = ( copy shellcommands ) portal_ip = ( "192.168.1.1:192.168.1.2" ) copy: /var/tmp/txt dest=/var/tmp/txt server=$(portal_ip) failover=failure shellcommands: failure:: "/bin/echo failed" !failure:: "/bin/echo success" On Thu, 2004-09-16 at 14:21, Wheeler, John wrote: > think this is in 2.1.7? > > http://www.cfengine.org/src-mirror/ChangeLog.txt > > search for server. > > > -----Original Message----- > > From: help-cfengine-bounces+jwheeler=eb.com@gnu.org > [mailto:help-cfengine- > > bounces+jwheeler=eb.com@gnu.org] On Behalf Of Chip Seraphine > > Sent: Thursday, September 16, 2004 12:34 PM > > To: Christian Pearce; help-cfengine@gnu.org > > Subject: Re: Failover in copy... > > > > On Thursday 16 September 2004 11:59, Christian Pearce wrote: > > > I know I talked about this before. But isn't this just the inverse > of > > > define? If the copy failed the define class wouldn't be set and the > > > failover would. If the copy was successful just the opposite. > Isn't > > > this redundant? All you have to do is ! the class and you have the > > > other condition. Is there something about failover that I am > missing? > > > > Order of operations. Does "!copygood" mean that the copy in question > has > > not > > run yet, or that it failed? > > > > > I think it might be of interest to have it try a second IP address. > So > > > the server would take comma separated values. > > > > That would be extremely, massively cool. I would recommend following > the > > iterator conventions rather than introducing a new one, however. > > > > -- > > > > Chip Seraphine > > Unix Administrator > > TradeLink, LLC > > 312-264-2048 > > chip@trdlnk.com > > > > > > > > _______________________________________________ > > Help-cfengine mailing list > > Help-cfengine@gnu.org > > http://lists.gnu.org/mailman/listinfo/help-cfengine -- Christian Pearce http://www.commnav.com http://www.perfectorder.com From MAILER-DAEMON Fri Sep 17 16:03:21 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C8Owy-0003IW-Rf for mharc-help-cfengine@gnu.org; Fri, 17 Sep 2004 16:03:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C8Owx-0003Hx-3h for help-cfengine@gnu.org; Fri, 17 Sep 2004 16:03:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C8Owu-0003Hl-Gq for help-cfengine@gnu.org; Fri, 17 Sep 2004 16:03:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8Owu-0003Hi-DU; Fri, 17 Sep 2004 16:03:16 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C8Oqx-0007XB-EM; Fri, 17 Sep 2004 15:57:07 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8HJuth5001608; Fri, 17 Sep 2004 14:56:55 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: bug-cfengine@gnu.org Date: Fri, 17 Sep 2004 14:56:53 -0500 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409171456.53837.chip@trdlnk.com> Cc: help-cfengine@gnu.org Subject: Filter types X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 20:03:19 -0000 Status: O Content-Length: 535 Lines: 19 I recently made the mistake of writing a filter with a type of "file" (shoulda been "reg") and then wasting an hour trying to figure out why tidy: wasn't firing. I wondered why I didn't get a warning from filters.c, but when I look at the pertinent code it looks non-trivial to modify. I might submit a patch for it some-a-day, but I wanted to post to the list so that the next person this happens to won't lose as much time as I did :-) -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Fri Sep 17 17:08:20 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C8Pxs-0006t8-2i for mharc-help-cfengine@gnu.org; Fri, 17 Sep 2004 17:08:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C8Pxq-0006sr-IM for help-cfengine@gnu.org; Fri, 17 Sep 2004 17:08:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C8Pxo-0006se-BK for help-cfengine@gnu.org; Fri, 17 Sep 2004 17:08:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8Pxo-0006sb-9J for help-cfengine@gnu.org; Fri, 17 Sep 2004 17:08:16 -0400 Received: from [152.157.64.30] (helo=nsd.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C8Prt-0006y4-KF for help-cfengine@gnu.org; Fri, 17 Sep 2004 17:02:09 -0400 Received: from [10.2.9.13] (account ckacoroski HELO [10.2.9.13]) by nsd.org (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5418343 for help-cfengine@gnu.org; Fri, 17 Sep 2004 14:02:06 -0700 Message-ID: <414B50CE.7070601@nsd.org> Date: Fri, 17 Sep 2004 14:02:06 -0700 From: Chris Kacoroski Organization: Northshore School District User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Strange intermittent problem with connection... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ckacoroski@nsd.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 21:08:18 -0000 Status: O Content-Length: 568 Lines: 22 Hi, Every now and then (about 1 - 2 times a week with 30 machines) I get this error on the client machine: cfengine:linux9: Received signal 13 (SIGPIPE) while doing [pre-lock-state] cfengine:linux9: Logical start time Fri Sep 17 14:00:11 2004 cfengine:linux9: This sub-task started really at Fri Sep 17 14:00:11 2004 Any idea of why? I rerun the cfagent process and it works fine. cheers, ski -- "When we try to pick out anything by itself, we find it connected to the entire universe" John Muir Chris "Ski" Kacoroski, ckacoroski@nsd.org, 425-489-6263 From MAILER-DAEMON Fri Sep 17 18:06:50 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C8QsU-0003Nd-Bz for mharc-help-cfengine@gnu.org; Fri, 17 Sep 2004 18:06:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C8QsS-0003NU-9W for help-cfengine@gnu.org; Fri, 17 Sep 2004 18:06:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C8QsQ-0003NI-Q9 for help-cfengine@gnu.org; Fri, 17 Sep 2004 18:06:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8QsQ-0003NF-N6 for help-cfengine@gnu.org; Fri, 17 Sep 2004 18:06:46 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C8QmO-0006Lb-Li for help-cfengine@gnu.org; Fri, 17 Sep 2004 18:00:32 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8HM0Uh5012370; Fri, 17 Sep 2004 17:00:31 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: ckacoroski@nsd.org, help-cfengine@gnu.org Date: Fri, 17 Sep 2004 17:00:14 -0500 User-Agent: KMail/1.5.4 References: <414B50CE.7070601@nsd.org> In-Reply-To: <414B50CE.7070601@nsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409171700.15008.chip@trdlnk.com> Cc: Subject: Re: Strange intermittent problem with connection... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 22:06:48 -0000 Status: O Content-Length: 1193 Lines: 45 I see the same thing; always seems to occur when copying files from a remote cfservd. Seems to happen more often on some hosts than on others... and sometimes it gets stuck and fills up the syslogs with that message. (Sorry, nothing to offer other than moral support :-) On Friday 17 September 2004 16:02, Chris Kacoroski wrote: > Hi, > > Every now and then (about 1 - 2 times a week with 30 machines) I get > this error on the client machine: > > cfengine:linux9: Received signal 13 (SIGPIPE) while doing [pre-lock-state] > cfengine:linux9: Logical start time Fri Sep 17 14:00:11 2004 > cfengine:linux9: This sub-task started really at Fri Sep 17 14:00:11 2004 > > Any idea of why? I rerun the cfagent process and it works fine. > > cheers, > > ski > > -- > "When we try to pick out anything by itself, we find it > connected to the entire universe" John Muir > > Chris "Ski" Kacoroski, ckacoroski@nsd.org, 425-489-6263 > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Fri Sep 17 18:45:01 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C8RTQ-0001Yy-VQ for mharc-help-cfengine@gnu.org; Fri, 17 Sep 2004 18:45:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C8RTP-0001Yq-Ux for help-cfengine@gnu.org; Fri, 17 Sep 2004 18:45:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C8RTM-0001Ye-G4 for help-cfengine@gnu.org; Fri, 17 Sep 2004 18:44:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8RTM-0001Yb-Dp for help-cfengine@gnu.org; Fri, 17 Sep 2004 18:44:56 -0400 Received: from [152.157.64.30] (helo=nsd.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C8RNA-0002Zj-Nr for help-cfengine@gnu.org; Fri, 17 Sep 2004 18:38:32 -0400 Received: from [10.2.9.13] (account ckacoroski HELO [10.2.9.13]) by nsd.org (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5420187 for help-cfengine@gnu.org; Fri, 17 Sep 2004 15:38:31 -0700 Message-ID: <414B6767.3040905@nsd.org> Date: Fri, 17 Sep 2004 15:38:31 -0700 From: Chris Kacoroski Organization: Northshore School District User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 CC: help-cfengine@gnu.org References: <414B50CE.7070601@nsd.org> <200409171700.15008.chip@trdlnk.com> In-Reply-To: <200409171700.15008.chip@trdlnk.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Strange intermittent problem with connection... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ckacoroski@nsd.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 22:45:00 -0000 Status: O Content-Length: 1527 Lines: 56 Well, In the next 2 weeks I go from 59 machines to 1500 machines under cfengine management so it will be interesting to see what happens to my cfengine server. I will keep the list posted. cheers, ski Chip Seraphine wrote: > I see the same thing; always seems to occur when copying files from a remote > cfservd. Seems to happen more often on some hosts than on others... and > sometimes it gets stuck and fills up the syslogs with that message. > > (Sorry, nothing to offer other than moral support :-) > > On Friday 17 September 2004 16:02, Chris Kacoroski wrote: > >>Hi, >> >>Every now and then (about 1 - 2 times a week with 30 machines) I get >>this error on the client machine: >> >>cfengine:linux9: Received signal 13 (SIGPIPE) while doing [pre-lock-state] >>cfengine:linux9: Logical start time Fri Sep 17 14:00:11 2004 >>cfengine:linux9: This sub-task started really at Fri Sep 17 14:00:11 2004 >> >>Any idea of why? I rerun the cfagent process and it works fine. >> >>cheers, >> >>ski >> >>-- >>"When we try to pick out anything by itself, we find it >> connected to the entire universe" John Muir >> >>Chris "Ski" Kacoroski, ckacoroski@nsd.org, 425-489-6263 >> >> >>_______________________________________________ >>Help-cfengine mailing list >>Help-cfengine@gnu.org >>http://lists.gnu.org/mailman/listinfo/help-cfengine >> > > -- "When we try to pick out anything by itself, we find it connected to the entire universe" John Muir Chris "Ski" Kacoroski, ckacoroski@nsd.org, 425-489-6263 From MAILER-DAEMON Sat Sep 18 09:13:45 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C8f26-0005cz-W8 for mharc-help-cfengine@gnu.org; Sat, 18 Sep 2004 09:13:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C8f24-0005cr-Nm for help-cfengine@gnu.org; Sat, 18 Sep 2004 09:13:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C8f22-0005aY-KA for help-cfengine@gnu.org; Sat, 18 Sep 2004 09:13:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8f22-0005a4-6z for help-cfengine@gnu.org; Sat, 18 Sep 2004 09:13:38 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C8evy-0004NK-8Z for help-cfengine@gnu.org; Sat, 18 Sep 2004 09:07:22 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i8ID7LtH006924; Sat, 18 Sep 2004 15:07:26 +0200 (MEST) Message-Id: <200409181307.i8ID7LtH006924@nexus.iu.hio.no> Date: Sat, 18 Sep 2004 15:07:21 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: chip@trdlnk.com In-Reply-To: <200409171456.53837.chip@trdlnk.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: help-cfengine@gnu.org Subject: Re: Filter types X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Sep 2004 13:13:41 -0000 Status: O Content-Length: 812 Lines: 24 I added this as a synonym for reg M On 17 Sep, Chip Seraphine wrote: > > I recently made the mistake of writing a filter with a type of "file" (shoulda > been "reg") and then wasting an hour trying to figure out why tidy: wasn't > firing. I wondered why I didn't get a warning from filters.c, but when I > look at the pertinent code it looks non-trivial to modify. I might submit a > patch for it some-a-day, but I wanted to post to the list so that the next > person this happens to won't lose as much time as I did :-) > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Sat Sep 18 10:38:32 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C8gMC-0004dE-Gq for mharc-help-cfengine@gnu.org; Sat, 18 Sep 2004 10:38:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C8gM9-0004cb-WA for help-cfengine@gnu.org; Sat, 18 Sep 2004 10:38:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C8gM8-0004c1-EF for help-cfengine@gnu.org; Sat, 18 Sep 2004 10:38:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8gM8-0004bk-84 for help-cfengine@gnu.org; Sat, 18 Sep 2004 10:38:28 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C8gFY-0006SK-S3 for help-cfengine@gnu.org; Sat, 18 Sep 2004 10:31:41 -0400 Received: from mulva.chicago.trdlnk.com (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8IEVeh5023573; Sat, 18 Sep 2004 09:31:40 -0500 (CDT) Received: from mulva (mulva [10.10.1.45]) by mulva.chicago.trdlnk.com (8.12.10+Sun/8.12.10) with ESMTP id i8IEVdrK026543; Sat, 18 Sep 2004 09:31:40 -0500 (CDT) Date: Sat, 18 Sep 2004 09:31:39 -0500 (CDT) From: Chip Seraphine X-X-Sender: chip@mulva To: Mark.Burgess@iu.hio.no In-Reply-To: <200409181307.i8ID7LtH006924@nexus.iu.hio.no> Message-ID: References: <200409181307.i8ID7LtH006924@nexus.iu.hio.no> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: help-cfengine@gnu.org Subject: Re: Filter types X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Sep 2004 14:38:30 -0000 Status: O Content-Length: 1030 Lines: 37 Hey, that's a good idea. And a lot easier :-) Thanks! Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com On Sat, 18 Sep 2004 Mark.Burgess@iu.hio.no wrote: > > I added this as a synonym for reg > M > > On 17 Sep, Chip Seraphine wrote: > > > > I recently made the mistake of writing a filter with a type of "file" (shoulda > > been "reg") and then wasting an hour trying to figure out why tidy: wasn't > > firing. I wondered why I didn't get a warning from filters.c, but when I > > look at the pertinent code it looks non-trivial to modify. I might submit a > > patch for it some-a-day, but I wanted to post to the list so that the next > > person this happens to won't lose as much time as I did :-) > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Work: +47 22453272 Email: Mark.Burgess@iu.hio.no > Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > From MAILER-DAEMON Sun Sep 19 03:42:38 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C8wLF-0005XN-Rc for mharc-help-cfengine@gnu.org; Sun, 19 Sep 2004 03:42:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C8wLE-0005X8-8a for help-cfengine@gnu.org; Sun, 19 Sep 2004 03:42:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C8wLD-0005Ww-6v for help-cfengine@gnu.org; Sun, 19 Sep 2004 03:42:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8wLD-0005Wt-54 for help-cfengine@gnu.org; Sun, 19 Sep 2004 03:42:35 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C8wFK-0002fp-8P for help-cfengine@gnu.org; Sun, 19 Sep 2004 03:36:30 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i8J7aVD9008918; Sun, 19 Sep 2004 09:36:35 +0200 (MEST) Message-Id: <200409190736.i8J7aVD9008918@nexus.iu.hio.no> Date: Sun, 19 Sep 2004 09:36:31 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: claudio.dransutavicius@bell.ca In-Reply-To: <40AD25EF.EBEAF9BE@bell.ca> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: help-cfengine@gnu.org Subject: Re: Problem copying to home directories using home directive X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Sep 2004 07:42:36 -0000 Status: O Content-Length: 2281 Lines: 99 Apologies for the delay in replying. I do not normally have time to reply to this kind of query personally, but I kept this message in case there was a bug to be examined. From the two messages you sent it looks as though you simply made some wrong definitions. If you users are under /export/home then I would write mountpattern = ( /export ) homepattern = ( home ) You have "u1" for the dubdirectori in which the users live. That does not seem to agree with the information in your other message. regards Mark ---------------------- >Hello >Could someone tell me if this works or not . I already spent a couple of days on it. >From Reference Manual: >The home directive can be used as a destination, in which case cfengine will copy files to every user on the system. >This is handy for distributing setup files and keeping them updated: >copy: > /local/masterfiles/.cshrc dest=home/.cshrc mode=0600 >Or am I wasting my time. >This works > /local/masterfiles/.cshrc dest=/export/home/user1/.cshrc >Thanks >T.J. On 20 May, DRANSUTAVICIUS, CLAUDIO wrote: > > > Hello > > I am using the home directive to copy files to each users home > directory: > Here is the code: > > control: > > master_Userkeys = ( /var/Keys/userkeys ) > > # Local convention for setting home pattern directive > # e.g. /export/home/. Home dirs are u1,u2,u3,u?,ua,ub ... > # > > mountpattern = ( /export/home/ ) > > # Match a name is users directory > > homepattern = ( u1 ) > > copy: > > any:: > # > # Make sure each user has an up to date user key server > # setup. > # > > $(master_Userkeys)/new.key dest=home/new.key mode=0600 > > Here I would expect to get new.key copied over to /export/home/u1/ > > cfengine tries to think but nothing happens. > > Where did I go wrong. > > TJ > > > > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://mail.gnu.org/mailman/listinfo/help-cfengine ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Sun Sep 19 23:15:31 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9EeJ-0004fG-CC for mharc-help-cfengine@gnu.org; Sun, 19 Sep 2004 23:15:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9EeH-0004eU-Bd for help-cfengine@gnu.org; Sun, 19 Sep 2004 23:15:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9EeF-0004eI-FZ for help-cfengine@gnu.org; Sun, 19 Sep 2004 23:15:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9EeF-0004eF-8v for help-cfengine@gnu.org; Sun, 19 Sep 2004 23:15:27 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1C9EXv-0006MX-JE for help-cfengine@gnu.org; Sun, 19 Sep 2004 23:08:55 -0400 Received: (qmail 26494 invoked from network); 20 Sep 2004 03:08:40 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 20 Sep 2004 03:08:40 -0000 Date: Mon, 20 Sep 2004 13:06:57 +1000 (EST) From: Timothy Sven Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: =?ISO-8859-1?Q?=22Sami_J=2E_M=E4kinen=22?= In-Reply-To: <41456121.9060805@almamedia.fi> Message-ID: References: <20040913084606.GC27956@cip.informatik.uni-erlangen.de> <41456121.9060805@almamedia.fi> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1250893099-1095649616=:1728" Cc: help-cfengine@gnu.org Subject: Re: ssh-keygen & other things X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2004 03:15:29 -0000 Status: O Content-Length: 2041 Lines: 62 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1250893099-1095649616=:1728 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Mon, 13 Sep 2004, "Sami J. Mäkinen" wrote: > > Thomas Glanzmann wrote: >>> I want to run ssh-keygen if /root/.ssh/id_dsa.pub doesn't exist. > >> use the startup scripts of your distributor, if they don't support that, >> fix them. > > Often, it might be a bad idea to tamper with init scripts > provided by your distributor/vendor. Your fixed script might be > overwritten with a update, for example. It is always a good idea > to make a copy of your own, like this on a red hat system: > > cd /etc/init.d > cp sshd sshd.my > vi sshd.my > chkconfig --del sshd > chkconfig --add sshd.my > > (this example was stupid because there is really nothing > wrong with sshd init script provided by red hat) What if you modify them with editfiles? And, at least on Redhat, if you keep the output from your RPM update, it will usually tell you something like "/etc/init.d/sshd installed as /etc/init.d/sshd.rpmnew". > ....or run a shellcommand from cfengine to achieve this, like > > "/bin/sh -c '[ -f /root/.ssh/id_dsa.pub ] || ssh-keygen blaa blaa'" > > Even though cfengine is good and ver useful, you should still remember > that simple sh onliners are often the most straightforward > and readable way to do certain things. Ok :). When i wrote this, I was thinking that one of Mark's purposes in writing cfengine was to eliminate the large number of if statements found in shell scripts, so I thought that there might be some other way of doing this. -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ --0-1250893099-1095649616=:1728-- From MAILER-DAEMON Mon Sep 20 15:38:28 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9TzY-0002BZ-6E for mharc-help-cfengine@gnu.org; Mon, 20 Sep 2004 15:38:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9TzV-0002AT-Jm for help-cfengine@gnu.org; Mon, 20 Sep 2004 15:38:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9TzU-00029n-0D for help-cfengine@gnu.org; Mon, 20 Sep 2004 15:38:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9TzT-00029d-Tc for help-cfengine@gnu.org; Mon, 20 Sep 2004 15:38:23 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9TtM-0005vD-3B for help-cfengine@gnu.org; Mon, 20 Sep 2004 15:32:05 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8KJVu0T025400 for ; Mon, 20 Sep 2004 14:31:56 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: help-cfengine@gnu.org Date: Mon, 20 Sep 2004 14:31:55 -0500 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409201431.55749.chip@trdlnk.com> Subject: Sol packages? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2004 19:38:26 -0000 Status: O Content-Length: 371 Lines: 18 Noticed that this line crept into the changelog: "Patch for solaris package manager added (Louis Erickson - wwonko@rdwarf.com)" Is this support for the Solaris packages in the packages: section, like we now have for RPM? (he says, trying to contain his irrational exuberance...) -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Mon Sep 20 17:06:37 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9VMr-0006hT-ML for mharc-help-cfengine@gnu.org; Mon, 20 Sep 2004 17:06:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9VMp-0006h5-ON for help-cfengine@gnu.org; Mon, 20 Sep 2004 17:06:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9VMn-0006gt-QZ for help-cfengine@gnu.org; Mon, 20 Sep 2004 17:06:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9VMn-0006gq-Mw for help-cfengine@gnu.org; Mon, 20 Sep 2004 17:06:33 -0400 Received: from [198.70.184.137] (helo=smtp.poss.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9VGY-0002dj-2l for help-cfengine@gnu.org; Mon, 20 Sep 2004 17:00:06 -0400 Received: from [198.70.184.239] (dhcp-239.poss.com [198.70.184.239]) by endeavor.poss.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTPA id <0I4C00MT4YC39K@endeavor.poss.com> for help-cfengine@gnu.org; Mon, 20 Sep 2004 17:00:04 -0400 (EDT) Date: Mon, 20 Sep 2004 17:00:03 -0400 From: Christian Pearce To: help-cfengine@gnu.org Message-id: <1095714003.14181.4509.camel@dhcp-239.poss.com> Organization: Perfect Order, Inc. MIME-version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Content-type: text/plain Content-transfer-encoding: 7BIT Subject: VIM syntax highlighting... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2004 21:06:36 -0000 Status: O Content-Length: 588 Lines: 22 http://www.pearcec.com/cfengine.vim It is a work in progress. It supports nested PHP. Please provide me with feedback. I am going to work on getting it vim, when I integrate any feedback provided. There are a few more things I would looke to add. To use it copy this file to .vim/syntax/. Then load a cfengine file. :set syntax=cfengine. BTW: I am working on a cfengine style guide. I will produce something soon. If anyone else is working on it let me know. I don't want to duplicate work. -- Christian Pearce http://www.commnav.com http://www.perfectorder.com From MAILER-DAEMON Mon Sep 20 18:07:14 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9WJV-0005rj-MQ for mharc-help-cfengine@gnu.org; Mon, 20 Sep 2004 18:07:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9WJS-0005qr-Vq for help-cfengine@gnu.org; Mon, 20 Sep 2004 18:07:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9WJR-0005q6-2n for help-cfengine@gnu.org; Mon, 20 Sep 2004 18:07:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9WJQ-0005px-Ts for help-cfengine@gnu.org; Mon, 20 Sep 2004 18:07:08 -0400 Received: from [67.107.182.10] (helo=karl.presidio.alexa.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9WDM-00036V-LS for help-cfengine@gnu.org; Mon, 20 Sep 2004 18:00:53 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C49F5D.4A10AEDE" Date: Mon, 20 Sep 2004 15:00:49 -0700 Message-ID: <41089CB27BD8D24E8385C8003EDAF7AB014D6EBE@karl.alexa.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to detach a long-run processes from cfengine??? Thread-Index: AcSfXUmuHeMTd+ANQYCPfiIwGPEBtA== From: "Guolin Cheng" To: Subject: How to detach a long-run processes from cfengine??? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2004 22:07:11 -0000 Status: O Content-Length: 6048 Lines: 150 This is a multi-part message in MIME format. ------_=_NextPart_001_01C49F5D.4A10AEDE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Just got a problem: How to detach a program from cfengine? The program is called from "shellcommands" section and will run as long as one hour, I would like it to be detached from the main cfagent process just after it is called? If it possible? I tried the following rules but it failed, cfagent still wait there until the called program to die. ..... Shellcommands: Linux:: "/someAbsoluteDir/Long_run_jobs.sh /dev/null 2>&1 &" ...... Any suggestions? Thanks a lot. --Guolin ------_=_NextPart_001_01C49F5D.4A10AEDE Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable How to detach a long-run processes from cfengine???

Hi,

  Just got a problem: How to detach a program = from cfengine?  The program is called from shellcommands section and will = run as long as one hour, I would like it to be detached from the main = cfagent = process just after it is called? If it = possible?

  I tried the following rules but it failed, cfagent still wait there until the called program to die.

..

   Shellcommands:

        Linux::

        =         /someAbsoluteDir/Long_run_jobs.sh  = </dev/null >/dev/null 2>&1 &

 


Any = suggestions?

 Thanks a lot.

 --Guolin


------_=_NextPart_001_01C49F5D.4A10AEDE-- From MAILER-DAEMON Mon Sep 20 19:05:40 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9XE4-00038Y-2N for mharc-help-cfengine@gnu.org; Mon, 20 Sep 2004 19:05:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9XE1-00038N-Ob for help-cfengine@gnu.org; Mon, 20 Sep 2004 19:05:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9XDy-000388-Pb for help-cfengine@gnu.org; Mon, 20 Sep 2004 19:05:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9XDy-000385-L0 for help-cfengine@gnu.org; Mon, 20 Sep 2004 19:05:34 -0400 Received: from [67.138.244.194] (helo=denk.nakedape.priv) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9X7g-0002ir-T9 for help-cfengine@gnu.org; Mon, 20 Sep 2004 18:59:05 -0400 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by denk.nakedape.priv (Postfix) with ESMTP id C7923B00CE for ; Mon, 20 Sep 2004 15:38:27 -0700 (PDT) From: Wil Cooley To: help-cfengine@gnu.org In-Reply-To: <414B50CE.7070601@nsd.org> References: <414B50CE.7070601@nsd.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-R7+bhnctXfbXj5igHHVO" Organization: Naked Ape Consulting, Ltd Date: Mon, 20 Sep 2004 15:38:27 -0700 Message-Id: <1095719907.6764.9.camel@denk.nakedape.priv> Mime-Version: 1.0 X-Mailer: Evolution 1.5.9.1 (1.5.9.1-2) Subject: Re: Strange intermittent problem with connection... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2004 23:05:38 -0000 Status: O Content-Length: 1272 Lines: 44 --=-R7+bhnctXfbXj5igHHVO Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2004-09-17 at 14:02 -0700, Chris Kacoroski wrote: > Hi, >=20 > Every now and then (about 1 - 2 times a week with 30 machines) I get=20 > this error on the client machine: >=20 > cfengine:linux9: Received signal 13 (SIGPIPE) while doing [pre-lock-state= ] > cfengine:linux9: Logical start time Fri Sep 17 14:00:11 2004 > cfengine:linux9: This sub-task started really at Fri Sep 17 14:00:11 2004 >=20 > Any idea of why? I rerun the cfagent process and it works fine. Yes, you've followed the tutorial and scheduled cfexecd to run at the same time through cron and it's internal scheduled. I did the same thing: http://nakedape.cc/wiki/ApplicationNotes/CfEngine Wil --=20 Wil Cooley wcooley@nakedape.cc Naked Ape Consulting http://nakedape.cc --=-R7+bhnctXfbXj5igHHVO Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBT1vjJpn3uYWUEaoRAubOAJ0R4SePw1MRypzPxvdh/bJmDesC+wCfQ6Qc y6P+sVCg85kfxP+8AshIGpE= =8PVR -----END PGP SIGNATURE----- --=-R7+bhnctXfbXj5igHHVO-- From MAILER-DAEMON Mon Sep 20 19:15:11 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9XNH-0005HT-3Y for mharc-help-cfengine@gnu.org; Mon, 20 Sep 2004 19:15:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9XNE-0005H5-N0 for help-cfengine@gnu.org; Mon, 20 Sep 2004 19:15:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9XNC-0005GZ-EF for help-cfengine@gnu.org; Mon, 20 Sep 2004 19:15:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9XNC-0005GW-08 for help-cfengine@gnu.org; Mon, 20 Sep 2004 19:15:06 -0400 Received: from [67.138.244.194] (helo=denk.nakedape.priv) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9XGv-0004Cx-N8 for help-cfengine@gnu.org; Mon, 20 Sep 2004 19:08:37 -0400 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by denk.nakedape.priv (Postfix) with ESMTP id 0567AB00CE for ; Mon, 20 Sep 2004 16:08:37 -0700 (PDT) From: Wil Cooley To: help-cfengine@gnu.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Tpgc6L/2tEgGMsyBhJgk" Organization: Naked Ape Consulting, Ltd Date: Mon, 20 Sep 2004 16:08:36 -0700 Message-Id: <1095721716.6764.24.camel@denk.nakedape.priv> Mime-Version: 1.0 X-Mailer: Evolution 1.5.9.1 (1.5.9.1-2) Subject: List of monitored files? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2004 23:15:09 -0000 Status: O Content-Length: 1200 Lines: 41 --=-Tpgc6L/2tEgGMsyBhJgk Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I'm guessing one of the databases in /var/cfengine contains the list of files and directories controlled with cfengine, along with checksums (for files conf'd with that type of check), timestamps, etc. Is there (an easy) way to extract this data into something awk-able? I'm working with a managed hosting provider who's maintaining Tripwire on a customer's systems and it would be very convenient if I could get at this data with one swell foop instead of reviewing every one of my cf config files. I'm guessing a little Perl/Python could do it, if I knew what the database structures were... Wil --=20 Wil Cooley wcooley@nakedape.cc Naked Ape Consulting http://nakedape.cc --=-Tpgc6L/2tEgGMsyBhJgk Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBT2L0Jpn3uYWUEaoRAj+vAJ42TMKdHKo4u5e504QB44Xgs6MLVwCfZlPK fAFA630CQMK2LiasdU2SeWE= =Mayl -----END PGP SIGNATURE----- --=-Tpgc6L/2tEgGMsyBhJgk-- From MAILER-DAEMON Mon Sep 20 20:08:13 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9YCb-0007ub-2m for mharc-help-cfengine@gnu.org; Mon, 20 Sep 2004 20:08:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9YCX-0007uC-1x for help-cfengine@gnu.org; Mon, 20 Sep 2004 20:08:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9YCV-0007te-Ic for help-cfengine@gnu.org; Mon, 20 Sep 2004 20:08:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9YCV-0007t9-CX for help-cfengine@gnu.org; Mon, 20 Sep 2004 20:08:07 -0400 Received: from [198.70.184.137] (helo=smtp.poss.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9Y6F-00037i-Vy for help-cfengine@gnu.org; Mon, 20 Sep 2004 20:01:40 -0400 Received: from stratus.poss.com (stratus.poss.com [198.70.184.133]) by endeavor.poss.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0I4D00M4E6QR9K@endeavor.poss.com> for help-cfengine@gnu.org; Mon, 20 Sep 2004 20:01:39 -0400 (EDT) Date: Mon, 20 Sep 2004 19:52:19 -0400 (EDT) From: Christian Pearce To: Guolin Cheng , help-cfengine@gnu.org Message-id: <30803740.1095724339297.JavaMail.root@stratus.poss.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-15 Content-transfer-encoding: quoted-printable Cc: Subject: Re:How to detach a long-run processes from cfengine??? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 00:08:09 -0000 Status: O Content-Length: 1176 Lines: 59 Take a look at this thread. See if this helps... http://lists.gnu.org/archive/html/help-cfengine/2004-09/msg00096.html I am not certain I understand " /dev/null 2>&1 &' useshell=3Dtrue Make sure you have useshell=3Dtrue. You can also trying adding echo "cfengine-die" after the &. -- Christian Pearce http://www.commnav.com http://www.perfectorder.com ---------Original Message---------- Hi, Just got a problem: How to detach a programfrom cfengine?=20 Theprogram iscalled from=93shellcommands=94 section and will run as=20 long as one hour, I would like it tobedetached from the main=20 cfagentprocess just after it iscalled? If it possible? I tried the following rules but it failed, cfagent still wait=20 there until thecalled program to die. =85.. Shellcommands: Linux:: =93/someAbsoluteDir/Long_run_jobs.sh =20 /dev/null 2>&1&=94 =85=85 Any suggestions? Thanks a lot. --Guolin _______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine From MAILER-DAEMON Mon Sep 20 20:39:09 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9YgX-0006TU-Gq for mharc-help-cfengine@gnu.org; Mon, 20 Sep 2004 20:39:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9YgV-0006TP-Oi for help-cfengine@gnu.org; Mon, 20 Sep 2004 20:39:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9YgV-0006TC-2B for help-cfengine@gnu.org; Mon, 20 Sep 2004 20:39:07 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9YgU-0006T9-UZ for help-cfengine@gnu.org; Mon, 20 Sep 2004 20:39:06 -0400 Received: from [198.70.184.137] (helo=smtp.poss.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9YaT-0007Rg-LC for help-cfengine@gnu.org; Mon, 20 Sep 2004 20:32:53 -0400 Received: from stratus.poss.com (stratus.poss.com [198.70.184.133]) by endeavor.poss.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0I4D00MBA86S9K@endeavor.poss.com> for help-cfengine@gnu.org; Mon, 20 Sep 2004 20:32:52 -0400 (EDT) Date: Mon, 20 Sep 2004 20:23:32 -0400 (EDT) From: Christian Pearce To: help-cfengine@gnu.org Message-id: <26603370.1095726212499.JavaMail.root@stratus.poss.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7BIT Subject: Fw:Re: VIM syntax highlighting... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 00:39:07 -0000 Status: O Content-Length: 2013 Lines: 73 Brian was kind enough to point out to me that someone else started one. I tried it and am having some issues with it. Not to mention I happen to embed PHP in my scripts. (I load PHP syntax highlighting for it.) I emailed the author to see if he was still interested in maintaining the file. If not I am going to take over with parts of his and parts of mine. Or if he is willing have him makes some changes. -- Christian Pearce http://www.commnav.com http://www.perfectorder.com ---------Original Message---------- From: "Brian Youngstrom" To: "Christian Pearce" CC: Sent: Monday, 09/20/2004 7:10 PM Subject: Re: VIM syntax highlighting... Have you seen this? http://vim.sourceforge.net/scripts/script.php?script_id=329 In case you don't want to re-invent the wheel.. (I did update it for some 2.x keywords, not involved otherwise) -Brian On Mon, Sep 20, 2004 at 05:00:03PM -0400, Christian Pearce wrote: > http://www.pearcec.com/cfengine.vim > > It is a work in progress. It supports nested PHP. Please > provide me > with feedback. I am going to work on getting it vim, when I > integrate > any feedback provided. There are a few more things I would looke > to > add. > > To use it copy this file to .vim/syntax/. Then load a cfengine > file. :set syntax=cfengine. > > BTW: I am working on a cfengine style guide. I will produce > something > soon. If anyone else is working on it let me know. I don't want > to > duplicate work. > -- Christian Pearce > http://www.commnav.com > http://www.perfectorder.com > > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine -- Brian Youngstrom byoung@cs.washington.edu Computer Science & Engineering University of Washington GPG fingerprint: CFAA 6E9B 7899 1E0D FBA9 8757 0AC4 42DC A175 6C3A From MAILER-DAEMON Mon Sep 20 20:52:14 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9YtB-0008Ph-Kn for mharc-help-cfengine@gnu.org; Mon, 20 Sep 2004 20:52:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9Yt9-0008Nt-QA for help-cfengine@gnu.org; Mon, 20 Sep 2004 20:52:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9Yt7-0008N7-41 for help-cfengine@gnu.org; Mon, 20 Sep 2004 20:52:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9Yt6-0008Mz-Kr for help-cfengine@gnu.org; Mon, 20 Sep 2004 20:52:08 -0400 Received: from [67.107.182.10] (helo=karl.presidio.alexa.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9Ymv-0000pU-6F for help-cfengine@gnu.org; Mon, 20 Sep 2004 20:45:45 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 20 Sep 2004 17:45:44 -0700 Message-ID: <41089CB27BD8D24E8385C8003EDAF7AB014D6EEF@karl.alexa.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to detach a long-run processes from cfengine??? Thread-Index: AcSfbjIQANQtexfTQPaB43Hq/LGs2wABfYEA From: "Guolin Cheng" To: "Christian Pearce" , Cc: Subject: RE: How to detach a long-run processes from cfengine??? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 00:52:12 -0000 Status: O Content-Length: 1553 Lines: 76 Christian, I'll try the "cfengine-die" statement. " /dev/null 2>&1 &' useshell=3Dtrue Make sure you have useshell=3Dtrue. You can also trying adding echo "cfengine-die" after the &. -- Christian Pearce http://www.commnav.com http://www.perfectorder.com ---------Original Message---------- Hi, Just got a problem: How to detach a programfrom cfengine?=20 Theprogram iscalled from"shellcommands" section and will run as=20 long as one hour, I would like it tobedetached from the main=20 cfagentprocess just after it iscalled? If it possible? I tried the following rules but it failed, cfagent still wait=20 there until thecalled program to die. ..... Shellcommands: Linux:: "/someAbsoluteDir/Long_run_jobs.sh =20 /dev/null 2>&1&" ...... Any suggestions? Thanks a lot. --Guolin _______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine From MAILER-DAEMON Mon Sep 20 22:32:46 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9aST-0002Zp-PL for mharc-help-cfengine@gnu.org; Mon, 20 Sep 2004 22:32:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9aSS-0002Za-3H for help-cfengine@gnu.org; Mon, 20 Sep 2004 22:32:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9aSQ-0002Yl-Cm for help-cfengine@gnu.org; Mon, 20 Sep 2004 22:32:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9aSQ-0002Yc-2D for help-cfengine@gnu.org; Mon, 20 Sep 2004 22:32:42 -0400 Received: from [65.109.239.158] (helo=host3.drak.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9aMU-0005aw-KJ for help-cfengine@gnu.org; Mon, 20 Sep 2004 22:26:34 -0400 Received: from localhost (206.180.154.158.adsl.hal-pc.org [206.180.154.158]) by host3.drak.net (8.12.10/8.12.10) with ESMTP id i8L2QWhl019143 for ; Mon, 20 Sep 2004 22:26:32 -0400 Date: Mon, 20 Sep 2004 21:38:24 -0500 From: Russell Adams To: help-cfengine@gnu.org Message-ID: <20040921023824.GB20849@keroberos> Mail-Followup-To: help-cfengine@gnu.org References: <1095721716.6764.24.camel@denk.nakedape.priv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1095721716.6764.24.camel@denk.nakedape.priv> User-Agent: Mutt/1.4.2.1i Subject: Re: List of monitored files? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 02:32:44 -0000 Status: O Content-Length: 1250 Lines: 41 I've had moderate success dumping the database with the BerkleyDB tools. I think it was db_dump, with a parameter or two. Its been a while. ;] Rujssell On Mon, Sep 20, 2004 at 04:08:36PM -0700, Wil Cooley wrote: > > I'm guessing one of the databases in /var/cfengine contains the list of > files and directories controlled with cfengine, along with checksums > (for files conf'd with that type of check), timestamps, etc. Is there > (an easy) way to extract this data into something awk-able? > > I'm working with a managed hosting provider who's maintaining Tripwire > on a customer's systems and it would be very convenient if I could get > at this data with one swell foop instead of reviewing every one of my cf > config files. > > I'm guessing a little Perl/Python could do it, if I knew what the > database structures were... > > Wil > -- > Wil Cooley wcooley@nakedape.cc > Naked Ape Consulting http://nakedape.cc > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine ----------------------------- Russell Adams RLAdams@AdamsInfoServ.com http://www.adamsinfoserv.com/ From MAILER-DAEMON Tue Sep 21 00:30:06 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9cI2-0000eZ-1b for mharc-help-cfengine@gnu.org; Tue, 21 Sep 2004 00:30:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9cHy-0000dQ-CM for help-cfengine@gnu.org; Tue, 21 Sep 2004 00:30:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9cHw-0000cs-M0 for help-cfengine@gnu.org; Tue, 21 Sep 2004 00:30:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9cHw-0000cp-IR for help-cfengine@gnu.org; Tue, 21 Sep 2004 00:30:00 -0400 Received: from [199.201.145.78] (helo=smoe.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9cBH-00033Q-GT for help-cfengine@gnu.org; Tue, 21 Sep 2004 00:23:07 -0400 Received: from smoe.org (ident-user@localhost [127.0.0.1]) by smoe.org (8.12.10/8.12.10) with ESMTP id i8L4JaJu000574; Tue, 21 Sep 2004 00:19:36 -0400 (EDT) Received: (from jeffw@localhost) by smoe.org (8.12.10/8.12.10/Submit) id i8L4JZZb000573; Tue, 21 Sep 2004 00:19:35 -0400 (EDT) Date: Tue, 21 Sep 2004 00:19:35 -0400 From: Jeff Wasilko To: Chip Seraphine Message-ID: <20040921041935.GI15701@jane.smoe.org> Mail-Followup-To: Chip Seraphine , help-cfengine@gnu.org References: <200409201431.55749.chip@trdlnk.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409201431.55749.chip@trdlnk.com> User-Agent: Mutt/1.3.99i X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . X-Virus-Scanned: clamdscan / ClamAV version 0.60 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.2 (smoe.org [127.0.0.1]); Tue, 21 Sep 2004 00:19:36 -0400 (EDT) Cc: help-cfengine@gnu.org Subject: Re: Sol packages? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 04:30:03 -0000 Status: O Content-Length: 404 Lines: 14 On Mon, Sep 20, 2004 at 02:31:55PM -0500, Chip Seraphine wrote: > > Noticed that this line crept into the changelog: > > "Patch for solaris package manager added (Louis Erickson - wwonko@rdwarf.com)" > > Is this support for the Solaris packages in the packages: section, like we now > have for RPM? (he says, trying to contain his irrational exuberance...) Yeha, I'd be interested in that too! From MAILER-DAEMON Tue Sep 21 02:17:13 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9dxh-0006TR-LJ for mharc-help-cfengine@gnu.org; Tue, 21 Sep 2004 02:17:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9dxf-0006T3-VW for help-cfengine@gnu.org; Tue, 21 Sep 2004 02:17:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9dxe-0006Sr-2R for help-cfengine@gnu.org; Tue, 21 Sep 2004 02:17:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9dxd-0006So-QR for help-cfengine@gnu.org; Tue, 21 Sep 2004 02:17:09 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9drf-0000WA-Il for help-cfengine@gnu.org; Tue, 21 Sep 2004 02:11:00 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i8L6Axa5023964; Tue, 21 Sep 2004 08:11:08 +0200 (MEST) Message-Id: <200409210611.i8L6Axa5023964@nexus.iu.hio.no> Date: Tue, 21 Sep 2004 08:10:59 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: wcooley@nakedape.cc In-Reply-To: <1095721716.6764.24.camel@denk.nakedape.priv> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: help-cfengine@gnu.org Subject: Re: List of monitored files? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 06:17:12 -0000 Status: O Content-Length: 1154 Lines: 36 You can use dbdump, but you won't make much sense of the checksums. Perhaps it would be useful to make a small utility to dump this in text format? I could add it to 2.1.11 if you like? cfdigestdump or something M On 20 Sep, Wil Cooley wrote: > > I'm guessing one of the databases in /var/cfengine contains the list of > files and directories controlled with cfengine, along with checksums > (for files conf'd with that type of check), timestamps, etc. Is there > (an easy) way to extract this data into something awk-able? > > I'm working with a managed hosting provider who's maintaining Tripwire > on a customer's systems and it would be very convenient if I could get > at this data with one swell foop instead of reviewing every one of my cf > config files. > > I'm guessing a little Perl/Python could do it, if I knew what the > database structures were... > > Wil ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Tue Sep 21 08:31:23 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9jnn-0002Mb-HR for mharc-help-cfengine@gnu.org; Tue, 21 Sep 2004 08:31:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9jnk-0002LN-Mf for help-cfengine@gnu.org; Tue, 21 Sep 2004 08:31:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9jnh-0002Jx-AB for help-cfengine@gnu.org; Tue, 21 Sep 2004 08:31:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9jnh-0002Jf-2S for help-cfengine@gnu.org; Tue, 21 Sep 2004 08:31:17 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9jh9-0003UK-3u for help-cfengine@gnu.org; Tue, 21 Sep 2004 08:24:31 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8LCOP0T004115; Tue, 21 Sep 2004 07:24:26 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: Mark.Burgess@iu.hio.no, wcooley@nakedape.cc Date: Tue, 21 Sep 2004 07:24:25 -0500 User-Agent: KMail/1.5.4 References: <200409210611.i8L6Axa5023964@nexus.iu.hio.no> In-Reply-To: <200409210611.i8L6Axa5023964@nexus.iu.hio.no> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409210724.25734.chip@trdlnk.com> Cc: help-cfengine@gnu.org Subject: Re: List of monitored files? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 12:31:21 -0000 Status: O Content-Length: 1659 Lines: 58 Mark, That would indeed be a boon to humanity. Being able to sniff around in the friends db would also rock well. On Tuesday 21 September 2004 01:10, Mark.Burgess@iu.hio.no wrote: > > You can use dbdump, but you won't make much sense of the checksums. > Perhaps it would be useful to make a small utility to dump this in > text format? I could add it to 2.1.11 if you like? > > cfdigestdump > > or something > M > > On 20 Sep, Wil Cooley wrote: > > > > I'm guessing one of the databases in /var/cfengine contains the list of > > files and directories controlled with cfengine, along with checksums > > (for files conf'd with that type of check), timestamps, etc. Is there > > (an easy) way to extract this data into something awk-able? > > > > I'm working with a managed hosting provider who's maintaining Tripwire > > on a customer's systems and it would be very convenient if I could get > > at this data with one swell foop instead of reviewing every one of my cf > > config files. > > > > I'm guessing a little Perl/Python could do it, if I knew what the > > database structures were... > > > > Wil > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Work: +47 22453272 Email: Mark.Burgess@iu.hio.no > Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Tue Sep 21 10:47:56 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9lvw-0003Yt-3f for mharc-help-cfengine@gnu.org; Tue, 21 Sep 2004 10:47:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9lvs-0003YS-MT for help-cfengine@gnu.org; Tue, 21 Sep 2004 10:47:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9lvp-0003Wb-Ij for help-cfengine@gnu.org; Tue, 21 Sep 2004 10:47:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9lvp-0003WR-FX for help-cfengine@gnu.org; Tue, 21 Sep 2004 10:47:49 -0400 Received: from [63.105.18.11] (helo=denk.nakedape.priv) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9lpe-0001AU-EH for help-cfengine@gnu.org; Tue, 21 Sep 2004 10:41:26 -0400 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by denk.nakedape.priv (Postfix) with ESMTP id 551ABB00CE; Tue, 21 Sep 2004 07:41:22 -0700 (PDT) From: Wil Cooley To: Mark.Burgess@iu.hio.no In-Reply-To: <200409210611.i8L6Axa5023964@nexus.iu.hio.no> References: <200409210611.i8L6Axa5023964@nexus.iu.hio.no> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-yYQ6tdALq2SLJTVrn1nl" Organization: Naked Ape Consulting, Ltd Date: Tue, 21 Sep 2004 07:41:21 -0700 Message-Id: <1095777681.10408.1.camel@denk.nakedape.priv> Mime-Version: 1.0 X-Mailer: Evolution 1.5.9.1 (1.5.9.1-2) Cc: help-cfengine@gnu.org Subject: Re: List of monitored files? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 14:47:52 -0000 Status: O Content-Length: 1032 Lines: 39 --=-yYQ6tdALq2SLJTVrn1nl Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2004-09-21 at 08:10 +0200, Mark.Burgess@iu.hio.no wrote: > You can use dbdump, but you won't make much sense of the checksums. > Perhaps it would be useful to make a small utility to dump this in > text format? I could add it to 2.1.11 if you like? >=20 > cfdigestdump >=20 > or something That sounds fine. I don't actually need anything other than the filenames so I can give them a list of files that I'm controlling. Wil --=20 Wil Cooley wcooley@nakedape.cc Naked Ape Consulting http://nakedape.cc --=-yYQ6tdALq2SLJTVrn1nl Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBUD2PJpn3uYWUEaoRAoW2AKCTeeIHL27I+eZlzjpKvt7hDy3VuACfSAKs HdG45npCqEjOHelN5lOhr8c= =7TDK -----END PGP SIGNATURE----- --=-yYQ6tdALq2SLJTVrn1nl-- From MAILER-DAEMON Tue Sep 21 14:52:34 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9pkf-0002Py-0Z for mharc-help-cfengine@gnu.org; Tue, 21 Sep 2004 14:52:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9pkd-0002Pg-3c for help-cfengine@gnu.org; Tue, 21 Sep 2004 14:52:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9pkb-0002P9-DT for help-cfengine@gnu.org; Tue, 21 Sep 2004 14:52:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9pkb-0002Os-CC for help-cfengine@gnu.org; Tue, 21 Sep 2004 14:52:29 -0400 Received: from [152.157.64.30] (helo=nsd.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9pe2-0007Mb-Ge for help-cfengine@gnu.org; Tue, 21 Sep 2004 14:45:42 -0400 Received: from [10.2.9.13] (account ckacoroski HELO [10.2.9.13]) by nsd.org (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5451250 for help-cfengine@gnu.org; Tue, 21 Sep 2004 11:45:35 -0700 Message-ID: <415076CF.1040109@nsd.org> Date: Tue, 21 Sep 2004 11:45:35 -0700 From: Chris Kacoroski Organization: Northshore School District User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <414B50CE.7070601@nsd.org> <1095719907.6764.9.camel@denk.nakedape.priv> In-Reply-To: <1095719907.6764.9.camel@denk.nakedape.priv> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Strange intermittent problem with connection... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ckacoroski@nsd.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 18:52:31 -0000 Status: O Content-Length: 2060 Lines: 77 Wil Cooley wrote: > Yes, you've followed the tutorial and scheduled cfexecd to run at the > same time through cron and it's internal scheduled. I did the same > thing: http://nakedape.cc/wiki/ApplicationNotes/CfEngine Wil, I like the wiki. I checked my config and cannot see where I would have cfexecd scheduled for daemon mode. I have it running from cron every half hour with a splay time of 25 minutes. I see log messages like this: Sep 21 11:00:00 ski CRON[19560]: (root) CMD (/usr/local/sbin/cfexecd -F) Sep 21 11:30:00 ski CRON[19677]: (root) CMD (/usr/local/sbin/cfexecd -F) which tells me that part is working right. A ps shows the -F switch: [-0-ski@ski: inputs]$ ps ax | grep cf 344 ?? Ss 0:00.00 /usr/local/sbin/cfservd 356 ?? Ss 1:00.77 /usr/local/sbin/cfenvd 19677 ?? S 0:00.01 /usr/local/sbin/cfexecd -F 19706 ?? S 0:00.04 /var/cfengine/bin/cfagent Config files are: # cfagent.conf # import: groups.cf variables.cf imports.cf -------------------------------------------- # cfengine.cf # control: actionsequence = ( processes ) processes: "cfservd" restart /usr/local/sbin/cfservd -------------------------------------------- # update.conf # control: actionsequence = ( copy tidy links ) AddClasses = ( ExecResult(/usr/local/scripts/ldapnames --cfengine) ) domain = ( nsd.org ) workdir = ( "/var/cfengine" ) !cfengine:: SplayTime = ( 15 ) -------------------------------------------- # cfengine install file # control: actionsequence = ( processes.cfprocs editfiles.cfedit ) processes: cfprocs:: "cfenvd" restart "/usr/local/sbin/cfenvd" "cfservd" restart "/usr/local/sbin/cfservd" editfiles: cfedit:: { ${rootcron} SetLine "0,30 * * * * /usr/local/sbin/cfexecd -F" AppendIfNoLineMatching ".*cfexecd.*" AutoCreate DefineClasses "restart_cron" } From MAILER-DAEMON Tue Sep 21 17:13:30 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9rx4-0004L2-Ig for mharc-help-cfengine@gnu.org; Tue, 21 Sep 2004 17:13:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9rx2-0004KO-SW for help-cfengine@gnu.org; Tue, 21 Sep 2004 17:13:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9rx0-0004J7-7H for help-cfengine@gnu.org; Tue, 21 Sep 2004 17:13:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9rx0-0004J1-2R for help-cfengine@gnu.org; Tue, 21 Sep 2004 17:13:26 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9rqw-0004YW-Lj for help-cfengine@gnu.org; Tue, 21 Sep 2004 17:07:11 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8LL700T003384 for ; Tue, 21 Sep 2004 16:07:00 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: help-cfengine@gnu.org Date: Tue, 21 Sep 2004 16:06:59 -0500 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409211606.59982.chip@trdlnk.com> Subject: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 21:13:29 -0000 Status: O Content-Length: 880 Lines: 27 In cfengine 2.1.10 on Solaris 2., this processes block: "postfix" signal=TERM restart "/etc/init.d/postfix restart" produced these results (from -I): greasy: Signalled process 8142 (postfix) with SIGTERM greasy: Killed: root 8142 0.0 0.2 1644 624 ? S Sep17 0:01 syslogd -m 0 -a /var/spool/postfix/dev/log greasy: Signalled process 5277 (postfix) with SIGTERM greasy: Killed: root 5277 0.0 0.4 2884 1088 ? S 15:12 0:00 /usr/lib/postfix/master greasy: Executing shell command: /etc/init.d/postfix restart greasy: Restart: Shutting down postfix: [FAILED] greasy: Restart: Starting postfix: [ OK ] greasy: (Done with /etc/init.d/postfix restart) Egads! Why was proc 8142 involved in that? -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Tue Sep 21 17:37:29 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9sKF-0002O3-0R for mharc-help-cfengine@gnu.org; Tue, 21 Sep 2004 17:37:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9sKD-0002NY-GJ for help-cfengine@gnu.org; Tue, 21 Sep 2004 17:37:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9sKB-0002NC-Jw for help-cfengine@gnu.org; Tue, 21 Sep 2004 17:37:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9sKB-0002N2-Gw for help-cfengine@gnu.org; Tue, 21 Sep 2004 17:37:23 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9sDx-0008KS-0f for help-cfengine@gnu.org; Tue, 21 Sep 2004 17:30:57 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i8LLUxHm023002; Tue, 21 Sep 2004 23:31:03 +0200 (MEST) Message-Id: <200409212131.i8LLUxHm023002@nexus.iu.hio.no> Date: Tue, 21 Sep 2004 23:30:59 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: chip@trdlnk.com In-Reply-To: <200409211606.59982.chip@trdlnk.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: help-cfengine@gnu.org Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 21:37:25 -0000 Status: O Content-Length: 1204 Lines: 33 You told it to look for lines that contained the string postfix M On 21 Sep, Chip Seraphine wrote: > In cfengine 2.1.10 on Solaris 2., this processes block: > "postfix" > signal=TERM > restart "/etc/init.d/postfix restart" > > produced these results (from -I): > greasy: Signalled process 8142 (postfix) with SIGTERM > greasy: Killed: root 8142 0.0 0.2 1644 624 ? S Sep17 0:01 syslogd -m 0 -a > /var/spool/postfix/dev/log greasy: Signalled process 5277 (postfix) with SIGTERM > greasy: Killed: root 5277 0.0 0.4 2884 1088 ? S 15:12 0:00 > /usr/lib/postfix/master greasy: Executing shell command: /etc/init.d/postfix restart > greasy: Restart: Shutting down postfix: [FAILED] > greasy: Restart: Starting postfix: [ OK ] > greasy: (Done with /etc/init.d/postfix restart) > > > Egads! Why was proc 8142 involved in that? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Tue Sep 21 18:35:39 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9tEZ-0007cd-Pk for mharc-help-cfengine@gnu.org; Tue, 21 Sep 2004 18:35:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9tEW-0007cS-IS for help-cfengine@gnu.org; Tue, 21 Sep 2004 18:35:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9tEV-0007c3-Hu for help-cfengine@gnu.org; Tue, 21 Sep 2004 18:35:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9tEV-0007c0-Ei for help-cfengine@gnu.org; Tue, 21 Sep 2004 18:35:35 -0400 Received: from [67.98.173.54] (helo=redmailwall4.attws.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9t7x-0008JS-6R for help-cfengine@gnu.org; Tue, 21 Sep 2004 18:28:49 -0400 Received: from viruswall2.entp.attws.com ([135.214.241.196]) by redmailwall4.attws.com (8.12.10/8.12.6) with ESMTP id i8LMSkhD005848 for ; Tue, 21 Sep 2004 15:28:46 -0700 (PDT) Received: from scentmail.entp.attws.com (localhost [127.0.0.1]) by viruswall2.entp.attws.com (8.12.10/8.12.10) with ESMTP id i8LMSkb2007001 for ; Tue, 21 Sep 2004 15:28:46 -0700 (PDT) Received: from WA-MSGBH01-BTH.wireless.attws.com (WA-MSGBH01-BTH.wireless.attws.com [135.214.26.241]) by scentmail.entp.attws.com (8.8.8p2+Sun/8.8.8) with ESMTP id PAA18120 for ; Tue, 21 Sep 2004 15:28:45 -0700 (PDT) Received: from WA-MSG05-BTH.wireless.attws.com ([135.214.49.115]) by WA-MSGBH01-BTH.wireless.attws.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 21 Sep 2004 15:29:24 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4A02A.282E3DEA" Date: Tue, 21 Sep 2004 15:27:19 -0700 Message-ID: Thread-Topic: String errors when compiled on HPUX 10.20 Thread-Index: AcSgKleDFOyAbRVFTKqgzL+jrKidnQ== From: "Thornton, John" To: X-OriginalArrivalTime: 21 Sep 2004 22:29:24.0796 (UTC) FILETIME=[72C76FC0:01C4A02A] Subject: String errors when compiled on HPUX 10.20 X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 22:35:38 -0000 Status: O Content-Length: 4104 Lines: 105 This is a multi-part message in MIME format. ------_=_NextPart_001_01C4A02A.282E3DEA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable My compiled version of cfengine produces strange characters during verbose mode and email alerts. See example below: =20 APM-(M-^G/cfe: Running process command /bin/ps -ef Defining classes=20 DoSignals(cfenvd) Defining classes=20 DoSignals(cfservd) Existing restart sequence found (/var/cfengine/bin/cfservd) APM-(M-^G/cfe: Matches found for cfservd - no restart sequence Defining classes=20 DoSignals(cfexecd) Existing restart sequence found (/var/cfengine/bin/cfexecd) APM-(M-^G/cfe: Matches found for cfexecd - no restart sequence =20 ********************************************************************* Main Tree Sched: processes pass 1 @ Tue Sep 21 15:18:20 2004 ********************************************************************* =20 APM-(M-^G/cfe: Running process command /bin/ps -ef =20 =20 On solaris and linux, this string is "cfengine:hostname:" . Has anyone experienced this? =20 Compiled cfengine 2.1.10 using gcc version 2.95.2=20 =20 This also occurred with 2.1.7p1 and compiled static and dynamic. =20 =20 ------_=_NextPart_001_01C4A02A.282E3DEA Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
My = compiled version=20 of cfengine produces strange characters during verbose mode and email=20 alerts.  See example below:
 
APM-(M-^G/cfe: Running process command /bin/ps=20 -ef
Defining classes
DoSignals(cfenvd)
Defining classes=20
DoSignals(cfservd)
Existing restart sequence found=20 (/var/cfengine/bin/cfservd)
APM-(M-^G/cfe: Matches=20 found for cfservd - no restart sequence
Defining classes=20
DoSignals(cfexecd)
Existing restart sequence found=20 (/var/cfengine/bin/cfexecd)
APM-(M-^G/cfe: Matches=20 found for cfexecd - no restart sequence
 
****************************************************************= *****
 Main=20 Tree Sched: processes pass 1 @ Tue Sep 21 15:18:20=20 2004
*****************************************************************= ****
 
APM-(M-^G/cfe: Running process command /bin/ps=20 -ef
 
 
On = solaris and=20 linux, this string is "cfengine:hostname:" .  Has anyone = experienced=20 this?
 
Compiled cfengine=20 2.1.10 using gcc version 2.95.2
 
This = also occurred=20 with 2.1.7p1 and compiled static and dynamic.
 
 
------_=_NextPart_001_01C4A02A.282E3DEA-- From MAILER-DAEMON Tue Sep 21 18:49:28 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9tRw-0002nH-Aa for mharc-help-cfengine@gnu.org; Tue, 21 Sep 2004 18:49:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9tRu-0002n9-RU for help-cfengine@gnu.org; Tue, 21 Sep 2004 18:49:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9tRs-0002mt-UW for help-cfengine@gnu.org; Tue, 21 Sep 2004 18:49:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9tRs-0002mq-RV for help-cfengine@gnu.org; Tue, 21 Sep 2004 18:49:24 -0400 Received: from [134.134.136.15] (helo=orsfmr001.jf.intel.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9tLm-00022n-FG for help-cfengine@gnu.org; Tue, 21 Sep 2004 18:43:07 -0400 Received: from talaria.jf.intel.com (talaria.jf.intel.com [10.7.209.7]) by orsfmr001.jf.intel.com (8.12.9-20030918-01/8.12.9/d: major-outer.mc,v 1.15 2004/01/30 18:16:28 root Exp $) with ESMTP id i8LMh7JB028787; Tue, 21 Sep 2004 22:43:07 GMT Received: from nwlxmail02.jf.intel.com (nwlxmail02.jf.intel.com [192.168.74.77]) by talaria.jf.intel.com (8.12.9-20030918-01/8.12.9/d: major-inner.mc,v 1.11 2004/07/29 22:51:53 root Exp $) with ESMTP id i8LMZI4E022979; Tue, 21 Sep 2004 22:35:18 GMT Received: from [134.134.155.88] ([134.134.155.88]) by nwlxmail02.jf.intel.com (8.12.10/8.12.9/MailSET/Hub) with ESMTP id i8LMh1CB020647; Tue, 21 Sep 2004 15:43:01 -0700 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: <9BB438A6-0C1F-11D9-A4BE-000A95C47858@intel.com> Content-Transfer-Encoding: quoted-printable From: Tod Oace Date: Tue, 21 Sep 2004 15:43:07 -0700 To: "Thornton, John" X-Mailer: Apple Mail (2.619) X-Scanned-By: MIMEDefang 2.31 (www . roaringpenguin . com / mimedefang) Cc: help-cfengine@gnu.org Subject: Re: String errors when compiled on HPUX 10.20 X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 22:49:27 -0000 Status: O Content-Length: 569 Lines: 19 On Sep 21, 2004, at 15:27, Thornton, John wrote: > My compiled version of cfengine produces strange characters during=20 > verbose mode and email alerts.=A0 See example below: > =A0 > APM-(M-^G/cfe: Running process command /bin/ps -ef I was just noticing the same thing today, except on HP-UX 11.00. I was=20= collecting some information with alerts: and most of the bad output on=20= my systems start with "puts/cf.AP" followed by funny characters. It's=20 not happening on all of the systems. Very strange... --=20 Tod Oace, Intel Corporation From MAILER-DAEMON Tue Sep 21 20:15:02 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C9umj-0002Sc-P7 for mharc-help-cfengine@gnu.org; Tue, 21 Sep 2004 20:15:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9umi-0002SW-OR for help-cfengine@gnu.org; Tue, 21 Sep 2004 20:15:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9umf-0002S9-QI for help-cfengine@gnu.org; Tue, 21 Sep 2004 20:15:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9umf-0002Rz-Oy for help-cfengine@gnu.org; Tue, 21 Sep 2004 20:14:57 -0400 Received: from [134.134.136.7] (helo=caduceus.jf.intel.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9ugB-0005N0-V5 for help-cfengine@gnu.org; Tue, 21 Sep 2004 20:08:16 -0400 Received: from talaria.jf.intel.com (talaria.jf.intel.com [10.7.209.7]) by caduceus.jf.intel.com (8.12.9-20030918-01/8.12.9/d: major-outer.mc, v 1.15 2004/01/30 18:16:28 root Exp $) with ESMTP id i8M082rr004202 for ; Wed, 22 Sep 2004 00:08:02 GMT Received: from nwlxmail02.jf.intel.com (nwlxmail02.jf.intel.com [192.168.74.77]) by talaria.jf.intel.com (8.12.9-20030918-01/8.12.9/d: major-inner.mc, v 1.11 2004/07/29 22:51:53 root Exp $) with ESMTP id i8M00Q4E015022 for ; Wed, 22 Sep 2004 00:00:31 GMT Received: from [134.134.155.88] ([134.134.155.88]) by nwlxmail02.jf.intel.com (8.12.10/8.12.9/MailSET/Hub) with ESMTP id i8M088CB021277 for ; Tue, 21 Sep 2004 17:08:08 -0700 Mime-Version: 1.0 (Apple Message framework v619) Content-Transfer-Encoding: 7bit Message-Id: <8045B359-0C2B-11D9-A4BE-000A95C47858@intel.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: help-cfengine@gnu.org From: Tod Oace Date: Tue, 21 Sep 2004 17:08:15 -0700 X-Mailer: Apple Mail (2.619) X-Scanned-By: MIMEDefang 2.31 (www . roaringpenguin . com / mimedefang) Subject: Setting an OS-specific class X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 00:15:01 -0000 Status: O Content-Length: 838 Lines: 35 Well this was unexpected. The following: control: actionsequence = ( shellcommands ) classes: redhat:: someclass = ( ReturnsZero(/bin/egrep -q something /dev/null) ) alerts: redhat:: "I am running on redhat" someclass:: "someclass is active" solaris:: "I am running on solaris" Produces the following output on Solaris: /bin/egrep: illegal option -- q usage: egrep [ -bchilnsv ] [ -e exp ] [ -f file ] [ strings ] [ file ] ... cfengine:: I am running on solaris I looked at the reference manual and it says that the "redhat::" is ANDed with the ReturnsZero, so I guess it's working the way it's supposed to, but it's what I expected. And I don't know how else to easily limit the egrep to redhat. This is on 2.1.10. Any ideas? -- Tod Oace, Intel Corporation From MAILER-DAEMON Wed Sep 22 05:01:35 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CA30J-00038W-JF for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 05:01:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA30H-00038G-AZ for help-cfengine@gnu.org; Wed, 22 Sep 2004 05:01:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA30G-000380-9n for help-cfengine@gnu.org; Wed, 22 Sep 2004 05:01:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA30G-00037x-3q for help-cfengine@gnu.org; Wed, 22 Sep 2004 05:01:32 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CA2uD-0002w3-M9 for help-cfengine@gnu.org; Wed, 22 Sep 2004 04:55:18 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i8M8tNUp016080 for ; Wed, 22 Sep 2004 10:55:27 +0200 (MEST) Message-Id: <200409220855.i8M8tNUp016080@nexus.iu.hio.no> Date: Wed, 22 Sep 2004 10:55:23 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: help-cfengine@gnu.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Subject: A note about segmentation faults X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 09:01:33 -0000 Status: O Content-Length: 322 Lines: 12 http://www.cfengine.org/confdir/segfault.html M ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Wed Sep 22 07:51:39 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CA5et-0001eW-Pa for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 07:51:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA5es-0001eI-4p for help-cfengine@gnu.org; Wed, 22 Sep 2004 07:51:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA5ep-0001dw-I5 for help-cfengine@gnu.org; Wed, 22 Sep 2004 07:51:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA5ep-0001dt-FA for help-cfengine@gnu.org; Wed, 22 Sep 2004 07:51:35 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CA5Yf-0004q8-QS for help-cfengine@gnu.org; Wed, 22 Sep 2004 07:45:14 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8MBjC0T025802; Wed, 22 Sep 2004 06:45:12 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: Mark.Burgess@iu.hio.no Date: Wed, 22 Sep 2004 06:45:11 -0500 User-Agent: KMail/1.5.4 References: <200409212131.i8LLUxHm023002@nexus.iu.hio.no> In-Reply-To: <200409212131.i8LLUxHm023002@nexus.iu.hio.no> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409220645.11643.chip@trdlnk.com> Cc: help-cfengine@gnu.org Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 11:51:38 -0000 Status: O Content-Length: 1852 Lines: 60 OK, thanks, Mark. I see that now. I thought it was matching only on arg0, but it's just a pattern match against the entire line of 'ps' output... So what's the canonical workaround? I'm sure almost everybody has the similar problem from time to time, right? On Tuesday 21 September 2004 16:30, Mark.Burgess@iu.hio.no wrote: > > You told it to look for lines that contained the string postfix > > M > > On 21 Sep, Chip Seraphine wrote: > > In cfengine 2.1.10 on Solaris 2., this processes block: > > "postfix" > > signal=TERM > > restart "/etc/init.d/postfix restart" > > > > produced these results (from -I): > > greasy: Signalled process 8142 (postfix) with SIGTERM > > greasy: Killed: root 8142 0.0 0.2 1644 624 ? S Sep17 0:01 syslogd -m 0 -a > > /var/spool/postfix/dev/log greasy: Signalled process 5277 (postfix) with SIGTERM > > greasy: Killed: root 5277 0.0 0.4 2884 1088 ? S 15:12 0:00 > > /usr/lib/postfix/master greasy: Executing shell command: /etc/init.d/ postfix restart > > greasy: Restart: Shutting down postfix: [FAILED] > > greasy: Restart: Starting postfix: [ OK ] > > greasy: (Done with /etc/init.d/postfix restart) > > > > > > Egads! Why was proc 8142 involved in that? > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Work: +47 22453272 Email: Mark.Burgess@iu.hio.no > Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Wed Sep 22 07:53:42 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CA5gs-00021J-Ge for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 07:53:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA5gq-000211-Bz for help-cfengine@gnu.org; Wed, 22 Sep 2004 07:53:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA5go-00020Q-FX for help-cfengine@gnu.org; Wed, 22 Sep 2004 07:53:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA5go-000201-EL for help-cfengine@gnu.org; Wed, 22 Sep 2004 07:53:38 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CA5aK-00058H-RW for help-cfengine@gnu.org; Wed, 22 Sep 2004 07:46:57 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i8MBkwnd001363; Wed, 22 Sep 2004 13:47:02 +0200 (MEST) Message-Id: <200409221147.i8MBkwnd001363@nexus.iu.hio.no> Date: Wed, 22 Sep 2004 13:46:58 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: chip@trdlnk.com In-Reply-To: <200409220645.11643.chip@trdlnk.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: Mark.Burgess@iu.hio.no, help-cfengine@gnu.org Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 11:53:40 -0000 Status: O Content-Length: 2205 Lines: 67 use a filter which allowed you to specify what you are matching M On 22 Sep, Chip Seraphine wrote: > OK, thanks, Mark. I see that now. I thought it was matching only on arg0, > but it's just a pattern match against the entire line of 'ps' output... > > So what's the canonical workaround? I'm sure almost everybody has the similar > problem from time to time, right? > > On Tuesday 21 September 2004 16:30, Mark.Burgess@iu.hio.no wrote: >> >> You told it to look for lines that contained the string postfix >> >> M >> >> On 21 Sep, Chip Seraphine wrote: >> > In cfengine 2.1.10 on Solaris 2., this processes block: >> > "postfix" >> > signal=TERM >> > restart "/etc/init.d/postfix restart" >> > >> > produced these results (from -I): >> > greasy: Signalled process 8142 (postfix) with SIGTERM >> > greasy: Killed: root 8142 0.0 0.2 1644 624 ? S Sep17 > 0:01 syslogd -m 0 -a >> > /var/spool/postfix/dev/log greasy: Signalled process 5277 (postfix) with > SIGTERM >> > greasy: Killed: root 5277 0.0 0.4 2884 1088 ? S 15:12 > 0:00 >> > /usr/lib/postfix/master greasy: Executing shell command: /etc/init.d/ > postfix restart >> > greasy: Restart: Shutting down postfix: [FAILED] >> > greasy: Restart: Starting postfix: [ OK ] >> > greasy: (Done with /etc/init.d/postfix restart) >> > >> > >> > Egads! Why was proc 8142 involved in that? >> >> >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> Work: +47 22453272 Email: Mark.Burgess@iu.hio.no >> Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> >> >> _______________________________________________ >> Help-cfengine mailing list >> Help-cfengine@gnu.org >> http://lists.gnu.org/mailman/listinfo/help-cfengine >> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Wed Sep 22 08:12:12 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CA5ym-0006wm-EB for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 08:12:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA5yk-0006wU-N0 for help-cfengine@gnu.org; Wed, 22 Sep 2004 08:12:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA5yi-0006vv-PW for help-cfengine@gnu.org; Wed, 22 Sep 2004 08:12:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA5yi-0006vX-O7 for help-cfengine@gnu.org; Wed, 22 Sep 2004 08:12:08 -0400 Received: from [62.245.182.8] (helo=mx.leogic.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CA5rt-0000Eu-Sb for help-cfengine@gnu.org; Wed, 22 Sep 2004 08:05:11 -0400 Received: from [127.0.0.1] ([192.168.65.59]) (authenticated bits=0) by mx.leogic.com (8.12.11/8.12.10) with ESMTP id i8MC4vWq018117 (version=TLSv1/SSLv3 cipher=IDEA-CBC-SHA bits=128 verify=NO) for ; Wed, 22 Sep 2004 14:04:58 +0200 Message-ID: <41516A64.1070001@leogic.com> Date: Wed, 22 Sep 2004 14:04:52 +0200 From: Sven Mueller User-Agent: Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <200409212131.i8LLUxHm023002@nexus.iu.hio.no> <200409220645.11643.chip@trdlnk.com> In-Reply-To: <200409220645.11643.chip@trdlnk.com> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: help-cfengine@gnu.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 12:12:11 -0000 Status: O Content-Length: 383 Lines: 17 Chip Seraphine [u] wrote on 22/09/2004 13:45: > OK, thanks, Mark. I see that now. I thought it was matching only on arg0, > but it's just a pattern match against the entire line of 'ps' output... > > So what's the canonical workaround? I'm sure almost everybody has the similar > problem from time to time, right? "^[^ ]postfix " in your case. I would guess ;-) cu, sven From MAILER-DAEMON Wed Sep 22 08:56:11 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CA6fL-00011v-Gy for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 08:56:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA6fK-00011Z-2e for help-cfengine@gnu.org; Wed, 22 Sep 2004 08:56:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA6fI-00011G-F1 for help-cfengine@gnu.org; Wed, 22 Sep 2004 08:56:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA6fI-00011D-AD for help-cfengine@gnu.org; Wed, 22 Sep 2004 08:56:08 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CA6Yv-0000G9-7I for help-cfengine@gnu.org; Wed, 22 Sep 2004 08:49:33 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8MCnR0T029941; Wed, 22 Sep 2004 07:49:27 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: help-cfengine@gnu.org, Sven Mueller Date: Wed, 22 Sep 2004 07:49:27 -0500 User-Agent: KMail/1.5.4 References: <200409212131.i8LLUxHm023002@nexus.iu.hio.no> <200409220645.11643.chip@trdlnk.com> <41516A64.1070001@leogic.com> In-Reply-To: <41516A64.1070001@leogic.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409220749.27201.chip@trdlnk.com> Cc: Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 12:56:10 -0000 Status: O Content-Length: 1046 Lines: 43 The first item in the line is generally PID, so that might not work. I'm using exclude=syslogd for now, but that is only valid in this special case. Too bad /proc's if the world are all so nonstandard or we could just mine that and get stuff very safely.... (knowing that an arg0 is certainly an arg0, f'rinstance) On Wednesday 22 September 2004 07:04, Sven Mueller wrote: > Chip Seraphine [u] wrote on 22/09/2004 13:45: > > > OK, thanks, Mark. I see that now. I thought it was matching only on arg0, > > but it's just a pattern match against the entire line of 'ps' output... > > > > So what's the canonical workaround? I'm sure almost everybody has the similar > > problem from time to time, right? > > "^[^ ]postfix " > in your case. > > I would guess ;-) > > cu, > sven > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Wed Sep 22 10:15:09 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CA7tl-0002Af-KZ for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 10:15:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA7tj-00029p-Bx for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:15:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA7tg-000287-TS for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:15:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA7tg-00027z-Ml for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:15:04 -0400 Received: from [208.235.248.20] (helo=outbd-pstfx.customercenter.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CA7nW-0007ly-W3 for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:08:43 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by outbd-pstfx.customercenter.net (Postfix) with ESMTP id 6DB913BFD2 for ; Wed, 22 Sep 2004 10:08:41 -0400 (EDT) Received: from mail-hub.customercenter.net (elpemh01.nc.customercenter.net [10.30.26.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by outbd-pstfx.customercenter.net (Postfix) with ESMTP id 070453BFEE for ; Wed, 22 Sep 2004 10:08:40 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail-hub.customercenter.net (Postfix) with ESMTP id DAD0524ADCC for ; Wed, 22 Sep 2004 10:08:39 -0400 (EDT) Received: from iwpsmtp1.corp.checkfree.com (iwpsmtp2.corp.checkfree.com [10.132.1.69]) by mail-hub.customercenter.net (Postfix) with ESMTP for ; Wed, 22 Sep 2004 10:08:39 -0400 (EDT) From: tiperry@checkfree.com To: help-cfengine@gnu.org Message-ID: Date: Wed, 22 Sep 2004 10:02:22 -0400 X-MIMETrack: Serialize by Router on IWPSMTP1/CheckFree(Release 6.0.3|September 26, 2003) at 09/22/2004 10:10:26 AM MIME-Version: 1.0 Content-type: multipart/alternative; Boundary="0__=0ABBE584DFDE99C18f9e8a93df938690918c0ABBE584DFDE99C1" Content-Disposition: inline X-Virus-Scanned: by amavisd-new at customercenter.net X-Virus-Scanned: by amavisd-new at customercenter.net Subject: Automatic Response: Tim Perry/GA/CheckFree is out of the office. X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 14:15:08 -0000 Status: O Content-Length: 512 Lines: 18 --0__=0ABBE584DFDE99C18f9e8a93df938690918c0ABBE584DFDE99C1 Content-type: text/plain; charset=US-ASCII I will be out of the office starting 09/21/2004 and will not return until 09/26/2004. --0__=0ABBE584DFDE99C18f9e8a93df938690918c0ABBE584DFDE99C1 Content-type: text/html; charset=US-ASCII Content-Disposition: inline

I will be out of the office starting 09/21/2004 and will not return until 09/26/2004.

--0__=0ABBE584DFDE99C18f9e8a93df938690918c0ABBE584DFDE99C1-- From MAILER-DAEMON Wed Sep 22 10:15:13 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CA7to-0002Dc-VU for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 10:15:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA7tn-0002C1-EO for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:15:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA7tm-0002BE-EK for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:15:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA7tm-0002Aj-4k for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:15:10 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CA7nl-0007pp-HM for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:08:57 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8ME8u0T008539; Wed, 22 Sep 2004 09:08:56 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: help-cfengine@gnu.org, Sven Mueller Date: Wed, 22 Sep 2004 09:08:56 -0500 User-Agent: KMail/1.5.4 References: <200409212131.i8LLUxHm023002@nexus.iu.hio.no> <41516A64.1070001@leogic.com> <200409220749.27201.chip@trdlnk.com> In-Reply-To: <200409220749.27201.chip@trdlnk.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409220908.56434.chip@trdlnk.com> Cc: Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 14:15:12 -0000 Status: O Content-Length: 1938 Lines: 71 FYI to those whose ignorance level equals (or, God forbid, even exceeds) mine: Mark and I just had a brief discussion off list and he referred me to some confdir stuff (esp http://www.cfengine.org/confdir/filterex.html) that show filters being used with processes. I didn't know this galactically useful feature exists, so I figured maybe some other cfengine folk might want to have this pointed out. (It isn't in the ref yet, and if you're like me you tend to stop looking after that.) On Wednesday 22 September 2004 07:49, Chip Seraphine wrote: > The first item in the line is generally PID, so that might not work. > > I'm using exclude=syslogd for now, but that is only valid in this special > case. Too bad /proc's if the world are all so nonstandard or we could just > mine that and get stuff very safely.... (knowing that an arg0 is certainly an > arg0, f'rinstance) > > On Wednesday 22 September 2004 07:04, Sven Mueller wrote: > > Chip Seraphine [u] wrote on 22/09/2004 13:45: > > > > > OK, thanks, Mark. I see that now. I thought it was matching only on > arg0, > > > but it's just a pattern match against the entire line of 'ps' output... > > > > > > So what's the canonical workaround? I'm sure almost everybody has the > similar > > > problem from time to time, right? > > > > "^[^ ]postfix " > > in your case. > > > > I would guess ;-) > > > > cu, > > sven > > > > > > _______________________________________________ > > Help-cfengine mailing list > > Help-cfengine@gnu.org > > http://lists.gnu.org/mailman/listinfo/help-cfengine > > > > -- > > Chip Seraphine > Unix Administrator > TradeLink, LLC > 312-264-2048 > chip@trdlnk.com > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Wed Sep 22 10:41:14 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CA8J0-0000DW-4r for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 10:41:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA8Ix-0000Al-BE for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:41:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA8Iv-0000AR-HL for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:41:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA8Iv-0000AO-Ba for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:41:09 -0400 Received: from [134.174.9.44] (helo=mail.bwh.harvard.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CA8CZ-0004JR-K3 for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:34:35 -0400 Received: (qmail 7973 invoked from network); 22 Sep 2004 14:25:28 -0000 Envelope-Sender: tzz@lifelogs.com Envelope-Recipients: chip@trdlnk.com, help-cfengine@gnu.org, Received: from asimov.bwh.harvard.edu (HELO asimov) ([134.174.9.63]) (envelope-sender ) by mail.bwh.harvard.edu (qmail-ldap-1.03) with SMTP for ; 22 Sep 2004 14:25:28 -0000 Date: 22 Sep 2004 10:15:05 -0400 Message-ID: <4nhdpqv192.fsf@lifelogs.com> From: "Ted Zlatanov" Mail-Followup-To: chip@trdlnk.com, help-cfengine@gnu.org To: chip@trdlnk.com References: <200409211606.59982.chip@trdlnk.com> X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos In-Reply-To: <200409211606.59982.chip@trdlnk.com> (Chip Seraphine's message of "Tue, 21 Sep 2004 16:06:59 -0500") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: help-cfengine@gnu.org Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 14:41:11 -0000 Status: O Content-Length: 405 Lines: 15 On Tue, 21 Sep 2004, chip@trdlnk.com wrote: > In cfengine 2.1.10 on Solaris 2., this processes block: > "postfix" > signal=TERM > restart "/etc/init.d/postfix restart" Out of curiosity, doesn't the /etc/init.d/postfix script do the TERM signal for you? I know it's not what you're asking, but I'm trying to figure out why you're going around the normal mechanism for restarting Postfix. Ted From MAILER-DAEMON Wed Sep 22 10:54:48 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CA8W8-0002gD-FV for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 10:54:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA8W6-0002g4-Nt for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:54:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA8W6-0002fl-4S for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:54:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA8W6-0002fi-1K for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:54:46 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CA8Pd-0006pc-Me for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:48:06 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8MEm10T012790; Wed, 22 Sep 2004 09:48:01 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: "Ted Zlatanov" Date: Wed, 22 Sep 2004 09:48:00 -0500 User-Agent: KMail/1.5.4 References: <200409211606.59982.chip@trdlnk.com> <4nhdpqv192.fsf@lifelogs.com> In-Reply-To: <4nhdpqv192.fsf@lifelogs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409220948.00333.chip@trdlnk.com> Cc: help-cfengine@gnu.org Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 14:54:46 -0000 Status: O Content-Length: 1532 Lines: 47 Because the restart command will not run unless I send either a TERM or a KILL, according to the reference. 'tis a hackaround. I could have it set a class and then let shellcommands execute the restart, but that is even kludgier. It would be nice if we could say signal=dorestart or something like that to clue cfengine that we want to execute the restart line without sending a signal. (Or just allow signal 0 along with TERM and KILL, perhaps.) Given that I have to send a signal, the reason for saying "restart" instead of "start" is that some Linux init scripts (esp with RedHat and SuSE) sometimes clean up pidfiles and such, IIRC. Doing a restart instead of a start makes you less likely to run into ugliness. The postfix script is not one of these, but it can't hurt. On Wednesday 22 September 2004 09:15, Ted Zlatanov wrote: > On Tue, 21 Sep 2004, chip@trdlnk.com wrote: > > > In cfengine 2.1.10 on Solaris 2., this processes block: > > "postfix" > > signal=TERM > > restart "/etc/init.d/postfix restart" > > Out of curiosity, doesn't the /etc/init.d/postfix script do the TERM > signal for you? I know it's not what you're asking, but I'm trying to > figure out why you're going around the normal mechanism for restarting > Postfix. > > Ted > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Wed Sep 22 11:06:50 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CA8hm-0005SX-IK for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 11:06:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA8hj-0005Rw-Rv for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:06:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA8hh-0005R7-Fj for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:06:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA8hh-0005Qw-6p for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:06:45 -0400 Received: from [66.187.233.31] (helo=mx1.redhat.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CA8bQ-0000or-7v for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:00:16 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i8MF04EK000527; Wed, 22 Sep 2004 11:00:04 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i8MF04r01386; Wed, 22 Sep 2004 11:00:04 -0400 Received: from redhat.com (vpn50-54.rdu.redhat.com [172.16.50.54]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i8MF03ck015022; Wed, 22 Sep 2004 11:00:04 -0400 Message-ID: <41519374.7080503@redhat.com> Date: Wed, 22 Sep 2004 11:00:04 -0400 From: "Phil D'Amore" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314 X-Accept-Language: en-us, en MIME-Version: 1.0 To: chip@trdlnk.com References: <200409211606.59982.chip@trdlnk.com> <4nhdpqv192.fsf@lifelogs.com> <200409220948.00333.chip@trdlnk.com> In-Reply-To: <200409220948.00333.chip@trdlnk.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Ted Zlatanov , help-cfengine@gnu.org Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 15:06:48 -0000 Status: O Content-Length: 2522 Lines: 77 That's interesting. Things like this work for us (sorry I didn't have a postgres example): cfrole_squid_server:: "squid " restart "/sbin/service squid start" matches=>1 inform=on The way I interpreted the docs was that the restart is run if nothing matches the pattern, and the signal is done if something does match the pattern. They're mutually exclusive in that way. Also something to note there is the space in my squid pattern. The trailing space makes sure I only get the real squid procs and not the string squid in a path passed into some other process. That may work for you too. Chip Seraphine wrote: >Because the restart command will not run unless I send either a TERM or a >KILL, according to the reference. 'tis a hackaround. I could have it set a >class and then let shellcommands execute the restart, but that is even >kludgier. > >It would be nice if we could say signal=dorestart or something like that to >clue cfengine that we want to execute the restart line without sending a >signal. (Or just allow signal 0 along with TERM and KILL, perhaps.) > >Given that I have to send a signal, the reason for saying "restart" instead of >"start" is that some Linux init scripts (esp with RedHat and SuSE) sometimes >clean up pidfiles and such, IIRC. Doing a restart instead of a start makes >you less likely to run into ugliness. The postfix script is not one of >these, but it can't hurt. > >On Wednesday 22 September 2004 09:15, Ted Zlatanov wrote: > > >>On Tue, 21 Sep 2004, chip@trdlnk.com wrote: >> >> >> >>>In cfengine 2.1.10 on Solaris 2., this processes block: >>> "postfix" >>> signal=TERM >>> restart "/etc/init.d/postfix restart" >>> >>> >>Out of curiosity, doesn't the /etc/init.d/postfix script do the TERM >>signal for you? I know it's not what you're asking, but I'm trying to >>figure out why you're going around the normal mechanism for restarting >>Postfix. >> >>Ted >> >> >>_______________________________________________ >>Help-cfengine mailing list >>Help-cfengine@gnu.org >>http://lists.gnu.org/mailman/listinfo/help-cfengine >> >> >> > > > -- Phil D'Amore "Sometimes there is a fine line Senior System Administrator between criminally abusive Red Hat, Inc behavior and fun." Office: 919.754.3700 x44395 -- Ted the Generic Guy Pager: 877.383.8795 (Dilbert 4/19/2003) From MAILER-DAEMON Wed Sep 22 11:16:30 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CA8r8-0007jg-72 for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 11:16:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA8r3-0007jD-Qp for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:16:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA8r2-0007iV-6x for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:16:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA8r2-0007iS-2p for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:16:24 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CA8kj-0002mq-3s for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:09:53 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8MF9q0T015229; Wed, 22 Sep 2004 10:09:52 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: "Phil D'Amore" Date: Wed, 22 Sep 2004 10:09:52 -0500 User-Agent: KMail/1.5.4 References: <200409211606.59982.chip@trdlnk.com> <200409220948.00333.chip@trdlnk.com> <41519374.7080503@redhat.com> In-Reply-To: <41519374.7080503@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409221009.52107.chip@trdlnk.com> Cc: Ted Zlatanov , help-cfengine@gnu.org Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 15:16:28 -0000 Status: O Content-Length: 3100 Lines: 97 I've historically stayed away from matches= because of problems I've had with incorrect counts of matches. 'course, now that I know I can use filters, I might be revisiting that. (Another fun one with matches: multithreaded Linux apps on older kernels. Heavy threads! Doh!) On Wednesday 22 September 2004 10:00, Phil D'Amore wrote: > That's interesting. Things like this work for us (sorry I didn't have a > postgres example): > > cfrole_squid_server:: > "squid " > restart "/sbin/service squid start" > matches=>1 > inform=on > > The way I interpreted the docs was that the restart is run if nothing > matches the pattern, and the signal is done if something does match the > pattern. They're mutually exclusive in that way. > > Also something to note there is the space in my squid pattern. The > trailing space makes sure I only get the real squid procs and not the > string squid in a path passed into some other process. That may work > for you too. > > Chip Seraphine wrote: > > >Because the restart command will not run unless I send either a TERM or a > >KILL, according to the reference. 'tis a hackaround. I could have it set a > >class and then let shellcommands execute the restart, but that is even > >kludgier. > > > >It would be nice if we could say signal=dorestart or something like that to > >clue cfengine that we want to execute the restart line without sending a > >signal. (Or just allow signal 0 along with TERM and KILL, perhaps.) > > > >Given that I have to send a signal, the reason for saying "restart" instead of > >"start" is that some Linux init scripts (esp with RedHat and SuSE) sometimes > >clean up pidfiles and such, IIRC. Doing a restart instead of a start makes > >you less likely to run into ugliness. The postfix script is not one of > >these, but it can't hurt. > > > >On Wednesday 22 September 2004 09:15, Ted Zlatanov wrote: > > > > > >>On Tue, 21 Sep 2004, chip@trdlnk.com wrote: > >> > >> > >> > >>>In cfengine 2.1.10 on Solaris 2., this processes block: > >>> "postfix" > >>> signal=TERM > >>> restart "/etc/init.d/postfix restart" > >>> > >>> > >>Out of curiosity, doesn't the /etc/init.d/postfix script do the TERM > >>signal for you? I know it's not what you're asking, but I'm trying to > >>figure out why you're going around the normal mechanism for restarting > >>Postfix. > >> > >>Ted > >> > >> > >>_______________________________________________ > >>Help-cfengine mailing list > >>Help-cfengine@gnu.org > >>http://lists.gnu.org/mailman/listinfo/help-cfengine > >> > >> > >> > > > > > > > > -- > Phil D'Amore "Sometimes there is a fine line > Senior System Administrator between criminally abusive > Red Hat, Inc behavior and fun." > Office: 919.754.3700 x44395 -- Ted the Generic Guy > Pager: 877.383.8795 (Dilbert 4/19/2003) > > -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Wed Sep 22 11:20:21 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CA8uq-0000be-Ro for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 11:20:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA8un-0000b4-NC for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:20:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA8ul-0000a2-Dx for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:20:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA8ul-0000Ze-9P for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:20:15 -0400 Received: from [152.157.64.30] (helo=nsd.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CA8oI-0003VN-MV for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:13:34 -0400 Received: from [10.2.9.13] (account ckacoroski HELO [10.2.9.13]) by nsd.org (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5462975 for help-cfengine@gnu.org; Wed, 22 Sep 2004 08:13:33 -0700 Message-ID: <4151969D.80705@nsd.org> Date: Wed, 22 Sep 2004 08:13:33 -0700 From: Chris Kacoroski Organization: Northshore School District User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: cfagent always seems to be running - is this right X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ckacoroski@nsd.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 15:20:18 -0000 Status: O Content-Length: 437 Lines: 18 List folks, For some reason, cfagent is always running on my machines (as seen via top). Is this correct behavior. I thought that it should run, do its thing, and then quit. My SplayTime is 15 minutes and cfexecd is run every 30 minutes from cron. Thanks, ski -- "When we try to pick out anything by itself, we find it connected to the entire universe" John Muir Chris "Ski" Kacoroski, ckacoroski@nsd.org, 425-489-6263 From MAILER-DAEMON Wed Sep 22 11:25:11 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CA8zX-0001rR-Dx for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 11:25:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA8zV-0001qV-EZ for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:25:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA8zT-0001pk-01 for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:25:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA8zS-0001pa-R6 for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:25:06 -0400 Received: from [66.187.233.31] (helo=mx1.redhat.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CA8tL-0004Wi-NQ for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:18:48 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i8MFIfRS006091; Wed, 22 Sep 2004 11:18:46 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i8MFIfr09668; Wed, 22 Sep 2004 11:18:41 -0400 Received: from redhat.com (vpn50-54.rdu.redhat.com [172.16.50.54]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i8MFIeck020410; Wed, 22 Sep 2004 11:18:41 -0400 Message-ID: <415197D1.2080203@redhat.com> Date: Wed, 22 Sep 2004 11:18:41 -0400 From: "Phil D'Amore" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314 X-Accept-Language: en-us, en MIME-Version: 1.0 To: chip@trdlnk.com References: <200409211606.59982.chip@trdlnk.com> <200409220948.00333.chip@trdlnk.com> <41519374.7080503@redhat.com> <200409221009.52107.chip@trdlnk.com> In-Reply-To: <200409221009.52107.chip@trdlnk.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Ted Zlatanov , help-cfengine@gnu.org Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 15:25:09 -0000 Status: O Content-Length: 3925 Lines: 135 Indeed that can be fun. One thing to keep in mind though is that the matches doesn't affect restart or signal, only inform (and IIRC define/elsefdefine). The matches= in my statement could be left out and the restart behavior still stands, since it only runs when there are exactly 0 matches. I only have it there to set a threshold for the inform= line. Chip Seraphine wrote: >I've historically stayed away from matches= because of problems I've had with >incorrect counts of matches. 'course, now that I know I can use filters, I >might be revisiting that. > >(Another fun one with matches: multithreaded Linux apps on older kernels. >Heavy threads! Doh!) > >On Wednesday 22 September 2004 10:00, Phil D'Amore wrote: > > >>That's interesting. Things like this work for us (sorry I didn't have a >>postgres example): >> >> cfrole_squid_server:: >> "squid " >> restart "/sbin/service squid start" >> matches=>1 >> inform=on >> >>The way I interpreted the docs was that the restart is run if nothing >>matches the pattern, and the signal is done if something does match the >>pattern. They're mutually exclusive in that way. >> >>Also something to note there is the space in my squid pattern. The >>trailing space makes sure I only get the real squid procs and not the >>string squid in a path passed into some other process. That may work >>for you too. >> >>Chip Seraphine wrote: >> >> >> >>>Because the restart command will not run unless I send either a TERM or a >>>KILL, according to the reference. 'tis a hackaround. I could have it set >>> >>> >a > > >>>class and then let shellcommands execute the restart, but that is even >>>kludgier. >>> >>>It would be nice if we could say signal=dorestart or something like that to >>>clue cfengine that we want to execute the restart line without sending a >>>signal. (Or just allow signal 0 along with TERM and KILL, perhaps.) >>> >>>Given that I have to send a signal, the reason for saying "restart" instead >>> >>> >of > > >>>"start" is that some Linux init scripts (esp with RedHat and SuSE) >>> >>> >sometimes > > >>>clean up pidfiles and such, IIRC. Doing a restart instead of a start makes >>>you less likely to run into ugliness. The postfix script is not one of >>>these, but it can't hurt. >>> >>>On Wednesday 22 September 2004 09:15, Ted Zlatanov wrote: >>> >>> >>> >>> >>>>On Tue, 21 Sep 2004, chip@trdlnk.com wrote: >>>> >>>> >>>> >>>> >>>> >>>>>In cfengine 2.1.10 on Solaris 2., this processes block: >>>>> "postfix" >>>>> signal=TERM >>>>> restart "/etc/init.d/postfix restart" >>>>> >>>>> >>>>> >>>>> >>>>Out of curiosity, doesn't the /etc/init.d/postfix script do the TERM >>>>signal for you? I know it's not what you're asking, but I'm trying to >>>>figure out why you're going around the normal mechanism for restarting >>>>Postfix. >>>> >>>>Ted >>>> >>>> >>>>_______________________________________________ >>>>Help-cfengine mailing list >>>>Help-cfengine@gnu.org >>>>http://lists.gnu.org/mailman/listinfo/help-cfengine >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>-- >>Phil D'Amore "Sometimes there is a fine line >>Senior System Administrator between criminally abusive >>Red Hat, Inc behavior and fun." >>Office: 919.754.3700 x44395 -- Ted the Generic Guy >>Pager: 877.383.8795 (Dilbert 4/19/2003) >> >> >> >> > > > -- Phil D'Amore "Sometimes there is a fine line Senior System Administrator between criminally abusive Red Hat, Inc behavior and fun." Office: 919.754.3700 x44395 -- Ted the Generic Guy Pager: 877.383.8795 (Dilbert 4/19/2003) From MAILER-DAEMON Wed Sep 22 12:00:47 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CA9Xz-0001vg-CJ for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 12:00:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA9Xw-0001v5-H5 for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:00:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA9Xs-0001tX-TQ for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:00:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA9Xs-0001tR-Ha for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:00:40 -0400 Received: from [62.245.182.8] (helo=mx.leogic.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CA9Ra-0003Km-5A for help-cfengine@gnu.org; Wed, 22 Sep 2004 11:54:10 -0400 Received: from [127.0.0.1] ([192.168.65.59]) (authenticated bits=0) by mx.leogic.com (8.12.11/8.12.10) with ESMTP id i8MFs82Q028411 (version=TLSv1/SSLv3 cipher=IDEA-CBC-SHA bits=128 verify=NO) for ; Wed, 22 Sep 2004 17:54:08 +0200 Message-ID: <4151A01A.9050400@leogic.com> Date: Wed, 22 Sep 2004 17:54:02 +0200 From: Sven Mueller User-Agent: Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <200409212131.i8LLUxHm023002@nexus.iu.hio.no> <200409220645.11643.chip@trdlnk.com> <41516A64.1070001@leogic.com> In-Reply-To: <41516A64.1070001@leogic.com> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: help-cfengine@gnu.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 16:00:45 -0000 Status: O Content-Length: 1154 Lines: 45 Sven Mueller [u] wrote on 22/09/2004 14:04: > Chip Seraphine [u] wrote on 22/09/2004 13:45: > > >>OK, thanks, Mark. I see that now. I thought it was matching only on arg0, >>but it's just a pattern match against the entire line of 'ps' output... >> >>So what's the canonical workaround? I'm sure almost everybody has the similar >>problem from time to time, right? > > > "^[^ ]postfix " > in your case. > > I would guess ;-) OK, here is a better guess. cfengine seems to match against the full line "ps auxw" or similar returns. In my case for syslog-ng, that line looks like this: syslog 12067 0.0 0.0 1748 868 ? S Sep18 0:00 /usr/sbin/syslog-ng -u syslog -g audit or syslog 12067 0.0 0.0 1748 868 ? S Sep18 0:00 syslog-ng -u syslog -g audit All on one line of course. So the regexp I ended up using is: "[0-9]:[0-9][0-9] [^ ]*syslog-ng " I use the time information before ARGV[0] as an anchor. Another possibility would be some regexp that tries to fetch all the field before ARGV[0] to make sure there is no match of that regexp after ARGV[0]. All of which aren't really nice. cu, sven From MAILER-DAEMON Wed Sep 22 12:31:22 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAA1Y-0002ga-9C for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 12:31:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAA1X-0002gU-96 for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:31:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAA1T-0002gI-7Z for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:31:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAA1T-0002gF-3y for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:31:15 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CA9vP-0000mU-82 for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:24:59 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i8MGP3hk012434; Wed, 22 Sep 2004 18:25:07 +0200 (MEST) Message-Id: <200409221625.i8MGP3hk012434@nexus.iu.hio.no> Date: Wed, 22 Sep 2004 18:25:03 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: ckacoroski@nsd.org In-Reply-To: <4151969D.80705@nsd.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: help-cfengine@gnu.org Subject: Re: cfagent always seems to be running - is this right X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 16:31:19 -0000 Status: O Content-Length: 635 Lines: 27 This does not sound right, no M On 22 Sep, Chris Kacoroski wrote: > List folks, > > For some reason, cfagent is always running on my machines (as seen via > top). Is this correct behavior. I thought that it should run, do its > thing, and then quit. My SplayTime is 15 minutes and cfexecd is run > every 30 minutes from cron. > > Thanks, > > ski > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Wed Sep 22 12:50:23 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAAJz-0006GG-ED for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 12:50:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAAJx-0006EO-C1 for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:50:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAAJv-0006EB-TS for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:50:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAAJv-0006E8-PB for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:50:19 -0400 Received: from [152.157.64.30] (helo=nsd.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAADT-000414-AZ for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:43:39 -0400 Received: from [10.2.9.13] (account ckacoroski HELO [10.2.9.13]) by nsd.org (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5465621; Wed, 22 Sep 2004 09:43:38 -0700 Message-ID: <4151ABBA.5020600@nsd.org> Date: Wed, 22 Sep 2004 09:43:38 -0700 From: Chris Kacoroski Organization: Northshore School District User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mark.Burgess@iu.hio.no References: <200409221625.i8MGP3hk012434@nexus.iu.hio.no> In-Reply-To: <200409221625.i8MGP3hk012434@nexus.iu.hio.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: help-cfengine@gnu.org Subject: Re: cfagent always seems to be running - is this right X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ckacoroski@nsd.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 16:50:21 -0000 Status: O Content-Length: 665 Lines: 24 Could it happen if I have overloaded the server? I am scaling from 60 clients to over 1500. I am currently at about 400 clients. I currently have the server set to handle 100 concurrent connections, clients connect every 30 minutes, and a Splaytime of 15 minutes. cheers, ski Mark.Burgess@iu.hio.no wrote: > This does not sound right, no > > M > > On 22 Sep, Chris Kacoroski wrote: > >>List folks, >> >>For some reason, cfagent is always running on my machines (as seen via >>top). Is this correct behavior. I thought that it should run, do its >>thing, and then quit. My SplayTime is 15 minutes and cfexecd is run >>every 30 minutes from cron. From MAILER-DAEMON Wed Sep 22 12:53:48 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAANH-0007Nu-Ud for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 12:53:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAANG-0007Me-39 for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:53:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAANE-0007LY-IB for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:53:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAANE-0007LV-F1 for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:53:44 -0400 Received: from [152.157.64.30] (helo=nsd.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAAGn-0004cP-V4 for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:47:06 -0400 Received: from [10.2.9.13] (account ckacoroski HELO [10.2.9.13]) by nsd.org (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5465720 for help-cfengine@gnu.org; Wed, 22 Sep 2004 09:47:05 -0700 Message-ID: <4151AC88.8020007@nsd.org> Date: Wed, 22 Sep 2004 09:47:04 -0700 From: Chris Kacoroski Organization: Northshore School District User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Scaling to 1500 clients - any one done this... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ckacoroski@nsd.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 16:53:46 -0000 Status: O Content-Length: 440 Lines: 19 Hi, I am scaling my install from 60 to 1500 clients. At about 250 clients I started seeing problems with server connections being dropped. I would like to hear from anyone else who has a install of equivalent size to see how they set: - how often the client connects (currently every 30 minutes) - number of concurrent processes on the server (currently 100) - Splaytime used (currently 15 minutes). Thanks for your help. ski From MAILER-DAEMON Wed Sep 22 13:02:08 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAAVM-0000FM-Ie for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 13:02:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAAVJ-0000CV-JD for help-cfengine@gnu.org; Wed, 22 Sep 2004 13:02:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAAVG-00009R-1D for help-cfengine@gnu.org; Wed, 22 Sep 2004 13:02:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAAVF-000090-UP for help-cfengine@gnu.org; Wed, 22 Sep 2004 13:02:01 -0400 Received: from [195.68.52.65] (helo=mail.buf.fr) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CAAPB-0005p0-Dv for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:55:45 -0400 Received: from buf.com (pac.buf.fr [192.2.0.44]) by mail.buf.fr (8.12.3/8.12.3/Debian-6.6) with ESMTP id i8MGtgMr007017; Wed, 22 Sep 2004 18:55:42 +0200 Sender: alexj@mail.buf.fr Message-ID: <4151AE6C.EEDF7589@buf.com> Date: Wed, 22 Sep 2004 18:55:08 +0200 From: Alexander Jolk Organization: BUF Compagnie X-Mailer: Mozilla 4.7C-SGI [en] (X11; I; IRIX 6.5 IP22) X-Accept-Language: en, fr MIME-Version: 1.0 To: ckacoroski@nsd.org References: <4151AC88.8020007@nsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: help-cfengine@gnu.org Subject: Re: Scaling to 1500 clients - any one done this... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 17:02:06 -0000 Status: O Content-Length: 547 Lines: 21 Chris Kacoroski wrote: > I > would like to hear from anyone else who has a install of equivalent size > to see how they set: > > - how often the client connects (currently every 30 minutes) > > - number of concurrent processes on the server (currently 100) > > - Splaytime used (currently 15 minutes). I'm at only 300 clients, and I have them connect every 60min, with a splaytime of 20min, and MaxConnections set to 300 on the server. Alex -- Alexander Jolk / BUF Compagnie tel +33-1 42 68 18 28 / fax +33-1 42 68 18 29 From MAILER-DAEMON Wed Sep 22 13:15:20 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAAi6-0003Ba-Qc for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 13:15:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAAi2-00039i-UV for help-cfengine@gnu.org; Wed, 22 Sep 2004 13:15:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAAi0-00038D-3C for help-cfengine@gnu.org; Wed, 22 Sep 2004 13:15:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAAhz-00037F-GB for help-cfengine@gnu.org; Wed, 22 Sep 2004 13:15:11 -0400 Received: from [152.157.64.30] (helo=nsd.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAAbj-0008Fd-FV for help-cfengine@gnu.org; Wed, 22 Sep 2004 13:08:43 -0400 Received: from [10.2.9.13] (account ckacoroski HELO [10.2.9.13]) by nsd.org (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5466255 for help-cfengine@gnu.org; Wed, 22 Sep 2004 10:08:42 -0700 Message-ID: <4151B19A.7050003@nsd.org> Date: Wed, 22 Sep 2004 10:08:42 -0700 From: Chris Kacoroski Organization: Northshore School District User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <4151AC88.8020007@nsd.org> <4151AE6C.EEDF7589@buf.com> In-Reply-To: <4151AE6C.EEDF7589@buf.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Scaling to 1500 clients - any one done this... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ckacoroski@nsd.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 17:15:16 -0000 Status: O Content-Length: 599 Lines: 28 Alexander Jolk wrote: > Chris Kacoroski wrote: > >>I >>would like to hear from anyone else who has a install of equivalent size >>to see how they set: >> >>- how often the client connects (currently every 30 minutes) >> >>- number of concurrent processes on the server (currently 100) >> >>- Splaytime used (currently 15 minutes). > > > I'm at only 300 clients, and I have them connect every 60min, with a > splaytime of 20min, and MaxConnections set to 300 on the server. > > Alex > Alex, Thanks for the info. This will give me a starting point on where I should set my parameters. ski From MAILER-DAEMON Wed Sep 22 14:10:18 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CABZK-0005dQ-Fd for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 14:10:18 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CABZF-0005ZX-Ie for help-cfengine@gnu.org; Wed, 22 Sep 2004 14:10:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CABZE-0005Y9-3S for help-cfengine@gnu.org; Wed, 22 Sep 2004 14:10:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CABZE-0005XA-0K for help-cfengine@gnu.org; Wed, 22 Sep 2004 14:10:12 -0400 Received: from [66.45.70.241] (helo=mda01.dmotorworks.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CABSL-0001xH-E7 for help-cfengine@gnu.org; Wed, 22 Sep 2004 14:03:06 -0400 Received: from tcarlile-linux.dmotorworks.com (tcarlile-linux.dmotorworks.com [139.126.210.231]) by mda01.dmotorworks.com (Postfix) with ESMTP id D4BA31807A for ; Wed, 22 Sep 2004 13:02:56 -0500 (CDT) From: Tom Carlile To: help-cfengine@gnu.org Content-Type: text/plain Message-Id: <1095876170.5215.145.camel@tcarlile-linux.dmotorworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-1) Date: Wed, 22 Sep 2004 13:02:50 -0500 Content-Transfer-Encoding: 7bit Subject: Cf restart sequence hangs and eats CPU X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 18:10:14 -0000 Status: O Content-Length: 2372 Lines: 59 Hopefully someone here can lend some insight... I have cfengine 2.1.7p1 is setup on a pool of mixed Redhat AS 2.1 and 3ES servers, about 50 or so. Every 30min I have cfexecd starting cfagent. Updates occur and all my input files get updated but on some servers after the update cfagent is hung and consuming 49.9% or 99.9% cpu. Strace on the running pid seems to indicate it is catching sigpipes and looping on a call to write... This is most common on Redhat 3ES hosts but is reproducable on a few AS 2.1 servers. I suspect that my restart process is somehow flawed. See my update.conf below. I have noticed that usually 2 of the daemons get restarted but either cfenvd or cfservd are not running while cfagent is hung. I am digging to see if this is related to locks in the lock db, cfenvd's state or something else. I've seen similar reports of this on this list but not linked with a real cause. Thanks, ============ control: actionsequence = ( copy processes tidy ) domain = ( dmotorworks.com ) master_cfinput = ( /cfengine/policy/inputs ) workdir = ( /var/cfengine ) cf_install_dir = ( /usr/sbin ) AddInstallable = ( cfspawn ) TrustKeysFrom = ( ) AllowMultipleConnectionsFrom = ( ) ExcludeCopy = ( *~ *% core CVS ) SplayTime = ( 1 ) policyhost = ( policyhostname ) copy: $(master_cfinput) dest=$(workdir/inputs/ r=inf mode=600 owner=root group=root type=binary server=$(update.policyhost) trustkey=true purge=true define=cfspawn processes: "cfservd" restart "/sbin/service cfservd start" useshell=true "cfexecd" restart "/sbin/service cfexecd start" useshell=true "cfenvd" restart "/sbin/service cfenvd start" useshell=true cfspawn:: "cfservd" signal=term restart "/sbin/service cfservd restart" useshell=true "cfenvd" signal=kill restart "/sbin/service cfenvd restart" useshell=true "cfexecd" signal=kill restart "/sbin/service cfexecd restart" useshell=true ========== The cfservd, cfexecd, cfenvd rc scripts call killproc $prog and daemon $prog to stop/start. From MAILER-DAEMON Wed Sep 22 14:36:07 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAByI-0002mE-Jf for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 14:36:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAByF-0002jy-Bw for help-cfengine@gnu.org; Wed, 22 Sep 2004 14:36:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAByC-0002i8-QJ for help-cfengine@gnu.org; Wed, 22 Sep 2004 14:36:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAByC-0002i3-KF for help-cfengine@gnu.org; Wed, 22 Sep 2004 14:36:00 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CABqu-00079f-UD for help-cfengine@gnu.org; Wed, 22 Sep 2004 14:28:29 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i8MISVbd020741; Wed, 22 Sep 2004 20:28:36 +0200 (MEST) Message-Id: <200409221828.i8MISVbd020741@nexus.iu.hio.no> Date: Wed, 22 Sep 2004 20:28:31 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: tcarlile@dmotorworks.com In-Reply-To: <1095876170.5215.145.camel@tcarlile-linux.dmotorworks.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: help-cfengine@gnu.org Subject: Re: Cf restart sequence hangs and eats CPU X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 18:36:04 -0000 Status: O Content-Length: 1739 Lines: 46 First of all - please upgrade your software. I shall very soon be releasing 2.1.11. I recommend that you use this for several reasons, including security. On 22 Sep, Tom Carlile wrote: > Hopefully someone here can lend some insight... > > I have cfengine 2.1.7p1 is setup on a pool of mixed Redhat AS 2.1 and > 3ES servers, about 50 or so. Every 30min I have cfexecd starting > cfagent. Updates occur and all my input files get updated but on some > servers after the update cfagent is hung and consuming 49.9% or 99.9% > cpu. Strace on the running pid seems to indicate it is catching > sigpipes and looping on a call to write... > > This is most common on Redhat 3ES hosts but is reproducable on a few AS > 2.1 servers. I suspect that my restart process is somehow flawed. See > my update.conf below. Sometimes scripts do hang for various reasons. > I have noticed that usually 2 of the daemons get restarted but either > cfenvd or cfservd are not running while cfagent is hung. This is normal and is an artifact of the linux thread implementation. > I am digging to see if this is related to locks in the lock db, cfenvd's > state or something else. I've seen similar reports of this on this list > but not linked with a real cause. Thanks I do not think this has anything to do with locks. The scripts you are calling are shell scripts. Sometimes these do not properly close their descriptors. Try adding restart "service bla < /dev/null" M ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Wed Sep 22 15:03:31 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CACOo-0007Pf-RV for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 15:03:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CACOn-0007Pa-BL for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:03:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CACOl-0007PN-S3 for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:03:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CACOl-0007PK-Me for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:03:27 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CACIb-000408-Jx for help-cfengine@gnu.org; Wed, 22 Sep 2004 14:57:06 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8MIv40T009802; Wed, 22 Sep 2004 13:57:04 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: ckacoroski@nsd.org, help-cfengine@gnu.org Date: Wed, 22 Sep 2004 13:57:03 -0500 User-Agent: KMail/1.5.4 References: <4151AC88.8020007@nsd.org> In-Reply-To: <4151AC88.8020007@nsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409221357.03235.chip@trdlnk.com> Cc: Subject: Re: Scaling to 1500 clients - any one done this... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 19:03:29 -0000 Status: O Content-Length: 1178 Lines: 44 That was about the size I had hit when I switched from using cfrun to cfexecd for my connections and cranked up my splaytimes. FWIW, my clients run hourly. Even-houred runs are considered "lightruns" and do little more than check the process table and react to any emergencies (network down, disk full, etc). Copies, editfiles, most shellcommands, etc are done only on the odd hours. On Wednesday 22 September 2004 11:47, Chris Kacoroski wrote: > Hi, > > I am scaling my install from 60 to 1500 clients. At about 250 clients > I started seeing problems with server connections being dropped. I > would like to hear from anyone else who has a install of equivalent size > to see how they set: > > - how often the client connects (currently every 30 minutes) > > - number of concurrent processes on the server (currently 100) > > - Splaytime used (currently 15 minutes). > > Thanks for your help. > > ski > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Wed Sep 22 15:08:52 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CACU0-0008TM-7S for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 15:08:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CACTy-0008TB-4U for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:08:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CACTu-0008Sn-E3 for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:08:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CACTu-0008Se-BN for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:08:46 -0400 Received: from [199.46.200.231] (helo=lax-gate2.raytheon.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CACNl-0005Ca-6C for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:02:25 -0400 Received: from ds02t00.directory.ray.com (ds02t00.directory.ray.com [147.25.154.117]) by lax-gate2.raytheon.com (8.12.10/8.12.10) with ESMTP id i8MJ2Efw020164 for ; Wed, 22 Sep 2004 12:02:18 -0700 (PDT) Received: from ds02t00 (localhost [127.0.0.1]) by ds02t00.directory.ray.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i8MJ24YC028616 for ; Wed, 22 Sep 2004 19:02:04 GMT Received: from ds02t00.directory.ray.com with LMTP by ds02t00 (2.0.6/sieved-2-0-build-559) for ; Wed, 22 Sep 2004 19:02:04 +0000 Received: from electra.rsc.raytheon.com (electra.RSC.RAYTHEON.COM [147.19.81.176]) by ds02t00.directory.ray.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i8MJ1vPk028544 sender sawitt@zeus.rsc.raytheon.com for ; Wed, 22 Sep 2004 19:01:57 GMT Received: from zeus.rsc.raytheon.com ([147.19.81.175] ident=mail) by electra.rsc.raytheon.com with esmtp (Exim 4.34) id 1CACNI-0004Je-V4 for help-cfengine@gnu.org; Wed, 22 Sep 2004 12:01:56 -0700 Received: from sawitt (helo=localhost) by zeus.rsc.raytheon.com with local-esmtp (Exim 3.35 #1 (Debian)) id 1CACNI-0001rx-00 for ; Wed, 22 Sep 2004 12:01:56 -0700 Date: Wed, 22 Sep 2004 12:01:56 -0700 (PDT) From: Steve Witt X-X-Sender: sawitt@zeus.rsc.raytheon.com To: help-cfengine@gnu.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: "Stephen A. Witt" X-SPAM: 0.00 Subject: Upgrading Advice X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 19:08:50 -0000 Status: O Content-Length: 797 Lines: 19 I've got a software development lab of about 100 Debian Linux machines (3.0 - woody) that I'm using cfengine to manage. I started with version 2.1.1, which is what I'm using now. I didn't use the Debian package because I believe that the version in woody is pre-2.x.x. I'm feeling that 2.1.1 is getting pretty old now and that I should keep up with the newer versions. The question I have is whether there have been any significant changes to the latest cfengine that might really mess up my configuration, or if I should expect a pretty transparent upgrade. transparent. I don't think I'm doing anything too fancy with cfengine. I copy some configuration files to the clients, copy a couple of scripts, and run them. Anyway, I'd appreciate any advice you'all might have. Thanks... From MAILER-DAEMON Wed Sep 22 15:26:31 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CACl5-0002UY-C9 for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 15:26:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CACl2-0002To-Ec for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:26:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CACl0-0002Sp-55 for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:26:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CACl0-0002SR-0T for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:26:26 -0400 Received: from [152.17.8.11] (helo=f1n1.spenet.wfu.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CACed-0008Pg-Oe for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:19:51 -0400 Received: from f1n11.sp2net.wfu.edu (f1n11.sp2net.wfu.edu [152.17.8.21]) by f1n1.spenet.wfu.edu (8.11.6p2/8.11.6) with SMTP id i8MJJoJ80528 for ; Wed, 22 Sep 2004 15:19:50 -0400 X-Authentication-Warning: f1n1.spenet.wfu.edu: f1n11.sp2net.wfu.edu [152.17.8.21] didn't use HELO protocol Message-ID: <4151D053.2000302@wfu.edu> Date: Wed, 22 Sep 2004 15:19:47 -0400 From: John Borwick Organization: Wake Forest University User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040901) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig29CEDAA2D71AC6D27793083B" Subject: How does cfagent determine the hostname? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 19:26:28 -0000 Status: O Content-Length: 1180 Lines: 42 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig29CEDAA2D71AC6D27793083B Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello. I'm trying to automate a machine installation with kickstart and cfengine. In my %post section, the last two lines are hostname `hostname --fqdn` cfagent -Kvq This approach seems to work on RHAS2.1, but not RHEL3. How should I set the hostname for cfagent? Yours, John -- John Borwick System Administrator Wake Forest University | web http://www.wfu.edu/~borwicjh Winston-Salem, NC, USA | GPG key ID 0x797326D5 --------------enig29CEDAA2D71AC6D27793083B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBUdBV/81sF3lzJtURAk5JAJ973o67QFKmXrsz2rt+1XWSpvOOOACgv8GF 1Ifko+5b5cW08ISKJ+wvcGE= =S3Hi -----END PGP SIGNATURE----- --------------enig29CEDAA2D71AC6D27793083B-- From MAILER-DAEMON Wed Sep 22 15:48:06 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAD5y-0006tG-FM for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 15:48:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAD5u-0006rC-HT for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:48:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAD5s-0006qZ-Jb for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:48:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAD5s-0006qC-FA for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:48:00 -0400 Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CACzq-0004MN-1V for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:41:46 -0400 Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by mailwasher-b.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id i8MJfkWY026830 for ; Wed, 22 Sep 2004 13:41:46 -0600 Received: from ccn-mail.lanl.gov (ccn-mail.lanl.gov [128.165.4.105]) by mailrelay2.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id i8MIcjba016512; Wed, 22 Sep 2004 12:38:45 -0600 Received: from edbrown.lanl.gov (edbrown.lanl.gov [128.165.114.35]) by ccn-mail.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i8MIcjeV032420; Wed, 22 Sep 2004 12:38:45 -0600 From: Ed Brown To: ckacoroski@nsd.org In-Reply-To: <4151B19A.7050003@nsd.org> References: <4151AC88.8020007@nsd.org> <4151AE6C.EEDF7589@buf.com> <4151B19A.7050003@nsd.org> Content-Type: text/plain Message-Id: <1095878324.8488.75.camel@edbrown.lanl.gov> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 22 Sep 2004 12:38:45 -0600 Content-Transfer-Encoding: 7bit X-PMX-Version: 4.6.0.99824 X-PMX-Version: 4.6.1.107272 Cc: help-cfengine@gnu.org Subject: Re: Scaling to 1500 clients - any one done this... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 19:48:02 -0000 Status: O Content-Length: 1276 Lines: 46 I think that all clients make an initial connection at the top of the runperiod (hour, half-hour...), no matter the splaytime. If they can't connect then, you'll get mail, and cfagent doesn't run that period. So my guess is that MaxConnections will have to equal the number of clients, if they all kick off at the same time. And 1500 connections at once might be tough under any circumstances. -Ed On Wed, 2004-09-22 at 11:08, Chris Kacoroski wrote: > Alexander Jolk wrote: > > Chris Kacoroski wrote: > > > >>I > >>would like to hear from anyone else who has a install of equivalent size > >>to see how they set: > >> > >>- how often the client connects (currently every 30 minutes) > >> > >>- number of concurrent processes on the server (currently 100) > >> > >>- Splaytime used (currently 15 minutes). > > > > > > I'm at only 300 clients, and I have them connect every 60min, with a > > splaytime of 20min, and MaxConnections set to 300 on the server. > > > > Alex > > > > Alex, > > Thanks for the info. This will give me a starting point on where I > should set my parameters. > > ski > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine From MAILER-DAEMON Wed Sep 22 16:04:03 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CADLP-00012e-1J for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 16:04:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CADLM-00011a-Dl for help-cfengine@gnu.org; Wed, 22 Sep 2004 16:04:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CADLK-00010v-IP for help-cfengine@gnu.org; Wed, 22 Sep 2004 16:03:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CADLK-00010e-G1 for help-cfengine@gnu.org; Wed, 22 Sep 2004 16:03:58 -0400 Received: from [216.241.32.61] (helo=ramirez.hilander.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CADFA-0007KI-Vu for help-cfengine@gnu.org; Wed, 22 Sep 2004 15:57:37 -0400 Received: from [216.241.32.62] (helo=[192.168.0.100]) by ramirez.hilander.com with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.41) id 1CADF6-0006hx-Ec; Wed, 22 Sep 2004 13:57:33 -0600 Date: Wed, 22 Sep 2004 13:57:30 -0600 From: "Alec H. Peterson" To: Ed Brown , ckacoroski@nsd.org Message-ID: In-Reply-To: <1095878324.8488.75.camel@edbrown.lanl.gov> References: <4151AC88.8020007@nsd.org> <4151AE6C.EEDF7589@buf.com> <4151B19A.7050003@nsd.org> <1095878324.8488.75.camel@edbrown.lanl.gov> X-Mailer: Mulberry/3.1.5 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Spam-Score: 0.0 (/) Cc: help-cfengine@gnu.org Subject: Re: Scaling to 1500 clients - any one done this... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 20:04:00 -0000 Status: O Content-Length: 291 Lines: 12 --On Wednesday, September 22, 2004 12:38 PM -0600 Ed Brown wrote: > I think that all clients make an initial connection at the top of the > runperiod (hour, half-hour...), no matter the splaytime. I bet you can put a SplayTime into update.conf to address this. Alec From MAILER-DAEMON Wed Sep 22 16:14:32 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CADVY-0002xC-Gl for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 16:14:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CADVX-0002x7-4V for help-cfengine@gnu.org; Wed, 22 Sep 2004 16:14:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CADVV-0002wu-Gk for help-cfengine@gnu.org; Wed, 22 Sep 2004 16:14:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CADVV-0002wr-Ej for help-cfengine@gnu.org; Wed, 22 Sep 2004 16:14:29 -0400 Received: from [67.107.182.10] (helo=karl.presidio.alexa.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CADPS-0000jU-QB for help-cfengine@gnu.org; Wed, 22 Sep 2004 16:08:15 -0400 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 22 Sep 2004 13:08:10 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 Message-ID: <41089CB27BD8D24E8385C8003EDAF7AB014D6FDF@karl.alexa.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Scaling to 1500 clients - any one done this... Thread-Index: AcSg3ocZ0BARFDl4TLqlA/zrIVmiUQAAJKJg From: "Guolin Cheng" To: "Alec H. Peterson" , "Ed Brown" , Cc: help-cfengine@gnu.org Subject: RE: Scaling to 1500 clients - any one done this... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 20:14:31 -0000 Status: O Content-Length: 1818 Lines: 67 Right, I did that as well and it works great. In fact, I wrong cfagent from client's cron daily. In the cron script I have another "splay" setting to make it more reliable, say, "SplayTime" in cfengine fails or I mis-configured the option. My cron includes something like the following: ######################################################################## ### ....... noSleep=3Dfalse; ## specifically override parameters, for all testing purposes if [ $# -gt 0 ] ; then for positionalParameter in $*; do case ${positionalParameter} in --noSleep|--noSleep=3D|--noSleep=3D*) noSleep=3Dtrue ;; esac done fi # Sleep a random time, from 0 seconds to 20 minutes to avoid storm effect # on the cfengine server(s) #$RANDOM is a bash shell built-in variable, randomly from 0 - 32767. RandomSleepTime=3D`eval expr ${RANDOM} % 1200 ` if [ "${noSleep}" =3D=3D "true" ] ; then : else sleep ${RandomSleepTime} fi cfagent -----Original Message----- From: help-cfengine-bounces+guolin=3Dalexa.com@gnu.org [mailto:help-cfengine-bounces+guolin=3Dalexa.com@gnu.org] On Behalf Of Alec H. Peterson Sent: Wednesday, September 22, 2004 12:58 PM To: Ed Brown; ckacoroski@nsd.org Cc: help-cfengine@gnu.org Subject: Re: Scaling to 1500 clients - any one done this... --On Wednesday, September 22, 2004 12:38 PM -0600 Ed Brown=20 wrote: > I think that all clients make an initial connection at the top of the > runperiod (hour, half-hour...), no matter the splaytime. I bet you can put a SplayTime into update.conf to address this. Alec _______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine From MAILER-DAEMON Wed Sep 22 16:20:59 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CADbn-0004Z3-Ne for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 16:20:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CADbm-0004Yu-UZ for help-cfengine@gnu.org; Wed, 22 Sep 2004 16:20:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CADbl-0004Yh-Cf for help-cfengine@gnu.org; Wed, 22 Sep 2004 16:20:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CADbl-0004Ye-9m for help-cfengine@gnu.org; Wed, 22 Sep 2004 16:20:57 -0400 Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CADVN-000280-EI for help-cfengine@gnu.org; Wed, 22 Sep 2004 16:14:21 -0400 Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by mailwasher-b.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id i8MKENTG030871 for ; Wed, 22 Sep 2004 14:14:23 -0600 Received: from ccn-mail.lanl.gov (ccn-mail.lanl.gov [128.165.4.105]) by mailrelay2.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id i8MKEIBa010728; Wed, 22 Sep 2004 14:14:18 -0600 Received: from edbrown.lanl.gov (edbrown.lanl.gov [128.165.114.35]) by ccn-mail.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i8MKEIeV003033; Wed, 22 Sep 2004 14:14:18 -0600 From: Ed Brown To: "Alec H. Peterson" In-Reply-To: References: <4151AC88.8020007@nsd.org> <4151AE6C.EEDF7589@buf.com> <4151B19A.7050003@nsd.org> <1095878324.8488.75.camel@edbrown.lanl.gov> Content-Type: text/plain Message-Id: <1095884057.8487.132.camel@edbrown.lanl.gov> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 22 Sep 2004 14:14:18 -0600 Content-Transfer-Encoding: 7bit X-PMX-Version: 4.6.0.99824 X-PMX-Version: 4.6.1.107272 Cc: help-cfengine@gnu.org Subject: Re: Scaling to 1500 clients - any one done this... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 20:20:59 -0000 Status: O Content-Length: 442 Lines: 18 Thanks, will try this, I only have SplayTime in cfagent.conf at present... On Wed, 2004-09-22 at 13:57, Alec H. Peterson wrote: > --On Wednesday, September 22, 2004 12:38 PM -0600 Ed Brown > wrote: > > > I think that all clients make an initial connection at the top of the > > runperiod (hour, half-hour...), no matter the splaytime. > > I bet you can put a SplayTime into update.conf to address this. > > Alec > From MAILER-DAEMON Wed Sep 22 18:11:31 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAFKk-0005RQ-RL for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 18:11:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAFKi-0005RA-Ao for help-cfengine@gnu.org; Wed, 22 Sep 2004 18:11:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAFKc-0005P7-8h for help-cfengine@gnu.org; Wed, 22 Sep 2004 18:11:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAFKc-0005P3-4f for help-cfengine@gnu.org; Wed, 22 Sep 2004 18:11:22 -0400 Received: from [67.138.244.194] (helo=denk.nakedape.priv) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAFEZ-0006y5-Ma for help-cfengine@gnu.org; Wed, 22 Sep 2004 18:05:07 -0400 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by denk.nakedape.priv (Postfix) with ESMTP id 138CAB0081 for ; Wed, 22 Sep 2004 15:05:05 -0700 (PDT) From: Wil Cooley To: help-cfengine@gnu.org In-Reply-To: <8045B359-0C2B-11D9-A4BE-000A95C47858@intel.com> References: <8045B359-0C2B-11D9-A4BE-000A95C47858@intel.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-bGLu84dwZ07RN1ZDaGWb" Organization: Naked Ape Consulting, Ltd Date: Wed, 22 Sep 2004 15:05:04 -0700 Message-Id: <1095890704.28045.6.camel@denk.nakedape.priv> Mime-Version: 1.0 X-Mailer: Evolution 1.5.9.1 (1.5.9.1-2) Subject: Re: Setting an OS-specific class X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 22:11:28 -0000 Status: O Content-Length: 1114 Lines: 49 --=-bGLu84dwZ07RN1ZDaGWb Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2004-09-21 at 17:08 -0700, Tod Oace wrote: > I looked at the reference manual and it says that the "redhat::" is=20 > ANDed with the ReturnsZero, so I guess it's working the way it's=20 > supposed to, but it's what I expected. And I don't know how else to=20 > easily limit the egrep to redhat. >=20 > This is on 2.1.10. Any ideas? How about this: control: redhat:: grepcmd =3D ( /bin/egrep -q foo ) !redhat:: grepcmd =3D ( /bin/egrep foo ) classes: someclass =3D ( ReturnsZero($(grepcmd)) ? Wil --=20 Wil Cooley wcooley@nakedape.cc Naked Ape Consulting http://nakedape.cc --=-bGLu84dwZ07RN1ZDaGWb Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBUfcQJpn3uYWUEaoRAi2AAJsFpJTvTdm66LLp6zc76A+3Jh5TGQCfVrtV gCSEr85n7j1MkNjCWd3rw7w= =RKnk -----END PGP SIGNATURE----- --=-bGLu84dwZ07RN1ZDaGWb-- From MAILER-DAEMON Wed Sep 22 20:17:25 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAHIb-0008Hh-EP for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 20:17:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAHIY-0008Ga-N5 for help-cfengine@gnu.org; Wed, 22 Sep 2004 20:17:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAHIU-0008FA-1S for help-cfengine@gnu.org; Wed, 22 Sep 2004 20:17:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAHIT-0008F0-UA for help-cfengine@gnu.org; Wed, 22 Sep 2004 20:17:17 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1CAHBq-0006f4-Po for help-cfengine@gnu.org; Wed, 22 Sep 2004 20:10:26 -0400 Received: (qmail 19687 invoked from network); 23 Sep 2004 00:10:10 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 23 Sep 2004 00:10:10 -0000 Date: Thu, 23 Sep 2004 10:08:11 +1000 (EST) From: Timothy Sven Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: John Borwick In-Reply-To: <4151D053.2000302@wfu.edu> Message-ID: References: <4151D053.2000302@wfu.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: help-cfengine@gnu.org Subject: Re: How does cfagent determine the hostname? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 00:17:23 -0000 Status: O Content-Length: 840 Lines: 36 On Wed, 22 Sep 2004, John Borwick wrote: > Hello. > > I'm trying to automate a machine installation with kickstart and cfengine. > In my %post section, the last two lines are > > hostname `hostname --fqdn` > cfagent -Kvq > > This approach seems to work on RHAS2.1, but not RHEL3. > > How should I set the hostname for cfagent? If I recall, what I was doing at my previous workplace was to: 1. Ensure a working DNS configuration (and IP address) are set up in Kickstart somewhere. 2. Use "host $ip" to get the hostname (you need reverse DNS set up for this). :) -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Wed Sep 22 22:39:53 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAJWT-0003WY-9y for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 22:39:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAJWR-0003W4-Ec for help-cfengine@gnu.org; Wed, 22 Sep 2004 22:39:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAJWP-0003Vs-Sc for help-cfengine@gnu.org; Wed, 22 Sep 2004 22:39:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAJWP-0003Vp-PW for help-cfengine@gnu.org; Wed, 22 Sep 2004 22:39:49 -0400 Received: from [204.245.156.2] (helo=core.zot.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CAJQ9-0006VG-ON for help-cfengine@gnu.org; Wed, 22 Sep 2004 22:33:21 -0400 Received: from [10.17.23.107] (pcp02505262pcs.anapol01.md.comcast.net [68.84.132.48]) (authenticated bits=0) by core.zot.com (8.12.11/8.12.11) with ESMTP id i8N1n0mk017799 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 22 Sep 2004 21:49:04 -0400 From: Chris Edillon To: ckacoroski@nsd.org In-Reply-To: <4151AC88.8020007@nsd.org> References: <4151AC88.8020007@nsd.org> Content-Type: text/plain Message-Id: <1095892463.4151.15.camel@linux.site> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 22 Sep 2004 18:34:23 -0400 Content-Transfer-Encoding: 7bit Cc: help-cfengine@gnu.org Subject: Re: Scaling to 1500 clients - any one done this... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 02:39:51 -0000 Status: O Content-Length: 1718 Lines: 40 On Wed, 2004-09-22 at 12:47, Chris Kacoroski wrote: > I am scaling my install from 60 to 1500 clients. At about 250 clients > I started seeing problems with server connections being dropped. I > would like to hear from anyone else who has a install of equivalent size > to see how they set: > > - how often the client connects (currently every 30 minutes) > > - number of concurrent processes on the server (currently 100) > > - Splaytime used (currently 15 minutes). > from a load-balancing perspective, do you really want 1500 clients connecting to a single server? at a customer site a few years ago i was running cfengine on over 1000 machines in various buildings, with a scheduled run every half-hour and a splaytime of 25 minutes. however, i had the clients run a module which ran a simple heuristic to determine which building it existed in and then set a policyhost variable which pointed to the policyhost located in the same building. i never had any real problems with that setup. to mitigate the effect of copying large amounts of data from the small set of servers, i had a general purpose configuration which the clients would pull down and run every half hour that only handled local actions, and i imported a config file once a night based on a time class in which the splay time was set to four hours and all of the clients would pull over software packages, etc. over the larger time period. unfortunately i'm consulting for a different customer right now on a much smaller research project, so i don't get to work on nifty large-scale configuration management ideas using cfengine anymore. i can describe more about my old architecture off-list if anyone's interested. chris From MAILER-DAEMON Wed Sep 22 22:53:55 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAJk3-0006jU-H3 for mharc-help-cfengine@gnu.org; Wed, 22 Sep 2004 22:53:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAJk1-0006jP-R1 for help-cfengine@gnu.org; Wed, 22 Sep 2004 22:53:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAJk1-0006jD-CQ for help-cfengine@gnu.org; Wed, 22 Sep 2004 22:53:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAJk1-0006jA-97 for help-cfengine@gnu.org; Wed, 22 Sep 2004 22:53:53 -0400 Received: from [204.245.156.2] (helo=core.zot.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CAJdX-0000KO-8o for help-cfengine@gnu.org; Wed, 22 Sep 2004 22:47:11 -0400 Received: from [10.17.23.107] (pcp02505262pcs.anapol01.md.comcast.net [68.84.132.48]) (authenticated bits=0) by core.zot.com (8.12.11/8.12.11) with ESMTP id i8N22rh1017895 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 22 Sep 2004 22:02:54 -0400 From: Chris Edillon To: Ed Brown In-Reply-To: <1095884057.8487.132.camel@edbrown.lanl.gov> References: <4151AC88.8020007@nsd.org> <4151AE6C.EEDF7589@buf.com> <4151B19A.7050003@nsd.org> <1095878324.8488.75.camel@edbrown.lanl.gov> <1095884057.8487.132.camel@edbrown.lanl.gov> Content-Type: text/plain Message-Id: <1095893295.4234.7.camel@linux.site> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 22 Sep 2004 18:48:15 -0400 Content-Transfer-Encoding: 7bit Cc: help-cfengine@gnu.org Subject: Re: Scaling to 1500 clients - any one done this... X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 02:53:54 -0000 Status: O Content-Length: 233 Lines: 12 On Wed, 2004-09-22 at 16:14, Ed Brown wrote: > Thanks, will try this, I only have SplayTime in cfagent.conf at > present... this works, with the (obvious?) caveat that a second SplayTime setting in cfagent.conf gets ignored. From MAILER-DAEMON Thu Sep 23 01:38:28 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAMJH-0002qv-MA for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 01:38:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAMJF-0002qO-Rs for help-cfengine@gnu.org; Thu, 23 Sep 2004 01:38:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAMJD-0002py-CR for help-cfengine@gnu.org; Thu, 23 Sep 2004 01:38:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAMJD-0002pv-90 for help-cfengine@gnu.org; Thu, 23 Sep 2004 01:38:23 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAMCp-00010N-3N for help-cfengine@gnu.org; Thu, 23 Sep 2004 01:31:47 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i8N5Vo7b005334; Thu, 23 Sep 2004 07:31:54 +0200 (MEST) Message-Id: <200409230531.i8N5Vo7b005334@nexus.iu.hio.no> Date: Thu, 23 Sep 2004 07:31:50 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: borwicjh@wfu.edu In-Reply-To: <4151D053.2000302@wfu.edu> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: help-cfengine@gnu.org Subject: Re: How does cfagent determine the hostname? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 05:38:26 -0000 Status: O Content-Length: 873 Lines: 35 CFngine learns the hostname from uname() - e.g. uname -a. So as long as there is some way of telling the host its name you don't have t think about cfengine, it will figure it out. Normally you would register in DNS or you favourite directory service. M On 22 Sep, John Borwick wrote: > Hello. > > I'm trying to automate a machine installation with kickstart and > cfengine. In my %post section, the last two lines are > > hostname `hostname --fqdn` > cfagent -Kvq > > This approach seems to work on RHAS2.1, but not RHEL3. > > How should I set the hostname for cfagent? > > Yours, > John ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Thu Sep 23 01:43:30 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAMOA-0003ps-Mb for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 01:43:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAMO8-0003pf-M1 for help-cfengine@gnu.org; Thu, 23 Sep 2004 01:43:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAMO6-0003pL-Rs for help-cfengine@gnu.org; Thu, 23 Sep 2004 01:43:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAMO6-0003pA-Q9 for help-cfengine@gnu.org; Thu, 23 Sep 2004 01:43:26 -0400 Received: from [193.209.83.41] (helo=haavi.almamedia.fi) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAMHz-0001ie-QY for help-cfengine@gnu.org; Thu, 23 Sep 2004 01:37:08 -0400 Received: by haavi.almamedia.fi (Postfix, from userid 99) id 0EA7CEC96; Thu, 23 Sep 2004 08:37:03 +0300 (EEST) Received: from [10.31.42.42] (rakkine.i.siu.ro [10.31.42.42]) by haavi.almamedia.fi (Postfix) with ESMTP id 03AD3EBA5; Thu, 23 Sep 2004 08:37:02 +0300 (EEST) Message-ID: <4152612D.9030809@almamedia.fi> Date: Thu, 23 Sep 2004 08:37:49 +0300 From: =?ISO-8859-1?Q?=22Sami_J=2E_M=E4kinen=22?= Organization: Alma Media Interactive User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <4151D053.2000302@wfu.edu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: How does cfagent determine the hostname? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 05:43:28 -0000 Status: O Content-Length: 1189 Lines: 46 Timothy Sven Nelson wrote: >> I'm trying to automate a machine installation with kickstart and=20 >> cfengine. In my %post section, the last two lines are >> >> hostname `hostname --fqdn` >> cfagent -Kvq >> >> This approach seems to work on RHAS2.1, but not RHEL3. >> >> How should I set the hostname for cfagent? >=20 >=20 > If I recall, what I was doing at my previous workplace was to: > 1. Ensure a working DNS configuration (and IP address) are set up in > Kickstart somewhere. > 2. Use "host $ip" to get the hostname (you need reverse DNS set up > for this). We are using this in our %post section for RHEL3: --- 8< --- ######################################################################## # Set hostname, needed by cfengine if [ -f /etc/sysconfig/network ] then . /etc/sysconfig/network fi if [ -z "$HOSTNAME" -o "$HOSTNAME" =3D "(none)" ] then echo "*** No host, can't install ***" exit 1 fi /bin/hostname $HOSTNAME --- 8< --- Remember, %post commands are run chrooted to the newly installed system. --=20 -- sjm "Pir=E4tt=E4k=E4=E4. Nakkeletta nuallen rassukoollen per=E4koijasta jokuja napollisia opaalia." - Junttapurin maharatsa From MAILER-DAEMON Thu Sep 23 09:27:40 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CATdK-000426-Iy for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 09:27:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CATdF-00040n-LD for help-cfengine@gnu.org; Thu, 23 Sep 2004 09:27:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CATdC-0003zu-OP for help-cfengine@gnu.org; Thu, 23 Sep 2004 09:27:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CATdC-0003zr-J5 for help-cfengine@gnu.org; Thu, 23 Sep 2004 09:27:30 -0400 Received: from [146.145.176.225] (helo=smtp.ip-solutions.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CATWm-0004ls-4t for help-cfengine@gnu.org; Thu, 23 Sep 2004 09:20:52 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.ip-solutions.net (Postfix) with ESMTP id 0BC102C8003 for ; Thu, 23 Sep 2004 09:20:51 -0400 (EDT) Received: from smtp.ip-solutions.net ([127.0.0.1]) by localhost (smtp.ip-solutions.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09385-03 for ; Thu, 23 Sep 2004 09:20:50 -0400 (EDT) Received: from [129.25.22.129] (n1-22-129.dhcp.drexel.edu [129.25.22.129]) by smtp.ip-solutions.net (Postfix) with ESMTP id 930DD2C8002 for ; Thu, 23 Sep 2004 09:20:50 -0400 (EDT) Message-ID: <4152CDAE.3020004@ip-solutions.net> Date: Thu, 23 Sep 2004 09:20:46 -0400 From: Harry Hoffman User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at ip-solutions.net Subject: Cannot mail root X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 13:27:34 -0000 Status: O Content-Length: 707 Lines: 22 Hi All, I've run into a bit of an issue that I've having trouble figuring out. Rather recently cfengine began attempting to send me emails (Checksum database -- updates RPMS). Unfortunately it has been unable to do so. I receive the following error: Unable to mail root@ip-solutions.net. After checking the mail server logs (Postfix) I see that the address is coming across in the form: cfengine@root@ip-solutions.net. Now the ability to email used to work so I'm a bit lost as to what I may have changed to have this occur. Sendmail on each machine is configured to send all messages to my MX. Any insight would be greatly appreciated as google has revealed anything good yet. Thanks, Harry From MAILER-DAEMON Thu Sep 23 10:08:39 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAUH0-0005Yx-5H for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 10:08:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAUGw-0005Xl-IM for help-cfengine@gnu.org; Thu, 23 Sep 2004 10:08:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAUGu-0005Wq-60 for help-cfengine@gnu.org; Thu, 23 Sep 2004 10:08:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAUGu-0005Wg-0P for help-cfengine@gnu.org; Thu, 23 Sep 2004 10:08:32 -0400 Received: from [62.80.19.64] (helo=stinger.2e-systems.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAUAm-0002Zg-GU for help-cfengine@gnu.org; Thu, 23 Sep 2004 10:02:12 -0400 Received: from [192.168.101.41] (panix.lhe-support.com [192.168.101.41]) by stinger.2e-systems.com (Postfix) with ESMTP id CBB1836E6EE for ; Thu, 23 Sep 2004 16:02:10 +0200 (CEST) Message-ID: <4152D762.8010605@2e-systems.com> Date: Thu, 23 Sep 2004 16:02:10 +0200 From: Predrag Zecevic - Solaris System Administrator User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7.3) Gecko/20040916 X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <4152CDAE.3020004@ip-solutions.net> In-Reply-To: <4152CDAE.3020004@ip-solutions.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Cannot mail root X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: help-cfengine@gnu.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 14:08:34 -0000 Status: O Content-Length: 1569 Lines: 49 Hi Harry, I had that problem (2.1.6 > cfengine < 2.1.10 - late one solved problem automagically)... Which platform/version we are talking about? Regards ;-) Harry Hoffman wrote: > Hi All, > > I've run into a bit of an issue that I've having trouble figuring out. > Rather recently cfengine began attempting to send me emails (Checksum > database -- updates RPMS). Unfortunately it has been unable to do so. > I receive the following error: Unable to mail root@ip-solutions.net. > > After checking the mail server logs (Postfix) I see that the address > is coming across in the form: cfengine@root@ip-solutions.net. Now the > ability to email used to work so I'm a bit lost as to what I may have > changed to have this occur. > > Sendmail on each machine is configured to send all messages to my MX. > > Any insight would be greatly appreciated as google has revealed > anything good yet. > > > Thanks, > Harry > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine -- | Predrag Zecevic | e-Mail: Predrag.Zecevic@2e-Systems.COM | | 2e Systems GmbH | Tel: (+49)[0]6107 989 415 | |Im Taubengrund 12| Fax: (+49)[0]6107 989 494 | |65451 Kelsterbach| | | Germany | Cellular: (+49)[0]174 3109 288 | +=================+ We should have a Vollyballocracy. We elect a six-pack of presidents. Each one serves until they screw up, at which point they rotate. -- Dennis Miller From MAILER-DAEMON Thu Sep 23 10:26:35 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAUYM-0001Sx-Q9 for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 10:26:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAUYL-0001Sr-CL for help-cfengine@gnu.org; Thu, 23 Sep 2004 10:26:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAUYK-0001Sf-Nj for help-cfengine@gnu.org; Thu, 23 Sep 2004 10:26:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAUYK-0001Sc-Gi for help-cfengine@gnu.org; Thu, 23 Sep 2004 10:26:32 -0400 Received: from [146.145.176.225] (helo=smtp.ip-solutions.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAURJ-0005SX-Ax for help-cfengine@gnu.org; Thu, 23 Sep 2004 10:19:17 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.ip-solutions.net (Postfix) with ESMTP id CE1942C8003 for ; Thu, 23 Sep 2004 10:19:16 -0400 (EDT) Received: from smtp.ip-solutions.net ([127.0.0.1]) by localhost (smtp.ip-solutions.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08999-07 for ; Thu, 23 Sep 2004 10:19:16 -0400 (EDT) Received: from [129.25.22.129] (n1-22-129.dhcp.drexel.edu [129.25.22.129]) by smtp.ip-solutions.net (Postfix) with ESMTP id 71DC92C8002 for ; Thu, 23 Sep 2004 10:19:16 -0400 (EDT) Message-ID: <4152DB62.4000103@ip-solutions.net> Date: Thu, 23 Sep 2004 10:19:14 -0400 From: Harry Hoffman User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <4152CDAE.3020004@ip-solutions.net> <4152D762.8010605@2e-systems.com> In-Reply-To: <4152D762.8010605@2e-systems.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at ip-solutions.net Subject: Re: Cannot mail root X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 14:26:33 -0000 Status: O Content-Length: 389 Lines: 23 Hi Predrag, I'm using cfengine 2.1.10 on the linux systems (from Dag Weeirs Fedora yum repository) and a self-compiled 2.1.10 on solaris. Cheers, Harry Predrag Zecevic - Solaris System Administrator wrote: > Hi Harry, > > I had that problem (2.1.6 > cfengine < 2.1.10 - late one solved > problem automagically)... > Which platform/version we are talking about? > > Regards ;-) From MAILER-DAEMON Thu Sep 23 10:48:00 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAUt6-0006hR-FY for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 10:48:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAUt4-0006hM-Gs for help-cfengine@gnu.org; Thu, 23 Sep 2004 10:47:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAUt2-0006h3-TS for help-cfengine@gnu.org; Thu, 23 Sep 2004 10:47:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAUt2-0006h0-M9 for help-cfengine@gnu.org; Thu, 23 Sep 2004 10:47:56 -0400 Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CAUme-0000KW-Tg for help-cfengine@gnu.org; Thu, 23 Sep 2004 10:41:21 -0400 Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailwasher-b.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id i8NEfNfk024175 for ; Thu, 23 Sep 2004 08:41:23 -0600 Received: from webmail.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11/8.12.11) with ESMTP id i8NEfJev010864 for ; Thu, 23 Sep 2004 08:41:19 -0600 Received: from 128.165.7.156 (SquirrelMail authenticated user ebrown); by webmail.lanl.gov with HTTP; Thu, 23 Sep 2004 08:41:19 -0600 (MDT) Message-ID: <33656.128.165.7.156.1095950479.squirrel@128.165.7.156> In-Reply-To: <4152612D.9030809@almamedia.fi> References: <4151D053.2000302@wfu.edu> <4152612D.9030809@almamedia.fi> Date: Thu, 23 Sep 2004 08:41:19 -0600 (MDT) From: ebrown@lanl.gov To: help-cfengine@gnu.org User-Agent: SquirrelMail/1.4.3-1.lanl X-Mailer: SquirrelMail/1.4.3-1.lanl MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.6.0.99824 Subject: Re: How does cfagent determine the hostname? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 14:47:58 -0000 Status: O Content-Length: 421 Lines: 24 This works for us: hostname `grep HOSTNAME /etc/sysconfig/network |cut -d'=' -f2` -Ed > > Timothy Sven Nelson wrote: > >>> I'm trying to automate a machine installation with kickstart and >>> cfengine. In my %post section, the last two lines are >>> >>> hostname `hostname --fqdn` >>> cfagent -Kvq >>> >>> This approach seems to work on RHAS2.1, but not RHEL3. >>> >>> How should I set the hostname for cfagent? From MAILER-DAEMON Thu Sep 23 11:00:34 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAV5G-0001BS-Lq for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 11:00:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAV5E-0001BI-UO for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:00:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAV5C-0001AY-U4 for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:00:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAV5C-0001AH-My for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:00:30 -0400 Received: from [152.17.8.11] (helo=f1n1.spenet.wfu.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAUyk-0002DB-Gg for help-cfengine@gnu.org; Thu, 23 Sep 2004 10:53:50 -0400 Received: from f1n11.sp2net.wfu.edu (f1n11.sp2net.wfu.edu [152.17.8.21]) by f1n1.spenet.wfu.edu (8.11.6p2/8.11.6) with SMTP id i8NErnJ71548; Thu, 23 Sep 2004 10:53:49 -0400 X-Authentication-Warning: f1n1.spenet.wfu.edu: f1n11.sp2net.wfu.edu [152.17.8.21] didn't use HELO protocol Message-ID: <4152E37D.4080803@wfu.edu> Date: Thu, 23 Sep 2004 10:53:49 -0400 From: John Borwick Organization: Wake Forest University User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040901) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Borwick References: <4151D053.2000302@wfu.edu> In-Reply-To: <4151D053.2000302@wfu.edu> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBD39627F583237CB0E30DCF4" Cc: help-cfengine@gnu.org Subject: Re: How does cfagent determine the hostname? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 15:00:33 -0000 Status: O Content-Length: 2168 Lines: 69 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBD39627F583237CB0E30DCF4 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit John Borwick wrote: > Hello. > > I'm trying to automate a machine installation with kickstart and > cfengine. In my %post section, the last two lines are > > hostname `hostname --fqdn` > cfagent -Kvq > > This approach seems to work on RHAS2.1, but not RHEL3. > > How should I set the hostname for cfagent? Thanks, everyone, for all your help. I think the ". /etc/sysconfig/network" is especially neat. I ended up waiting to run cfengine until reboot, as follows (from kickstart file): %post # [...] # FIRST BOOT mv /etc/rc.d/rc.local /etc/rc.d/rc.local.sav cat <<"RC_LOCAL" > /etc/rc.d/rc.local #!/bin/sh /usr/sbin/up2date --solvedeps=wfu-cfengine mv /etc/rc.d/rc.local.sav /etc/rc.d/rc.local RC_LOCAL chmod 755 /etc/rc.d/rc.local On first boot, /etc/rc.d/rc.local is evaluated as above. The RPM "wfu-cfengine" automatically runs "cfagent -Kvq" in *its* post section. (We have a RHN satellite server so we can upload our own RPMs to up2date, but a yum repository would work equally well.) rc.local then deletes itself by moving the original. I did this because our cfengine setup runs some iptables stuff, and it's more convenient to run in the actual OS (with all modules, etc. set) than in the bare-bones kernel used by kickstart. Yours, John -- John Borwick System Administrator Wake Forest University | web http://www.wfu.edu/~borwicjh Winston-Salem, NC, USA | GPG key ID 0x797326D5 --------------enigBD39627F583237CB0E30DCF4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBUuN9/81sF3lzJtURAsAnAKC5BqGfe84uOHHff3+Zv+NlZgSPGQCgpmEW 9hO6YTuuzAZe9iJCupxf3LQ= =z2ol -----END PGP SIGNATURE----- --------------enigBD39627F583237CB0E30DCF4-- From MAILER-DAEMON Thu Sep 23 11:06:04 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAVAa-0002cY-1x for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 11:06:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAVAY-0002cT-PV for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:06:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAVAW-0002cF-Gg for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:06:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAVAW-0002cC-EA for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:06:00 -0400 Received: from [24.213.60.51] (helo=sibelius.chartermi.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CAV4B-00037y-LK for help-cfengine@gnu.org; Thu, 23 Sep 2004 10:59:27 -0400 Received: from sibelius.chartermi.net (sibelius.chartermi.net [24.213.60.51]) by sibelius.chartermi.net (8.12.8/8.12.8) with ESMTP id i8NExPvx005316 for ; Thu, 23 Sep 2004 10:59:25 -0400 Date: Thu, 23 Sep 2004 10:59:25 -0400 (EDT) From: "Brian E. Seppanen" X-X-Sender: seppanen@sibelius.chartermi.net To: help-cfengine@gnu.org Message-ID: Organization: Charter Communications MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Compile Error 2.1.10, solaris 9 X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 15:06:03 -0000 Status: O Content-Length: 1146 Lines: 38 gcc version 3.3.2 automake (GNU automake) 1.7.2 autoconf (GNU Autoconf) 2.57 flex VERSION: 2.5.4,REV=2002.03.27.20.41 bison 1.875 I get the following error Making all in pub make[1]: Entering directory `/usr/share/src/cfengine-2.1.10/pub' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/share/src/cfengine-2.1.10/pub' Making all in src make[1]: Entering directory `/usr/share/src/cfengine-2.1.10/src' make all-am make[2]: Entering directory `/usr/share/src/cfengine-2.1.10/src' /bin/bash ../ylwrap cfparse.y y.tab.c cfparse.c y.tab.h cfparse.h y.output cfparse.output -- bison -y -d got /usr/src/cfengine-2\.1\.10/src/ ../ylwrap: line 82: 10643 Broken Pipe $prog ${1+"$@"} "$input" make[2]: *** [cfparse.c] Error 1 make[2]: Leaving directory `/usr/share/src/cfengine-2.1.10/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/share/src/cfengine-2.1.10/src' make: *** [all-recursive] Error 1 ./configure --with-berkeleydb=/usr/local/BerkeleyDB.3.3 --with-openssl=/usr/local/ssl Any ideas on how to resolve the issue? Thanks, Brian Seppanen seppy@chartermi.net 906-475-0107 ext 1040 From MAILER-DAEMON Thu Sep 23 11:35:07 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAVch-0000nh-3W for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 11:35:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAVce-0000nV-MT for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:35:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAVcc-0000mi-Sm for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:35:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAVcc-0000mO-Po for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:35:02 -0400 Received: from [146.145.176.225] (helo=smtp.ip-solutions.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAVWM-0007al-FH for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:28:34 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.ip-solutions.net (Postfix) with ESMTP id BE98F2C8003; Thu, 23 Sep 2004 11:28:33 -0400 (EDT) Received: from smtp.ip-solutions.net ([127.0.0.1]) by localhost (smtp.ip-solutions.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09679-05; Thu, 23 Sep 2004 11:28:33 -0400 (EDT) Received: from [129.25.22.129] (n1-22-129.dhcp.drexel.edu [129.25.22.129]) by smtp.ip-solutions.net (Postfix) with ESMTP id 3A6132C8002; Thu, 23 Sep 2004 11:28:33 -0400 (EDT) Message-ID: <4152EB9F.8070209@ip-solutions.net> Date: Thu, 23 Sep 2004 11:28:31 -0400 From: Harry Hoffman User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Brian E. Seppanen" References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at ip-solutions.net Cc: help-cfengine@gnu.org Subject: Re: Compile Error 2.1.10, solaris 9 X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 15:35:05 -0000 Status: O Content-Length: 1644 Lines: 60 Brian, Don't know if this really helps but I've created a Solaris 9 package for cfengine-2.1.10 that you're welcome to. http://www.ip-solutions.net/jass/Packages/5.9/cfengine-2.1.10.gz The update.conf is specific to my site so you'll need to change it. Cheers, Harry Brian E. Seppanen wrote: >gcc version 3.3.2 >automake (GNU automake) 1.7.2 >autoconf (GNU Autoconf) 2.57 >flex VERSION: 2.5.4,REV=2002.03.27.20.41 >bison 1.875 > >I get the following error > >Making all in pub >make[1]: Entering directory `/usr/share/src/cfengine-2.1.10/pub' >make[1]: Nothing to be done for `all'. >make[1]: Leaving directory `/usr/share/src/cfengine-2.1.10/pub' >Making all in src >make[1]: Entering directory `/usr/share/src/cfengine-2.1.10/src' >make all-am >make[2]: Entering directory `/usr/share/src/cfengine-2.1.10/src' >/bin/bash ../ylwrap cfparse.y y.tab.c cfparse.c y.tab.h cfparse.h y.output >cfparse.output -- bison -y -d >got /usr/src/cfengine-2\.1\.10/src/ >../ylwrap: line 82: 10643 Broken Pipe $prog ${1+"$@"} "$input" >make[2]: *** [cfparse.c] Error 1 >make[2]: Leaving directory `/usr/share/src/cfengine-2.1.10/src' >make[1]: *** [all] Error 2 >make[1]: Leaving directory `/usr/share/src/cfengine-2.1.10/src' >make: *** [all-recursive] Error 1 > >./configure --with-berkeleydb=/usr/local/BerkeleyDB.3.3 >--with-openssl=/usr/local/ssl > >Any ideas on how to resolve the issue? > >Thanks, > >Brian Seppanen >seppy@chartermi.net >906-475-0107 ext 1040 > > >_______________________________________________ >Help-cfengine mailing list >Help-cfengine@gnu.org >http://lists.gnu.org/mailman/listinfo/help-cfengine > > From MAILER-DAEMON Thu Sep 23 11:36:39 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAVeB-0001Fk-8Y for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 11:36:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAVe9-0001FT-96 for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:36:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAVe8-0001Ez-At for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:36:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAVe8-0001Ew-8q for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:36:36 -0400 Received: from [24.213.60.51] (helo=sibelius.chartermi.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CAVXf-0007ra-60 for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:29:55 -0400 Received: from sibelius.chartermi.net (sibelius.chartermi.net [24.213.60.51]) by sibelius.chartermi.net (8.12.8/8.12.8) with ESMTP id i8NFTqvx005685; Thu, 23 Sep 2004 11:29:52 -0400 Date: Thu, 23 Sep 2004 11:29:52 -0400 (EDT) From: "Brian E. Seppanen" X-X-Sender: seppanen@sibelius.chartermi.net To: "Brian E. Seppanen" In-Reply-To: Message-ID: References: Organization: Charter Communications MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: help-cfengine@gnu.org Subject: Re: Compile Error 2.1.10, solaris 9 X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 15:36:37 -0000 Status: O Content-Length: 1506 Lines: 47 On Thu, 23 Sep 2004, Brian E. Seppanen wrote: > gcc version 3.3.2 > automake (GNU automake) 1.7.2 > autoconf (GNU Autoconf) 2.57 > flex VERSION: 2.5.4,REV=2002.03.27.20.41 > bison 1.875 > > I get the following error > > Making all in pub > make[1]: Entering directory `/usr/share/src/cfengine-2.1.10/pub' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory `/usr/share/src/cfengine-2.1.10/pub' > Making all in src > make[1]: Entering directory `/usr/share/src/cfengine-2.1.10/src' > make all-am > make[2]: Entering directory `/usr/share/src/cfengine-2.1.10/src' > /bin/bash ../ylwrap cfparse.y y.tab.c cfparse.c y.tab.h cfparse.h y.output > cfparse.output -- bison -y -d > got /usr/src/cfengine-2\.1\.10/src/ > ../ylwrap: line 82: 10643 Broken Pipe $prog ${1+"$@"} "$input" > make[2]: *** [cfparse.c] Error 1 > make[2]: Leaving directory `/usr/share/src/cfengine-2.1.10/src' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/usr/share/src/cfengine-2.1.10/src' > make: *** [all-recursive] Error 1 > > ./configure --with-berkeleydb=/usr/local/BerkeleyDB.3.3 > --with-openssl=/usr/local/ssl > > Any ideas on how to resolve the issue? > To answer my own question in hopes someone else can therby benefit via historical record: I was able to resolve this problem in my environment by using gnu yacc. Previously it was attempting to use /usr/ccs/bin/yacc and not /usr/local/bin/yacc Thanks, Brian Seppanen seppy@chartermi.net 906-475-0107 ext 1040 From MAILER-DAEMON Thu Sep 23 11:53:30 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAVuU-0005DU-F2 for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 11:53:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAVuS-0005DI-Iv for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:53:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAVuR-0005Ct-JL for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:53:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAVuR-0005Cq-HB for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:53:27 -0400 Received: from [198.70.184.137] (helo=smtp.poss.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAVoA-0002DW-He for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:46:58 -0400 Received: from [198.70.184.239] (dhcp-239.poss.com [198.70.184.239]) by endeavor.poss.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTPA id <0I4I002JP3U98F@endeavor.poss.com> for help-cfengine@gnu.org; Thu, 23 Sep 2004 11:46:57 -0400 (EDT) Date: Thu, 23 Sep 2004 11:46:57 -0400 From: Christian Pearce To: help-cfengine@gnu.org Message-id: <1095954416.14181.8367.camel@dhcp-239.poss.com> Organization: Perfect Order, Inc. MIME-version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Content-type: text/plain Content-transfer-encoding: 7BIT Subject: Uploaded cfengine.vim to vim.org X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 15:53:28 -0000 Status: O Content-Length: 413 Lines: 16 I contacted the author of the original syntax highlighting and have not heard back. So I uploaded my version. It is slightly different. It doesn't try to highlight everything. It is more lightweight in the sense it doesn't try to highlight all of cfengine's keywords. http://www.vim.org/scripts/script.php?script_id=1088 Enjoy... -- Christian Pearce http://www.commnav.com http://www.perfectorder.com From MAILER-DAEMON Thu Sep 23 16:54:07 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAabP-0002l4-84 for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 16:54:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAabN-0002kt-J5 for help-cfengine@gnu.org; Thu, 23 Sep 2004 16:54:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAabL-0002kh-Vw for Help-cfengine@gnu.org; Thu, 23 Sep 2004 16:54:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAabL-0002ke-Ti for Help-cfengine@gnu.org; Thu, 23 Sep 2004 16:54:03 -0400 Received: from [130.164.141.23] (helo=mail.natinst.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAaV7-0000xY-4K for Help-cfengine@gnu.org; Thu, 23 Sep 2004 16:47:37 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.natinst.com (Postfix) with ESMTP id 0F77F47489 for ; Thu, 23 Sep 2004 15:47:26 -0500 (CDT) Received: from draconix.natinst.com (draconix.natinst.com [10.0.7.222]) by mail.natinst.com (Postfix) with ESMTP id A3DAD47459 for ; Thu, 23 Sep 2004 15:46:58 -0500 (CDT) Received: by draconix.natinst.com (Postfix, from userid 1631) id 5B92123962; Thu, 23 Sep 2004 15:46:58 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by draconix.natinst.com (Postfix) with ESMTP id 239D1234B9 for ; Thu, 23 Sep 2004 15:46:57 -0500 (CDT) Date: Thu, 23 Sep 2004 15:46:55 -0500 (CDT) From: "David E. Nelson" X-X-Sender: dnelson@draconix.natinst.com To: Help-cfengine@gnu.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS snapshot-20020300 Cc: Subject: "Repository" variable not expanding X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "David E. Nelson" List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 20:54:05 -0000 Status: O Content-Length: 845 Lines: 40 Hi All, The following is not expanding in cfengine-2.1.10 on Solaris. The below of course is not my actual cfagent.conf but I copy-n-pasted the relevant lines. control: any:: actionsequence = ( tidy directories disable ) Repository = ( /var/spool/cfengine/backups ) directories: any:: ${Repository} o=root g=0 m=0700 Instead, it creates /${Repository} - literally. I've also tried using ()'s w/o any luck. Output snippet from verbose: MakePath(/tmp) MakePath(${repository}) cfengine:foo: Group of /${Repository} was 1, setting to 0 cfengine:foo: Directory /${Repository} had permission 755, changed it to 700 MakePath(/var/tmp) Thanks, /\/elson -- ~~ ** ~~ If you didn't learn anything when you broke it the 1st ~~ ** ~~ time, then break it again. From MAILER-DAEMON Thu Sep 23 18:10:06 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAbmv-0003V0-Td for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 18:10:06 -0400 Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news2.telebyte.nl!humbolt.nl.linux.org!news.nl.linux.org!news.zanker.org!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Volker Wiegand Newsgroups: gnu.cfengine.help Date: Fri, 24 Sep 2004 00:00:57 +0200 Organization: T-Online Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1095976854 03 25344 GxfiXvxrg-aOew3 040923 22:00:54 X-Complaints-To: usenet-abuse@t-online.de X-ID: bVS3c+ZCoeop1Awk75Lm+fW60wY77+MhF9G9v9DjigTgzB0S0Jbr0- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.2) Gecko/20040803 X-Accept-Language: de, en In-Reply-To: Xref: shelby.stanford.edu gnu.cfengine.help:6237 To: help-cfengine@gnu.org Subject: Re: How to use regex in editfiles? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 22:10:03 -0000 Status: O Content-Length: 580 Lines: 14 Mark.Burgess@iu.hio.no wrote: > [...] Unfortunately, once done it is > hard to change to a better idea without breaking something for someone. > One day it would be nice to redesign the editfiles functions. > [...] > Some discusssion was given to using the perl regex library a while ago, which > is tempting, but then everything is broken again for every cfengine user > around the world :( > A possible way out of this dilemma might be a "second set" of editing functions. When I was still programming MS Windows, I sometimes used functions like CreateWindowExEx :-) Volker From MAILER-DAEMON Thu Sep 23 18:45:11 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAcKp-0004l5-Ah for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 18:45:10 -0400 Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!feed.news.tiscali.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Volker Wiegand Newsgroups: gnu.cfengine.help Date: Fri, 24 Sep 2004 00:35:20 +0200 Organization: T-Online Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1095978917 03 25344 FpgiXvxrh-gHPff 040923 22:35:17 X-Complaints-To: usenet-abuse@t-online.de X-ID: EYecFwZvYeOijgDnoux9NwxUJhonOyc2zYavzRL7aVcAZA1ZycPXws User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.2) Gecko/20040803 X-Accept-Language: de, en In-Reply-To: Xref: shelby.stanford.edu gnu.cfengine.help:6238 To: help-cfengine@gnu.org Subject: Re: Tutorials etc at LISA X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 22:45:05 -0000 Status: O Content-Length: 2176 Lines: 52 Hi, unfortunately I will not be able to attend the conference, but nevertheless I would like to raise a "strategic" question. This is in connection with a question that has been posted to this list recently but went unanswered: "What about SuSE?" Problem is that SuSE has always been special, with YaST(1|2), with their very own use of /etc/sysconfig, with the differential SysV init logic and so on. The authoritative source of configuration often has not been the /etc file but some meta file plus SuSEconfig. Thus, in my former company (SuSE) I consulted only on using cfengine for limited, "non-intrusive" use. In my current occupation (Deutsche Bahn, German Railway) I haven't even been able to introduce cfengine at all (though I'd love to). So, here is my question: has anyone ever been thinking of using WBEM as the execution layer between cfengine and heterogenuous systems (SuSE and Novell are moving to WBEM with SLES9, IBM is using CIM in Tivoli or with the SBLIM project, and even Microsoft has an implementation called WMI)? I'd be willing (and probably be able) to contribute giving it a try, provided it does not conflict with the direction cfengine is meant to go. Any interest in discussing that any further??? Volker Mark.Burgess@iu.hio.no wrote: > I shall be giving introductory and "advanced" tutorials > on cfengine at LISA'04 for anyone who is interested. > The advanced tutorial will go into how to use the newer > features, structural stuff (methods) and organize > files etc. (http://www.usenix.org/lisa04) > > Feel free to send me requests for special topics you would > like covered. There is limited time (half-day tutorials) > but I shall consider all requests. > > Is there also a need for a developer's BoF? > To discuss future development/other issues? > Let me know who is interested, to see how big an > event we'll need. > > M > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Work: +47 22453272 Email: Mark.Burgess@iu.hio.no > Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > From MAILER-DAEMON Thu Sep 23 20:32:09 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAe0P-00018h-Mr for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 20:32:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAe0N-00017s-Ss for help-cfengine@gnu.org; Thu, 23 Sep 2004 20:32:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAe0L-00016w-AB for help-cfengine@gnu.org; Thu, 23 Sep 2004 20:32:07 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAe0L-00016m-5O for help-cfengine@gnu.org; Thu, 23 Sep 2004 20:32:05 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1CAduE-0001tr-3J for help-cfengine@gnu.org; Thu, 23 Sep 2004 20:25:46 -0400 Received: (qmail 27661 invoked from network); 24 Sep 2004 00:25:29 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 24 Sep 2004 00:25:29 -0000 Date: Fri, 24 Sep 2004 10:25:36 +1000 (EST) From: Timothy Sven Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: Volker Wiegand In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cfengine help list Subject: Re: Tutorials etc at LISA X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 00:32:08 -0000 Status: O Content-Length: 2815 Lines: 65 On Fri, 24 Sep 2004, Volker Wiegand wrote: > Hi, > > unfortunately I will not be able to attend the conference, but nevertheless I > would like to raise a "strategic" question. > > This is in connection with a question that has been posted to this list > recently but went unanswered: "What about SuSE?" Problem is that SuSE has > always been special, with YaST(1|2), with their very own use of > /etc/sysconfig, with the differential SysV init logic and so on. The > authoritative source of configuration often has not been the /etc file but > some meta file plus SuSEconfig. Thus, in my former company (SuSE) I consulted > only on using cfengine for limited, "non-intrusive" use. In my current > occupation (Deutsche Bahn, German Railway) I haven't even been able to > introduce cfengine at all (though I'd love to). > > So, here is my question: has anyone ever been thinking of using WBEM as the > execution layer between cfengine and heterogenuous systems (SuSE and Novell > are moving to WBEM with SLES9, IBM is using CIM in Tivoli or with the SBLIM > project, and even Microsoft has an implementation called WMI)? > > I'd be willing (and probably be able) to contribute giving it a try, provided > it does not conflict with the direction cfengine is meant to go. Any interest > in discussing that any further??? From what I can see of SBLIM (which appears to be the Linux implementation of WBEM) which before your e-mail I'd heard of, but didn't know what it was), it seems to be attempting to accomplish the same thing as most of cfengine, but in a different way. Cfengine, in my mind, is in two parts: classes (which are the high-level decision making), and everything else. From what I can see (and obviously I'd be happy for people to correct me), SBLIM attempts to perform the same tasks as the "everything else", except at a slightly more abstract level. As an example, SBLIM has modules for specifically managing each part of the system. cfengine makes do with generic sections like "copy" and "editfiles". To get the equivalent of SBLIM (but entirely separately), we'd need to have a common set of configuration files for each "module", eg. cf.syslog, and then use those from cfengine. To summarise what I've said, cfengine can to SBLIM style things, but is much more generic. Now, since I've only commented on SBLIM here, I've presumably misunderstood the whole WBEM thing :), so I personally would be quite happy to see Volker refute me, and the discussion which would ensue :). -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Thu Sep 23 23:21:36 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAgeO-0001Nl-BY for mharc-help-cfengine@gnu.org; Thu, 23 Sep 2004 23:21:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAgeN-0001Mp-4D for help-cfengine@gnu.org; Thu, 23 Sep 2004 23:21:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAgeM-0001MT-En for help-cfengine@gnu.org; Thu, 23 Sep 2004 23:21:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAgeM-0001MD-BZ for help-cfengine@gnu.org; Thu, 23 Sep 2004 23:21:34 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1CAgXx-00051T-6z for help-cfengine@gnu.org; Thu, 23 Sep 2004 23:14:57 -0400 Received: (qmail 750 invoked from network); 24 Sep 2004 03:14:41 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 24 Sep 2004 03:14:41 -0000 Date: Fri, 24 Sep 2004 13:14:55 +1000 (EST) From: Tim Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: cfengine help list Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: cfengine config files location X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 03:21:35 -0000 Status: O Content-Length: 2740 Lines: 79 Hi all. I'm writing a package which when installed on a cfengine server will want to put in a cfengine configuration file in the cfengine master repository. What I'm wondering is, what folder is this? I'm using a cfengine 2.1.0 RPM from the fedora.us repo. There's no obvious location for this sort of thing in that package. I'm assuming that this is because cfengine is only software, and not the configuration files. Can I suggest that we have a cfengine-base-config package? Yes, I'm already aware of the examples, and these are good, but I'm more talking about an empty framework for configuration. It'd also be nice to have an extension that indicates what kind of files they are, instead of a prefix. I'd suggest .cfa (for .cfagent, which AFAIK is the interpreter). Here's what I'd suggest as the framework: -------------------------------------------------------------------------- /etc/cfengine/master: cfengine configuration files to be rolled out /etc/cfengine/updater: update.conf and any other basic files which need to be rolled out with it. /etc/cfengine/cfservd.conf: Same as current Then, inside master, you have the following: cfagent.conf: same purpose as the current, but with these contents: --------------------- import: classes.cfa fileinc.cfa --------------------- classes.cfa: in which you define all your grouping-type classes, such as server purposes, locations, software, and whatever else you want to group by. fileinc.cfa: Lists all the other files, and only includes the relevant ones. I'd suggest the following as a start: --------------------- #import: # all:: # conf.d/main.cfa # WebServer:: # conf.d/httpd.cfa # conf.d/php.cfa # MailServer:: # conf.d/sendmail.cfa # conf.d/cyrus-imap.cfa --------------------- Please note that all the lines are commented. This is so that it doesn't do anything until people tell it to. conf.d: This directory would contain all the scripts referred to in fileinc.cfa. This would enable programs which wanted to define some cfengine configuration to just dump it in here. We could also make it contain some empties of files that people might want. -------------------------------------------------------------------------- Mark, does this fit the cfengine philosophy well enough? Would you distribute this from the cfengine website if it existed (either as part of the cfengine package, or as a separate package)? :) -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Fri Sep 24 11:03:51 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CArbz-0006LG-OW for mharc-help-cfengine@gnu.org; Fri, 24 Sep 2004 11:03:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CArbr-0006KI-VV for help-cfengine@gnu.org; Fri, 24 Sep 2004 11:03:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CArbq-0006J5-7B for help-cfengine@gnu.org; Fri, 24 Sep 2004 11:03:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CArbq-0006Iq-2a for help-cfengine@gnu.org; Fri, 24 Sep 2004 11:03:42 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CArVh-0004Ez-BZ for help-cfengine@gnu.org; Fri, 24 Sep 2004 10:57:21 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8OEv90T023547; Fri, 24 Sep 2004 09:57:09 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: Tim Nelson , cfengine help list Date: Fri, 24 Sep 2004 09:57:08 -0500 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409240957.08515.chip@trdlnk.com> Cc: Subject: Re: cfengine config files location X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 15:03:44 -0000 Status: O Content-Length: 928 Lines: 31 On Thursday 23 September 2004 22:14, Tim Nelson wrote: > Can I suggest that we have a cfengine-base-config package? Yes, > I'm already aware of the examples, and these are good, but I'm more > talking about an empty framework for configuration. > It'd also be nice to > have an extension that indicates what kind of files they are, instead of a > prefix. I'd suggest .cfa (for .cfagent, which AFAIK is the interpreter). I think most folks use a 'cf.' prefix for imported config files and a '.conf' for configs that the agent itself knows to look for. A cfengine suffix would be nice from a syntax-highlighting standpoint too. I would assert that it is important to make such an animal optional. I'd also recommend a different suffix for the cfservd.conf file, if we are going to do this (as cfa seems to imply cfAgent). -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Fri Sep 24 12:24:28 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAsrx-0001s2-80 for mharc-help-cfengine@gnu.org; Fri, 24 Sep 2004 12:24:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAsru-0001qp-VW for help-cfengine@gnu.org; Fri, 24 Sep 2004 12:24:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAsrt-0001qV-Al for Help-cfengine@gnu.org; Fri, 24 Sep 2004 12:24:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAsrt-0001qS-7k for Help-cfengine@gnu.org; Fri, 24 Sep 2004 12:24:21 -0400 Received: from [130.164.141.23] (helo=mail.natinst.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAslY-0001FK-G1 for Help-cfengine@gnu.org; Fri, 24 Sep 2004 12:17:48 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.natinst.com (Postfix) with ESMTP id 070514738B for ; Fri, 24 Sep 2004 11:17:47 -0500 (CDT) Received: from draconix.natinst.com (draconix.natinst.com [10.0.7.222]) by mail.natinst.com (Postfix) with ESMTP id 31A084738F for ; Fri, 24 Sep 2004 11:17:46 -0500 (CDT) Received: by draconix.natinst.com (Postfix, from userid 1631) id F024B23497; Fri, 24 Sep 2004 11:17:45 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by draconix.natinst.com (Postfix) with ESMTP id E5612205AB for ; Fri, 24 Sep 2004 11:17:45 -0500 (CDT) Date: Fri, 24 Sep 2004 11:17:45 -0500 (CDT) From: "David E. Nelson" X-X-Sender: dnelson@draconix.natinst.com To: Help-cfengine@gnu.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS snapshot-20020300 Cc: Subject: Serialization X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "David E. Nelson" List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 16:24:23 -0000 Status: O Content-Length: 1549 Lines: 66 If I have an actiontionsequence that has 'copy.stage', am I guaranteed that the order of execution would be in the order given below? Or should I be iterating over lists instead? Thanks, /\/elson copy: all.stage:: /var/cfengine/dist/all dest=/var/cfengine/stage recurse=inf server=$(DistServer) action=silent type=checksum backup=timestamp solaris.stage:: /var/cfengine/dist/solaris dest=/var/cfengine/stage recurse=inf server=$(DistServer) action=silent type=checksum backup=timestamp sunos_5_6.stage:: /var/cfengine/dist/sunos_5_6 dest=/var/cfengine/stage recurse=inf server=$(DistServer) action=silent type=checksum backup=timestamp sunos_5_8.stage:: /var/cfengine/dist/sunos_5_8 dest=/var/cfengine/stage recurse=inf server=$(DistServer) action=silent type=checksum backup=timestamp sunos_5_9.stage:: /var/cfengine/dist/sunos_5_9 dest=/var/cfengine/stage recurse=inf server=$(DistServer) action=silent type=checksum backup=timestamp -- ~~ ** ~~ If you didn't learn anything when you broke it the 1st ~~ ** ~~ time, then break it again. From MAILER-DAEMON Fri Sep 24 12:27:24 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAsup-0002k4-Vc for mharc-help-cfengine@gnu.org; Fri, 24 Sep 2004 12:27:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAsuo-0002jo-U1 for help-cfengine@gnu.org; Fri, 24 Sep 2004 12:27:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAsul-0002ip-7u for Help-cfengine@gnu.org; Fri, 24 Sep 2004 12:27:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAsul-0002im-1h for Help-cfengine@gnu.org; Fri, 24 Sep 2004 12:27:19 -0400 Received: from [152.157.64.30] (helo=nsd.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAso8-0001i4-7y for Help-cfengine@gnu.org; Fri, 24 Sep 2004 12:20:28 -0400 Received: from [10.2.9.13] (account ckacoroski HELO [10.2.9.13]) by nsd.org (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5497941 for Help-cfengine@gnu.org; Fri, 24 Sep 2004 09:20:26 -0700 Message-ID: <41544949.3040703@nsd.org> Date: Fri, 24 Sep 2004 09:20:25 -0700 From: Chris Kacoroski Organization: Northshore School District User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Help-cfengine@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Keep getting multiple cfagent and cfexecd processes on about 10% of my clients X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ckacoroski@nsd.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 16:27:23 -0000 Status: O Content-Length: 957 Lines: 29 Hi, Anyone know what could be causing this? My current fix is to log into the client and kill the cfexecd and cfagent processes. It seems to run fine after that. ski [-0-ski@ski: ski]$ ps ax | grep cf 344 ?? Ss 0:00.08 /usr/local/sbin/cfservd 351 ?? Ss 0:44.55 /usr/sbin/ntpd -c /etc/ntp.cf -p /var/run/ntpd.pid 356 ?? Ss 1:49.22 /usr/local/sbin/cfenvd 868 ?? S 0:00.01 /usr/local/sbin/cfexecd -F 900 ?? S 0:00.05 /var/cfengine/bin/cfagent 995 ?? S 0:00.01 /usr/local/sbin/cfexecd -F 1026 ?? S 0:00.06 /var/cfengine/bin/cfagent 1460 ?? S 0:00.01 /usr/local/sbin/cfexecd -F 1529 ?? S 0:00.05 /var/cfengine/bin/cfagent 523 p4 S+ 0:03.61 ssh root@cfengine 1564 std R+ 0:00.00 grep cf -- "When we try to pick out anything by itself, we find it connected to the entire universe" John Muir Chris "Ski" Kacoroski, ckacoroski@nsd.org, 425-489-6263 From MAILER-DAEMON Fri Sep 24 17:52:30 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAxzS-00051A-7b for mharc-help-cfengine@gnu.org; Fri, 24 Sep 2004 17:52:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAxzP-000503-PS for help-cfengine@gnu.org; Fri, 24 Sep 2004 17:52:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAxzN-0004zg-Ta for help-cfengine@gnu.org; Fri, 24 Sep 2004 17:52:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAxzN-0004zV-Pb for help-cfengine@gnu.org; Fri, 24 Sep 2004 17:52:25 -0400 Received: from [152.157.64.30] (helo=nsd.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAxsu-0000nx-JV for help-cfengine@gnu.org; Fri, 24 Sep 2004 17:45:44 -0400 Received: from [10.2.9.13] (account ckacoroski HELO [10.2.9.13]) by nsd.org (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5505382 for help-cfengine@gnu.org; Fri, 24 Sep 2004 14:45:43 -0700 Message-ID: <41549587.6010302@nsd.org> Date: Fri, 24 Sep 2004 14:45:43 -0700 From: Chris Kacoroski Organization: Northshore School District User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org References: <41544949.3040703@nsd.org> In-Reply-To: <41544949.3040703@nsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Keep getting multiple cfagent and cfexecd processes on about 10% of my clients X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ckacoroski@nsd.org List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 21:52:28 -0000 Status: O Content-Length: 431 Lines: 16 Chris Kacoroski wrote: > Hi, > > Anyone know what could be causing this? My current fix is to log into > the client and kill the cfexecd and cfagent processes. It seems to run > fine after that. > > ski I think I figured this one out - will know by Monday for sure. I had updated the Splaytime to 40 minutes, but still had cron triggering cfexecd every 30 minutes. I think this caused multiple cfagents to start. ski From MAILER-DAEMON Fri Sep 24 18:28:26 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAyYD-0006h8-Vr for mharc-help-cfengine@gnu.org; Fri, 24 Sep 2004 18:28:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAyYC-0006gc-8S for help-cfengine@gnu.org; Fri, 24 Sep 2004 18:28:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAyYA-0006g7-OD for help-cfengine@gnu.org; Fri, 24 Sep 2004 18:28:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAyYA-0006g4-KZ for help-cfengine@gnu.org; Fri, 24 Sep 2004 18:28:22 -0400 Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CAyRo-0006zh-A6 for help-cfengine@gnu.org; Fri, 24 Sep 2004 18:21:48 -0400 Received: (qmail 15110 invoked by uid 65534); 24 Sep 2004 22:21:46 -0000 Received: from unknown (EHLO dragonfly) (204.1.213.181) by mail.gmx.net (mp025) with SMTP; 25 Sep 2004 00:21:46 +0200 X-Authenticated: #14939166 From: "Mark" To: "'cfengine community'" Date: Fri, 24 Sep 2004 15:21:44 -0700 Message-ID: <077a01c4a284$e0f3e6c0$b5d501cc@dragonfly> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 In-Reply-To: <2004827172856.839643@CAPC225> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Subject: Copy action and file permissions X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 22:28:24 -0000 Status: O Content-Length: 499 Lines: 20 I get the following error/warning when running cfagent: cfengine:data2: /usr/local/bin/update_devel_rights.pl has permission 755 cfengine:data2: [should be 750] Should cfagent not update the permissions automatically instead of complaining about it? I am running it as root, so it should be able to change the permissions = if it wanted to. The file did not get updated on the master server, so it does not get = copied over again, but shouldn't it check the permissions anyway? Thanks, MARK From MAILER-DAEMON Sat Sep 25 01:33:12 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CB5BI-0007tI-Ho for mharc-help-cfengine@gnu.org; Sat, 25 Sep 2004 01:33:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CB5BH-0007sw-3W for help-cfengine@gnu.org; Sat, 25 Sep 2004 01:33:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CB5BF-0007sU-Ep for help-cfengine@gnu.org; Sat, 25 Sep 2004 01:33:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CB5BF-0007sK-D3 for help-cfengine@gnu.org; Sat, 25 Sep 2004 01:33:09 -0400 Received: from [204.245.156.2] (helo=core.zot.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CB54v-0007JU-Lr for help-cfengine@gnu.org; Sat, 25 Sep 2004 01:26:37 -0400 Received: from [10.17.23.107] (pcp02505262pcs.anapol01.md.comcast.net [68.84.132.48]) (authenticated bits=0) by core.zot.com (8.12.11/8.12.11) with ESMTP id i8P4fVrH028299 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 25 Sep 2004 00:41:34 -0400 From: Chris Edillon To: Mark In-Reply-To: <077a01c4a284$e0f3e6c0$b5d501cc@dragonfly> References: <077a01c4a284$e0f3e6c0$b5d501cc@dragonfly> Content-Type: text/plain Message-Id: <1096075658.4202.4.camel@linux.site> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 24 Sep 2004 21:27:38 -0400 Content-Transfer-Encoding: 7bit Cc: 'cfengine community' Subject: Re: Copy action and file permissions X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Sep 2004 05:33:11 -0000 Status: O Content-Length: 648 Lines: 19 On Fri, 2004-09-24 at 18:21, Mark wrote: > I get the following error/warning when running cfagent: > cfengine:data2: /usr/local/bin/update_devel_rights.pl has permission 755 > cfengine:data2: [should be 750] > > Should cfagent not update the permissions automatically instead of > complaining about it? > I am running it as root, so it should be able to change the permissions if > it wanted to. > it can indeed, but the default action for files: directives is to warn only (warnall). you'll need to set action=fixall for it to make the change. check the reference guide for more details, to include other actions that cfagent could take. From MAILER-DAEMON Sun Sep 26 16:45:44 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CBftv-0000ec-S6 for mharc-help-cfengine@gnu.org; Sun, 26 Sep 2004 16:45:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CBftu-0000eK-0e for help-cfengine@gnu.org; Sun, 26 Sep 2004 16:45:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CBftt-0000dA-3l for help-cfengine@gnu.org; Sun, 26 Sep 2004 16:45:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CBfts-0000cf-Tm for help-cfengine@gnu.org; Sun, 26 Sep 2004 16:45:40 -0400 Received: from [130.83.197.1] (helo=bounce.nt.e-technik.tu-darmstadt.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CBfnS-0002Pm-Cs for help-cfengine@gnu.org; Sun, 26 Sep 2004 16:39:02 -0400 Received: from heiligenberg.nt.e-technik.tu-darmstadt.de (heiligenberg.nt.e-technik.tu-darmstadt.de [130.83.186.54]) by bounce.nt.e-technik.tu-darmstadt.de (8.12.11/8.12.11) with ESMTP id i8QKcsTO009279; Sun, 26 Sep 2004 22:38:54 +0200 (CEST) Received: from heiligenberg.nt.e-technik.tu-darmstadt.de (localhost [127.0.0.1]) by heiligenberg.nt.e-technik.tu-darmstadt.de (8.12.11/8.12.11) with ESMTP id i8QKcr1Q000687; Sun, 26 Sep 2004 22:38:53 +0200 (CEST) Received: (from hf@localhost) by heiligenberg.nt.e-technik.tu-darmstadt.de (8.12.11/8.12.11) id i8QKcr3i028752; Sun, 26 Sep 2004 22:38:53 +0200 (CEST) Date: Sun, 26 Sep 2004 22:38:53 +0200 From: Hauke Fath To: Tim Nelson Message-Id: <20040926223853.6865cb8d.hf@spg.tu-darmstadt.de> In-Reply-To: References: Organization: Technische Universitaet Darmstadt X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386--netbsdelf) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: help-cfengine@gnu.org Subject: Re: cfengine config files location X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Sep 2004 20:45:42 -0000 Status: O Content-Length: 550 Lines: 17 On Fri, 24 Sep 2004 13:14:55 +1000 (EST) Tim Nelson wrote: > /etc/cfengine/master: cfengine configuration files to be rolled out Please consider sticking with the default of /var/cfengine. This is more appropriate than /etc, since the directory is written to quite frequently. hauke -- /~\ The ASCII Ribbon Campaign Hauke Fath \ / No HTML/RTF in email Institut f=FCr Nachrichtentechnik X No Word docs in email TU Darmstadt / \ Respect for open standards Ruf +49-6151-16-3281 From MAILER-DAEMON Sun Sep 26 19:30:51 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CBiTi-0003Kz-Lc for mharc-help-cfengine@gnu.org; Sun, 26 Sep 2004 19:30:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CBiTf-0003JM-6S for help-cfengine@gnu.org; Sun, 26 Sep 2004 19:30:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CBiTZ-0003Hp-Q1 for help-cfengine@gnu.org; Sun, 26 Sep 2004 19:30:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CBiTZ-0003Hm-F7 for help-cfengine@gnu.org; Sun, 26 Sep 2004 19:30:41 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1CBiN1-0007kW-Aw for help-cfengine@gnu.org; Sun, 26 Sep 2004 19:23:55 -0400 Received: (qmail 4502 invoked from network); 26 Sep 2004 23:23:38 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 26 Sep 2004 23:23:38 -0000 Date: Mon, 27 Sep 2004 09:23:46 +1000 (EST) From: Tim Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: Chip Seraphine In-Reply-To: <200409240957.08515.chip@trdlnk.com> Message-ID: References: <200409240957.08515.chip@trdlnk.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cfengine help list Subject: Re: cfengine config files location X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Sep 2004 23:30:48 -0000 Status: O Content-Length: 1430 Lines: 43 On Fri, 24 Sep 2004, Chip Seraphine wrote: > On Thursday 23 September 2004 22:14, Tim Nelson wrote: > >> Can I suggest that we have a cfengine-base-config package? Yes, >> I'm already aware of the examples, and these are good, but I'm more >> talking about an empty framework for configuration. > >> It'd also be nice to >> have an extension that indicates what kind of files they are, instead of a >> prefix. I'd suggest .cfa (for .cfagent, which AFAIK is the interpreter). > > I think most folks use a 'cf.' prefix for imported config files and a '.conf' > for configs that the agent itself knows to look for. > > A cfengine suffix would be nice from a syntax-highlighting standpoint too. I > would assert that it is important to make such an animal optional. Oh, I agree. This is just to regularise the "standard" installation, not to make anyone do anything different than what they're already doing. > I'd also recommend a different suffix for the cfservd.conf file, if we are > going to do this (as cfa seems to imply cfAgent). That would probably clear up some of the other confusion going around. Good idea. I'd say leave it as .conf. -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Sun Sep 26 20:12:49 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CBj8L-0003uK-1p for mharc-help-cfengine@gnu.org; Sun, 26 Sep 2004 20:12:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CBj8J-0003uE-3A for help-cfengine@gnu.org; Sun, 26 Sep 2004 20:12:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CBj8H-0003sF-CG for Help-cfengine@gnu.org; Sun, 26 Sep 2004 20:12:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CBj8H-0003sC-97 for Help-cfengine@gnu.org; Sun, 26 Sep 2004 20:12:45 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1CBj1k-0004ml-I1 for Help-cfengine@gnu.org; Sun, 26 Sep 2004 20:06:00 -0400 Received: (qmail 22890 invoked from network); 27 Sep 2004 00:05:44 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 27 Sep 2004 00:05:44 -0000 Date: Mon, 27 Sep 2004 10:05:52 +1000 (EST) From: Tim Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: "David E. Nelson" In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Help-cfengine@gnu.org Subject: Re: Serialization X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 00:12:47 -0000 Status: O Content-Length: 1962 Lines: 85 On Fri, 24 Sep 2004, David E. Nelson wrote: > > If I have an actiontionsequence that has 'copy.stage', am I guaranteed that > the order of execution would be in the order given below? Or should I be > iterating over lists instead? > > Thanks, > /\/elson No. But assuming just for a second that you wanted the order to be: - all - solaris - ...you could do actionsequence = ( copy.allstage copy.solarisstage copy.versionstage ) copy: all.allstage:: /var/cfengine/dist/all dest=/var/cfengine/stage recurse=inf server=$(DistServer) action=silent type=checksum backup=timestamp solaris.solarisstage:: /var/cfengine/dist/solaris dest=/var/cfengine/stage recurse=inf server=$(DistServer) action=silent type=checksum backup=timestamp sunos_5_6.versionstage:: /var/cfengine/dist/sunos_5_6 dest=/var/cfengine/stage recurse=inf server=$(DistServer) action=silent type=checksum backup=timestamp sunos_5_8.versionstage:: /var/cfengine/dist/sunos_5_8 dest=/var/cfengine/stage recurse=inf server=$(DistServer) action=silent type=checksum backup=timestamp sunos_5_9.versionstage:: /var/cfengine/dist/sunos_5_9 dest=/var/cfengine/stage recurse=inf server=$(DistServer) action=silent type=checksum backup=timestamp -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Sun Sep 26 20:25:09 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CBjKG-0007Z0-DW for mharc-help-cfengine@gnu.org; Sun, 26 Sep 2004 20:25:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CBjKD-0007WU-IM for help-cfengine@gnu.org; Sun, 26 Sep 2004 20:25:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CBjKC-0007WI-Ou for help-cfengine@gnu.org; Sun, 26 Sep 2004 20:25:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CBjKC-0007WF-ER for help-cfengine@gnu.org; Sun, 26 Sep 2004 20:25:04 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1CBjDo-0006Kq-J8 for help-cfengine@gnu.org; Sun, 26 Sep 2004 20:18:28 -0400 Received: (qmail 27845 invoked from network); 27 Sep 2004 00:18:10 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 27 Sep 2004 00:18:10 -0000 Date: Mon, 27 Sep 2004 10:18:07 +1000 (EST) From: Tim Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: Hauke Fath In-Reply-To: <20040926223853.6865cb8d.hf@spg.tu-darmstadt.de> Message-ID: References: <20040926223853.6865cb8d.hf@spg.tu-darmstadt.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: help-cfengine@gnu.org Subject: Re: cfengine config files location X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 00:25:06 -0000 Status: O Content-Length: 2642 Lines: 76 On Sun, 26 Sep 2004, Hauke Fath wrote: > On Fri, 24 Sep 2004 13:14:55 +1000 (EST) Tim Nelson wrote: > >> /etc/cfengine/master: cfengine configuration files to be rolled out > > Please consider sticking with the default of /var/cfengine. This is more > appropriate than /etc, since the directory is written to quite > frequently. Just to clear things up, I'm not suggesting that we change /var/cfengine to anything else. I'm suggesting that we keep all of it right where it is. It's just fine for everything it does. The one thing we don't have is a standardised location for the master cfengine files. For example, I use /var/cfengine/clients/inputs at the moment. Apologies for being Linux centric in the following example, but I don't have access to the appropriate information for other systems. If they differ from the Linux example below, perhaps someone could provide some additional information. --------------------- >From the Linux FHS: /var contains variable data files. This includes spool directories and files, administrative and logging data, and transient and temporary files. The /etc hierarchy contains configuration files. A "configuration file" is a local file used to control the operation of a program; it must be static and cannot be an executable binary. --------------------- In the above, I admit to being unsure what "static" means. --------------------- >From Linux's "man hier": /etc Contains configuration files which are local to the machine. Some larger software packages, like X11, can have their own sub- directories below /etc. Site-wide configuration files may be placed here or in /usr/etc. Nevertheless, programs should always look for these files in /etc and you may have links for these files to /usr/etc. /var This directory contains files which may change in size, such as spool and log files. --------------------- To summarise, I'd be saying that /var is logging, cache, and spool things, whereas /etc is configuration. So all the stuff currently in /var/cfengine pretty much belongs there (input/output cache/logs and the like), but the master configuration belongs in /etc. Naturally, feel free to provide us with more information or interpretation. :) -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Mon Sep 27 08:11:46 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CBuM6-0007hK-2j for mharc-help-cfengine@gnu.org; Mon, 27 Sep 2004 08:11:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CBuM4-0007gG-LM for help-cfengine@gnu.org; Mon, 27 Sep 2004 08:11:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CBuM2-0007dz-A7 for help-cfengine@gnu.org; Mon, 27 Sep 2004 08:11:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CBuIc-0006pz-5k for help-cfengine@gnu.org; Mon, 27 Sep 2004 08:08:10 -0400 Received: from [65.109.239.158] (helo=host3.drak.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CBuC9-0000Er-1v for help-cfengine@gnu.org; Mon, 27 Sep 2004 08:01:29 -0400 Received: from localhost (206.180.154.158.adsl.hal-pc.org [206.180.154.158]) by host3.drak.net (8.12.10/8.12.10) with ESMTP id i8RC1Qhv027897 for ; Mon, 27 Sep 2004 08:01:27 -0400 Date: Mon, 27 Sep 2004 07:13:54 -0500 From: Russell Adams To: help-cfengine@gnu.org Message-ID: <20040927121354.GA13202@keroberos> Mail-Followup-To: help-cfengine@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Lack of output X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 12:11:45 -0000 Status: O Content-Length: 600 Lines: 22 I've got a strange problem occuring. I run 'cfexecd -g' from inittab scheduled to run on the hour, and 'cfexecd -F' in crontab set to run at thiry minutes after the hour. I get proper logs in /var/cfengine/outputs for each invocation of cfexecd from cron, but all the logs from the child of init are 0 length files. I thought I was only getting this related to updates, but all of my systems are having the same problem. Has anyone else here reproduced this? I'm on cfengine-2.1.0p1. Russell ----------------------------- Russell Adams RLAdams@AdamsInfoServ.com http://www.adamsinfoserv.com/ From MAILER-DAEMON Mon Sep 27 09:43:35 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CBvmx-0003an-BI for mharc-help-cfengine@gnu.org; Mon, 27 Sep 2004 09:43:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CBvmu-0003ab-Va for help-cfengine@gnu.org; Mon, 27 Sep 2004 09:43:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CBvmt-0003a9-8b for Help-cfengine@gnu.org; Mon, 27 Sep 2004 09:43:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CBvmt-0003a6-5k for Help-cfengine@gnu.org; Mon, 27 Sep 2004 09:43:31 -0400 Received: from [130.164.141.23] (helo=mail.natinst.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CBvgH-0006zN-PZ for Help-cfengine@gnu.org; Mon, 27 Sep 2004 09:36:41 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.natinst.com (Postfix) with ESMTP id F316C47399; Mon, 27 Sep 2004 08:36:37 -0500 (CDT) Received: from draconix.natinst.com (draconix.natinst.com [10.0.7.222]) by mail.natinst.com (Postfix) with ESMTP id DC4F3474E6; Mon, 27 Sep 2004 08:32:49 -0500 (CDT) Received: by draconix.natinst.com (Postfix, from userid 1631) id 9DBDD1DCC5; Mon, 27 Sep 2004 08:32:49 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by draconix.natinst.com (Postfix) with ESMTP id 977971C40B; Mon, 27 Sep 2004 08:32:49 -0500 (CDT) Date: Mon, 27 Sep 2004 08:32:49 -0500 (CDT) From: "David E. Nelson" X-X-Sender: dnelson@draconix.natinst.com To: Tim Nelson In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS snapshot-20020300 Cc: Help-cfengine@gnu.org Subject: Re: Serialization X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "David E. Nelson" List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 13:43:33 -0000 Status: O Content-Length: 1971 Lines: 87 Hi Tim, Hmmm, I like this approach. Thanks! /\/elson On Mon, 27 Sep 2004, Tim Nelson wrote: > On Fri, 24 Sep 2004, David E. Nelson wrote: > >> >> If I have an actiontionsequence that has 'copy.stage', am I guaranteed that >> the order of execution would be in the order given below? Or should I be >> iterating over lists instead? >> >> Thanks, >> /\/elson > > No. But assuming just for a second that you wanted the order to be: > - all > - solaris > - > > ...you could do > > actionsequence = ( copy.allstage copy.solarisstage copy.versionstage > ) > > copy: > all.allstage:: > /var/cfengine/dist/all > dest=/var/cfengine/stage > recurse=inf > server=$(DistServer) > action=silent > type=checksum > backup=timestamp > > solaris.solarisstage:: > > /var/cfengine/dist/solaris > dest=/var/cfengine/stage > recurse=inf > server=$(DistServer) > action=silent > type=checksum > backup=timestamp > > sunos_5_6.versionstage:: > > /var/cfengine/dist/sunos_5_6 > dest=/var/cfengine/stage > recurse=inf > server=$(DistServer) > action=silent > type=checksum > backup=timestamp > > > sunos_5_8.versionstage:: > > /var/cfengine/dist/sunos_5_8 > dest=/var/cfengine/stage > recurse=inf > server=$(DistServer) > action=silent > type=checksum > backup=timestamp > > sunos_5_9.versionstage:: > > /var/cfengine/dist/sunos_5_9 > dest=/var/cfengine/stage > recurse=inf > server=$(DistServer) > action=silent > type=checksum > backup=timestamp > > -- ~~ ** ~~ If you didn't learn anything when you broke it the 1st ~~ ** ~~ time, then break it again. From MAILER-DAEMON Mon Sep 27 13:55:47 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CBzj1-0006p5-IH for mharc-help-cfengine@gnu.org; Mon, 27 Sep 2004 13:55:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CBziz-0006og-KA for help-cfengine@gnu.org; Mon, 27 Sep 2004 13:55:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CBziy-0006oU-5F for Help-cfengine@gnu.org; Mon, 27 Sep 2004 13:55:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CBziy-0006oR-2B for Help-cfengine@gnu.org; Mon, 27 Sep 2004 13:55:44 -0400 Received: from [130.164.141.23] (helo=mail.natinst.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CBzce-0002vR-Ug for Help-cfengine@gnu.org; Mon, 27 Sep 2004 13:49:13 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.natinst.com (Postfix) with ESMTP id 9911647427 for ; Mon, 27 Sep 2004 12:49:04 -0500 (CDT) Received: from draconix.natinst.com (draconix.natinst.com [10.0.7.222]) by mail.natinst.com (Postfix) with ESMTP id 9D81347555 for ; Mon, 27 Sep 2004 12:17:04 -0500 (CDT) Received: by draconix.natinst.com (Postfix, from userid 1631) id 73A4B1FA6B; Mon, 27 Sep 2004 12:17:04 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by draconix.natinst.com (Postfix) with ESMTP id 6D8C31DCC5 for ; Mon, 27 Sep 2004 12:17:04 -0500 (CDT) Date: Mon, 27 Sep 2004 12:17:04 -0500 (CDT) From: "David E. Nelson" X-X-Sender: dnelson@draconix.natinst.com To: Help-cfengine@gnu.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS snapshot-20020300 Cc: Subject: Directory scans regardless of file mode X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "David E. Nelson" List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 17:55:45 -0000 Status: O Content-Length: 442 Lines: 27 Hi All, I wish to scan /var for SUID/SGID files w/o regard to file mode permissions. If I try: files: /var mode=-0000 recurse=inf xdev=true action=warnall I get: Warning: mode string is incomplete for the 'mode=-0000'. Thanks, /\/elson -- ~~ ** ~~ If you didn't learn anything when you broke it the 1st ~~ ** ~~ time, then break it again. From MAILER-DAEMON Mon Sep 27 14:39:44 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CC0PY-0000fK-BT for mharc-help-cfengine@gnu.org; Mon, 27 Sep 2004 14:39:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CC0PV-0000eT-Qg for help-cfengine@gnu.org; Mon, 27 Sep 2004 14:39:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CC0PT-0000dL-Hp for help-cfengine@gnu.org; Mon, 27 Sep 2004 14:39:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CC0PT-0000dG-DJ for help-cfengine@gnu.org; Mon, 27 Sep 2004 14:39:39 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CC0Ih-00016r-MA for help-cfengine@gnu.org; Mon, 27 Sep 2004 14:32:39 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.9) with ESMTP id i8RIWYjY025994; Mon, 27 Sep 2004 13:32:38 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: Tim Nelson Date: Mon, 27 Sep 2004 13:32:34 -0500 User-Agent: KMail/1.5.4 References: <200409240957.08515.chip@trdlnk.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409271332.34039.chip@trdlnk.com> Cc: cfengine help list Subject: Re: cfengine config files location X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 18:39:42 -0000 Status: O Content-Length: 1166 Lines: 46 On Sunday 26 September 2004 18:23, Tim Nelson wrote: > This is just to regularise the "standard" > installation, not to make anyone do anything different than what they're > already doing. Gotcha. Are we talking about third party packaging here or are you recommending that the release tarballs install configs (he says, worried that 'make install' might stomp on his stuff)? > > I'd also recommend a different suffix for the cfservd.conf file, if we are > > going to do this (as cfa seems to imply cfAgent). > > That would probably clear up some of the other confusion going > around. Good idea. I'd say leave it as .conf. That has the virtue of not colliding with .cfa, but that's about it. How about something that emplies cfservd.conf (".cfserv", perhaps).... > > > -- > Tim Nelson > Server Administrator > WebAlive Technologies Global > Level 1 Innovation Building, Digital Harbour > 1010 LaTrobe Street > Docklands, Melbourne, > Vic, 3008 > Phone: +61 3 9934 0812 > Fax: +61 3 9934 0899 > E-mail: tim.nelson@webalive.biz > http://www.webalive.biz/ > -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Mon Sep 27 14:51:09 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CC0ab-0003X6-Mw for mharc-help-cfengine@gnu.org; Mon, 27 Sep 2004 14:51:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CC0aZ-0003WQ-Pr for help-cfengine@gnu.org; Mon, 27 Sep 2004 14:51:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CC0aY-0003W2-4g for help-cfengine@gnu.org; Mon, 27 Sep 2004 14:51:07 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CC0aY-0003Vs-2C for help-cfengine@gnu.org; Mon, 27 Sep 2004 14:51:06 -0400 Received: from [64.152.73.80] (helo=leftcoast.thebackrow.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CC0Tp-0002kV-Sq for help-cfengine@gnu.org; Mon, 27 Sep 2004 14:44:10 -0400 Received: from harpo by leftcoast.thebackrow.net with local (Microsoft Exchange Internet Mail Service 5.5.2653.13) ; Mon, 27 Sep 2004 11:43:59 -0700 Date: Mon, 27 Sep 2004 11:43:59 -0700 To: Tim Nelson Message-ID: <20040927184359.GA5134@thebackrow.net> References: <20040926223853.6865cb8d.hf@spg.tu-darmstadt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040722i From: Will Lowe Cc: help-cfengine@gnu.org Subject: Re: cfengine config files location X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 18:51:08 -0000 Status: O Content-Length: 417 Lines: 15 > So all the stuff currently in /var/cfengine pretty much > belongs there (input/output cache/logs and the like), but the master > configuration belongs in /etc. Probably though, if FHS compliance is what you're after, the lock databases belong in /var/lib/cfengine, the downloaded config files belong in /var/cache/cfengine ... rather than all in one large /var/cfengine directory. -- thanks, Will From MAILER-DAEMON Mon Sep 27 19:07:45 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CC4av-0006RE-Ki for mharc-help-cfengine@gnu.org; Mon, 27 Sep 2004 19:07:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CC4aq-0006Qt-Qn for help-cfengine@gnu.org; Mon, 27 Sep 2004 19:07:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CC4ao-0006QG-76 for help-cfengine@gnu.org; Mon, 27 Sep 2004 19:07:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CC4an-0006Q2-Ox for help-cfengine@gnu.org; Mon, 27 Sep 2004 19:07:37 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1CC4UK-0007kE-TC for help-cfengine@gnu.org; Mon, 27 Sep 2004 19:01:00 -0400 Received: (qmail 20784 invoked from network); 27 Sep 2004 23:00:40 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 27 Sep 2004 23:00:40 -0000 Date: Tue, 28 Sep 2004 09:00:46 +1000 (EST) From: Tim Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: Chip Seraphine In-Reply-To: <200409271332.34039.chip@trdlnk.com> Message-ID: References: <200409240957.08515.chip@trdlnk.com> <200409271332.34039.chip@trdlnk.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cfengine help list Subject: Re: cfengine config files location X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 23:07:41 -0000 Status: O Content-Length: 1350 Lines: 44 On Mon, 27 Sep 2004, Chip Seraphine wrote: > On Sunday 26 September 2004 18:23, Tim Nelson wrote: >> This is just to regularise the "standard" >> installation, not to make anyone do anything different than what they're >> already doing. > > Gotcha. > > Are we talking about third party packaging here or are you recommending that > the release tarballs install configs (he says, worried that 'make install' > might stomp on his stuff)? :). I'd recommend a separate tarball (or RPM in my case :) ). >>> I'd also recommend a different suffix for the cfservd.conf file, if we are >>> going to do this (as cfa seems to imply cfAgent). >> >> That would probably clear up some of the other confusion going >> around. Good idea. I'd say leave it as .conf. > > That has the virtue of not colliding with .cfa, but that's about it. How > about something that emplies cfservd.conf (".cfserv", perhaps).... It also has the virtue of not requiring any changes :). How about .cfs? I admit, if an extension is longer than 4 letters, I don't think of it as an extension :). :) -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Mon Sep 27 22:50:49 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CC84n-000237-LB for mharc-help-cfengine@gnu.org; Mon, 27 Sep 2004 22:50:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CC84j-000219-BT for help-cfengine@gnu.org; Mon, 27 Sep 2004 22:50:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CC84d-0001yc-HH for help-cfengine@gnu.org; Mon, 27 Sep 2004 22:50:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CC84b-0001x6-DK for help-cfengine@gnu.org; Mon, 27 Sep 2004 22:50:37 -0400 Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CC7xc-0008K0-Kb for help-cfengine@gnu.org; Mon, 27 Sep 2004 22:43:24 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by mx20.gnu.org with smtp (Exim 4.34) id 1CC5ev-0004Rw-Tt for help-cfengine@gnu.org; Mon, 27 Sep 2004 20:15:58 -0400 Received: (qmail 7780 invoked from network); 28 Sep 2004 00:10:25 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 28 Sep 2004 00:10:25 -0000 Date: Tue, 28 Sep 2004 10:10:29 +1000 (EST) From: Tim Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: Will Lowe In-Reply-To: <20040927184359.GA5134@thebackrow.net> Message-ID: References: <20040926223853.6865cb8d.hf@spg.tu-darmstadt.de> <20040927184359.GA5134@thebackrow.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: help-cfengine@gnu.org Subject: Re: cfengine config files location X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 02:50:47 -0000 Status: O Content-Length: 1007 Lines: 31 On Mon, 27 Sep 2004, Will Lowe wrote: >> So all the stuff currently in /var/cfengine pretty much >> belongs there (input/output cache/logs and the like), but the master >> configuration belongs in /etc. > > Probably though, if FHS compliance is what you're after, the lock > databases belong in /var/lib/cfengine, the downloaded config files > belong in /var/cache/cfengine ... rather than all in one large > /var/cfengine directory. Agreed. But all I'm trying to do at the moment is work out an FHS compliant place for files that currently don't exist by default, and are currently getting placed wherever each individual admin feels like. Naturally I'd be happy to discuss the other as well if Mark's happy to go down that road. -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Tue Sep 28 01:40:06 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCAib-0006wP-RD for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 01:40:06 -0400 Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!newsfeed01.chello.at!newsfeed02.chello.at!news.chello.at.POSTED!53ab2750!not-for-mail From: Christian Korschan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0; hi, Mom) Gecko/20020604 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: gnu.cfengine.help X-Enigmail-Version: 0.84.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 28 Sep 2004 05:31:28 GMT NNTP-Posting-Host: 80.108.73.214 X-Complaints-To: abuse@news.chello.at X-Trace: news.chello.at 1096349488 80.108.73.214 (Tue, 28 Sep 2004 07:31:28 MEST) NNTP-Posting-Date: Tue, 28 Sep 2004 07:31:28 MEST Organization: Customers chello Austria Xref: shelby.stanford.edu gnu.cfengine.help:6258 To: help-cfengine@gnu.org Subject: Cfengine 2.1.10 - variable not set by ExecResult ? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 05:40:03 -0000 Status: O Content-Length: 1453 Lines: 40 I have the following problem when using one of the following statements in control: osversion = ( ExecResult(/bin/echo `/bin/uname -s`-`/bin/uname -r`) ) osversion = ( ExecResult(PATH/osversion) ) osversion = ( "exec PATH/osversion" ) osversion = ( "exec /bin/echo `/bin/uname -s`-`/bin/uname -r`" ) osversion is not set at all (it's empty) in a copy statement like copy: any:: $(masterfiles)/site/$(site)/$(osversion)/etc/defaultrouter dest=/etc/defaultrouter owner=root group=sys mode=444 type=checksum stealth=on although cfagent's debug (-d9) output shows ... Scanning variable osversion GetMacroValue(main,osversion) EXPAND $(osversion) -> SunOS-5.9 295 : osversion=SunOS-5.9 Everything works as expected when osversion is set in cfagent's executing environment with "export osversion=`uname -s`-`uname -r`" and ExecResult is not used. Obviously this is weird because one has to take care that osversion *is* set in the executing environment, but using ExecResult would make it clear in cfagent.conf what osversion is set to without having to care about what has (not) been done outside cfagent.conf Does anybody know how to make ExecResult work in Cfengine 2.1.10 ? Thanks -- Christian Korschan Systems Specialist CTBTO/IDC Vienna International Centre P.O. BOX 1200, A-1400 Vienna, Austria Phone: +43(1)26030 6184 PGP Fingerprint: FD2E E684 C1A4 6AA8 B342 F73E 946B 7DC7 A3F8 8666 From MAILER-DAEMON Tue Sep 28 13:25:40 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCLjQ-0006xp-4J for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 13:25:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCLjO-0006xd-DZ for help-cfengine@gnu.org; Tue, 28 Sep 2004 13:25:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCLjN-0006xA-HO for help-cfengine@gnu.org; Tue, 28 Sep 2004 13:25:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCLjN-0006wz-Ed for help-cfengine@gnu.org; Tue, 28 Sep 2004 13:25:37 -0400 Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CCLcw-0001uA-0g for help-cfengine@gnu.org; Tue, 28 Sep 2004 13:18:58 -0400 Received: from mailrelay3.lanl.gov (mailrelay3.lanl.gov [128.165.4.104]) by mailwasher-b.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id i8SHIjN0006532 for ; Tue, 28 Sep 2004 11:18:46 -0600 Received: from ccn-mail.lanl.gov (ccn-mail.lanl.gov [128.165.4.105]) by mailrelay3.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id i8SHIeAe003516 for ; Tue, 28 Sep 2004 11:18:40 -0600 Received: from edbrown.lanl.gov (edbrown.lanl.gov [128.165.114.35]) by ccn-mail.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i8SHIe4H029960 for ; Tue, 28 Sep 2004 11:18:40 -0600 From: Ed Brown To: help-cfengine@gnu.org Content-Type: text/plain Message-Id: <1096391919.5537.40.camel@edbrown.lanl.gov> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 28 Sep 2004 11:18:40 -0600 Content-Transfer-Encoding: 7bit X-PMX-Version: 4.6.0.99824 X-PMX-Version: 4.6.1.107272 Subject: files actions X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 17:25:38 -0000 Status: O Content-Length: 331 Lines: 11 There's probably an easy answer, but at the moment it is eluding me: how can a file be both created if missing, and have its modes/ownership verified? action=create does one, action=fixall does the other, action=touch gets close, but I don't want the file to be touched (timestamp updated) every time cfagent runs. thanks, Ed From MAILER-DAEMON Tue Sep 28 15:55:15 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCO4A-0005dX-P9 for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 15:55:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCO47-0005dK-B7 for help-cfengine@gnu.org; Tue, 28 Sep 2004 15:55:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCO46-0005d2-OK for help-cfengine@gnu.org; Tue, 28 Sep 2004 15:55:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCO46-0005cs-IH for help-cfengine@gnu.org; Tue, 28 Sep 2004 15:55:10 -0400 Received: from [134.174.9.44] (helo=mail.bwh.harvard.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CCNxM-00016Q-W3 for help-cfengine@gnu.org; Tue, 28 Sep 2004 15:48:13 -0400 Received: (qmail 822 invoked from network); 28 Sep 2004 19:38:55 -0000 Envelope-Sender: tzz@lifelogs.com Envelope-Recipients: chip@trdlnk.com, help-cfengine@gnu.org, Received: from asimov.bwh.harvard.edu (HELO asimov) ([134.174.9.63]) (envelope-sender ) by mail.bwh.harvard.edu (qmail-ldap-1.03) with SMTP for ; 28 Sep 2004 19:38:55 -0000 Date: 28 Sep 2004 15:28:17 -0400 Message-ID: <4ny8iuuram.fsf@lifelogs.com> From: "Ted Zlatanov" Mail-Followup-To: chip@trdlnk.com, help-cfengine@gnu.org To: chip@trdlnk.com References: <200409211606.59982.chip@trdlnk.com> <4nhdpqv192.fsf@lifelogs.com> <200409220948.00333.chip@trdlnk.com> X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos X-Hashcash: 1:10:040928:chip@trdlnk.com::0fd2594463117b8e:39c X-Hashcash: 1:10:040928:help-cfengine@gnu.org::de0d32e520b7cdf8:39d In-Reply-To: <200409220948.00333.chip@trdlnk.com> (Chip Seraphine's message of "Wed, 22 Sep 2004 09:48:00 -0500") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: help-cfengine@gnu.org Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 19:55:11 -0000 Status: O Content-Length: 1245 Lines: 29 On Wed, 22 Sep 2004, chip@trdlnk.com wrote: > Because the restart command will not run unless I send either a TERM or a > KILL, according to the reference. 'tis a hackaround. I could have it set a > class and then let shellcommands execute the restart, but that is even > kludgier. > > It would be nice if we could say signal=dorestart or something like that to > clue cfengine that we want to execute the restart line without sending a > signal. (Or just allow signal 0 along with TERM and KILL, perhaps.) > > Given that I have to send a signal, the reason for saying "restart" instead of > "start" is that some Linux init scripts (esp with RedHat and SuSE) sometimes > clean up pidfiles and such, IIRC. Doing a restart instead of a start makes > you less likely to run into ugliness. The postfix script is not one of > these, but it can't hurt. It would be very nice if cfengine supported "services" in addition to "processes." In standard Unix terms, it seems that 90% of the cases would be covered with the /etc/init.d directory (things like daemontools do their own monitoring). Maybe it could be an option to a "processes:" entry, "this is restarted with $SCRIPT stop; $SCRIPT start" and no signals are necessary? Ted From MAILER-DAEMON Tue Sep 28 16:07:44 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCOGF-0000Uz-Si for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 16:07:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCOGD-0000UE-EE for help-cfengine@gnu.org; Tue, 28 Sep 2004 16:07:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCOGC-0000To-Lh for help-cfengine@gnu.org; Tue, 28 Sep 2004 16:07:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCOGC-0000T9-G8 for help-cfengine@gnu.org; Tue, 28 Sep 2004 16:07:40 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCO98-000358-LF for help-cfengine@gnu.org; Tue, 28 Sep 2004 16:00:22 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.10) with ESMTP id i8SK0K1h001104; Tue, 28 Sep 2004 15:00:20 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: "Ted Zlatanov" Date: Tue, 28 Sep 2004 15:00:19 -0500 User-Agent: KMail/1.5.4 References: <200409211606.59982.chip@trdlnk.com> <200409220948.00333.chip@trdlnk.com> <4ny8iuuram.fsf@lifelogs.com> In-Reply-To: <4ny8iuuram.fsf@lifelogs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409281500.19726.chip@trdlnk.com> Cc: help-cfengine@gnu.org Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 20:07:41 -0000 Status: O Content-Length: 668 Lines: 26 On Tuesday 28 September 2004 14:28, Ted Zlatanov wrote: > It would be very nice if cfengine supported "services" in addition to > "processes." In standard Unix terms, it seems that 90% of the cases > would be covered with the /etc/init.d directory (things like > daemontools do their own monitoring). Maybe it could be an option to > a "processes:" entry, > "this is restarted with $SCRIPT stop; $SCRIPT start" and no signals > are necessary? That would indeed rock well. A "nosig" option that still executes the "restart" line would accomplish something similar... > Ted -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Tue Sep 28 16:58:43 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCP3b-0007Pa-8Y for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 16:58:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCP3Y-0007Ot-Jh for help-cfengine@gnu.org; Tue, 28 Sep 2004 16:58:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCP3Y-0007Ob-6S for help-cfengine@gnu.org; Tue, 28 Sep 2004 16:58:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCP3X-0007ON-W7 for help-cfengine@gnu.org; Tue, 28 Sep 2004 16:58:40 -0400 Received: from [64.233.170.194] (helo=mproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCOx1-0003Nx-Fg for help-cfengine@gnu.org; Tue, 28 Sep 2004 16:51:55 -0400 Received: by mproxy.gmail.com with SMTP id 74so92584rnl for ; Tue, 28 Sep 2004 13:51:54 -0700 (PDT) Received: by 10.38.165.31 with SMTP id n31mr1263140rne; Tue, 28 Sep 2004 13:51:54 -0700 (PDT) Received: by 10.38.24.40 with HTTP; Tue, 28 Sep 2004 13:51:54 -0700 (PDT) Message-ID: <713c52340409281351121ccdfc@mail.gmail.com> Date: Tue, 28 Sep 2004 22:51:54 +0200 From: Pavel Tcholakov To: help-cfengine@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Possibly silly question... MD5 checksums, how to stop security warning? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pavel Tcholakov List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 20:58:41 -0000 Status: O Content-Length: 1237 Lines: 32 Hello, I only recently started using cfengine and so far I'm very impressed and intend to put it into production one day soon. So far I have quite a simplistic setup on one of my machines which just checks that some services are running and executes apt-get update every now and then. One thing I can't figure out is how to stop the "/etc/passwd changed" warning. Once is enough, why does it tell me that every single time cfagent runs? How do I make it accept the new state as the "proper" passwd? The other thing that started happening is the warning about mountpattern. From what I understan, this is a NFS-environment only option which I don't need to define. How can I suppress this? Output: cfengine:metal: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! cfengine:metal: SECURITY ALERT: Checksum for /etc/passwd changed! cfengine:metal: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! cfengine:metal: Program does not define mountpattern Otherwise, it's looking great and hopefully I can soon make it work in distributed mode. I'll probably have quite a few questions when I get there as I intend to run it in a very dynamic environment, something I don't think it's been specifically designed for. Thanks in advance, Pavel From MAILER-DAEMON Tue Sep 28 16:58:43 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCP3b-0007Pu-Mz for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 16:58:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCP3Z-0007PP-UZ for help-cfengine@gnu.org; Tue, 28 Sep 2004 16:58:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCP3Z-0007P7-14 for help-cfengine@gnu.org; Tue, 28 Sep 2004 16:58:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCP3Y-0007ON-QE for help-cfengine@gnu.org; Tue, 28 Sep 2004 16:58:40 -0400 Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CCOww-0003Ne-SV for help-cfengine@gnu.org; Tue, 28 Sep 2004 16:51:51 -0400 Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher-b.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id i8SKpjYG001135 for ; Tue, 28 Sep 2004 14:51:53 -0600 Received: from ccn-mail.lanl.gov (ccn-mail.lanl.gov [128.165.4.105]) by mailrelay1.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id i8SKpe6j016493 for ; Tue, 28 Sep 2004 14:51:40 -0600 Received: from edbrown.lanl.gov (edbrown.lanl.gov [128.165.114.35]) by ccn-mail.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i8SKpe4H004577 for ; Tue, 28 Sep 2004 14:51:40 -0600 From: Ed Brown To: help-cfengine@gnu.org In-Reply-To: <1096391919.5537.40.camel@edbrown.lanl.gov> References: <1096391919.5537.40.camel@edbrown.lanl.gov> Content-Type: text/plain Message-Id: <1096404699.5540.135.camel@edbrown.lanl.gov> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 28 Sep 2004 14:51:40 -0600 Content-Transfer-Encoding: 7bit X-PMX-Version: 4.6.0.99824 X-PMX-Version: 4.6.1.107272 Subject: Re: files actions X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 20:58:42 -0000 Status: O Content-Length: 1046 Lines: 34 Hmmm, so NO easy answer I take it.... If you care enough to create a file, with particular permissions, if it doesn't exist, why wouldn't also want to verify the permissions on the existing file, or continue to verify, as the case may be? Seems like an odd omission, one that I was surprised to find that neither 'fixall' or 'create' encompasses. Touching a file every time cfengine runs is clearly not the right solution. Any chance of addressing this in the future? thanks, Ed On Tue, 2004-09-28 at 11:18, Ed Brown wrote: > There's probably an easy answer, but at the moment it is eluding me: how > can a file be both created if missing, and have its modes/ownership > verified? action=create does one, action=fixall does the other, > action=touch gets close, but I don't want the file to be touched > (timestamp updated) every time cfagent runs. > > thanks, > Ed > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine From MAILER-DAEMON Tue Sep 28 17:53:56 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCPv1-0005og-Tb for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 17:53:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCPv0-0005nq-3r for help-cfengine@gnu.org; Tue, 28 Sep 2004 17:53:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCPuy-0005nO-Vw for help-cfengine@gnu.org; Tue, 28 Sep 2004 17:53:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCPuy-0005ms-MA for help-cfengine@gnu.org; Tue, 28 Sep 2004 17:53:52 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCPo4-0003vW-Pj for help-cfengine@gnu.org; Tue, 28 Sep 2004 17:46:45 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.10) with ESMTP id i8SLkh1h012826; Tue, 28 Sep 2004 16:46:43 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: Ed Brown , help-cfengine@gnu.org Date: Tue, 28 Sep 2004 16:46:42 -0500 User-Agent: KMail/1.5.4 References: <1096391919.5537.40.camel@edbrown.lanl.gov> <1096404699.5540.135.camel@edbrown.lanl.gov> In-Reply-To: <1096404699.5540.135.camel@edbrown.lanl.gov> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409281646.42214.chip@trdlnk.com> Cc: Subject: Re: files actions X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 21:53:54 -0000 Status: O Content-Length: 1680 Lines: 59 On Tuesday 28 September 2004 15:51, Ed Brown wrote: > Hmmm, so NO easy answer I take it.... In situations like the one you describe below, I generally have two near-identical files: clauses, each with a different action (one for 'fixall' and one for 'create'). Obviously, put the 'create' first or you might get an extra error the first time it runs. > > If you care enough to create a file, with particular permissions, if it > doesn't exist, why wouldn't also want to verify the permissions on the > existing file, or continue to verify, as the case may be? Seems like > an odd omission, one that I was surprised to find that neither 'fixall' > or 'create' encompasses. Touching a file every time cfengine runs is > clearly not the right solution. > > Any chance of addressing this in the future? > > thanks, > Ed > > > On Tue, 2004-09-28 at 11:18, Ed Brown wrote: > > There's probably an easy answer, but at the moment it is eluding me: how > > can a file be both created if missing, and have its modes/ownership > > verified? action=create does one, action=fixall does the other, > > action=touch gets close, but I don't want the file to be touched > > (timestamp updated) every time cfagent runs. > > > > thanks, > > Ed > > > > > > > > _______________________________________________ > > Help-cfengine mailing list > > Help-cfengine@gnu.org > > http://lists.gnu.org/mailman/listinfo/help-cfengine > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Tue Sep 28 18:45:13 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCQie-0001Q6-LD for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 18:45:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCQia-0001OQ-6d for help-cfengine@gnu.org; Tue, 28 Sep 2004 18:45:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCQiU-0001Mg-DH for help-cfengine@gnu.org; Tue, 28 Sep 2004 18:45:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCQiT-0001Md-V8 for help-cfengine@gnu.org; Tue, 28 Sep 2004 18:45:02 -0400 Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CCQbs-0002v7-BS for help-cfengine@gnu.org; Tue, 28 Sep 2004 18:38:12 -0400 Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by mx20.gnu.org with esmtp (Exim 4.34) id 1CCQ7W-00065X-Rv for help-cfengine@gnu.org; Tue, 28 Sep 2004 18:06:51 -0400 Received: from mailrelay3.lanl.gov (mailrelay3.lanl.gov [128.165.4.104]) by mailwasher-b.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id i8SM4rNF010897 for ; Tue, 28 Sep 2004 16:04:53 -0600 Received: from ccn-mail.lanl.gov (ccn-mail.lanl.gov [128.165.4.105]) by mailrelay3.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id i8SM4lTk028930; Tue, 28 Sep 2004 16:04:47 -0600 Received: from edbrown.lanl.gov (edbrown.lanl.gov [128.165.114.35]) by ccn-mail.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i8SM4l4H007594; Tue, 28 Sep 2004 16:04:47 -0600 From: Ed Brown To: chip@trdlnk.com In-Reply-To: <200409281646.42214.chip@trdlnk.com> References: <1096391919.5537.40.camel@edbrown.lanl.gov> <1096404699.5540.135.camel@edbrown.lanl.gov> <200409281646.42214.chip@trdlnk.com> Content-Type: text/plain Message-Id: <1096409087.5542.200.camel@edbrown.lanl.gov> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 28 Sep 2004 16:04:47 -0600 Content-Transfer-Encoding: 7bit X-PMX-Version: 4.6.0.99824 X-PMX-Version: 4.6.1.107272 Cc: help-cfengine@gnu.org Subject: Re: files actions X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 22:45:10 -0000 Status: O Content-Length: 2233 Lines: 70 Thanks Chip, I had tried and given up on that earlier, because the second files action on the same file only got deferred during my test: Checking file(s) in /var/tmp/foo Checking file(s) in /var/tmp/foo cfengine:: Nothing scheduled for files._var_tmp_foo_644_7133__1 (0/1 minutes elapsed) But it finally occurred to me (after giving it some more thought on account of your suggestion) that IfElapsed was not getting set to zero for the test script. It's working now - thanks! -Ed On Tue, 2004-09-28 at 15:46, Chip Seraphine wrote: > On Tuesday 28 September 2004 15:51, Ed Brown wrote: > > Hmmm, so NO easy answer I take it.... > > In situations like the one you describe below, I generally have two > near-identical files: clauses, each with a different action (one for 'fixall' > and one for 'create'). Obviously, put the 'create' first or you might get an > extra error the first time it runs. > > > > > > > If you care enough to create a file, with particular permissions, if it > > doesn't exist, why wouldn't also want to verify the permissions on the > > existing file, or continue to verify, as the case may be? Seems like > > an odd omission, one that I was surprised to find that neither 'fixall' > > or 'create' encompasses. Touching a file every time cfengine runs is > > clearly not the right solution. > > > > Any chance of addressing this in the future? > > > > thanks, > > Ed > > > > > > On Tue, 2004-09-28 at 11:18, Ed Brown wrote: > > > There's probably an easy answer, but at the moment it is eluding me: how > > > can a file be both created if missing, and have its modes/ownership > > > verified? action=create does one, action=fixall does the other, > > > action=touch gets close, but I don't want the file to be touched > > > (timestamp updated) every time cfagent runs. > > > > > > thanks, > > > Ed > > > > > > > > > > > > _______________________________________________ > > > Help-cfengine mailing list > > > Help-cfengine@gnu.org > > > http://lists.gnu.org/mailman/listinfo/help-cfengine > > > > > > > > _______________________________________________ > > Help-cfengine mailing list > > Help-cfengine@gnu.org > > http://lists.gnu.org/mailman/listinfo/help-cfengine > > From MAILER-DAEMON Tue Sep 28 18:49:14 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCQmY-00032F-0G for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 18:49:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCQmW-00031m-8R for help-cfengine@gnu.org; Tue, 28 Sep 2004 18:49:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCQmV-00031a-Qo for help-cfengine@gnu.org; Tue, 28 Sep 2004 18:49:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCQmV-00031X-N5 for help-cfengine@gnu.org; Tue, 28 Sep 2004 18:49:11 -0400 Received: from [130.164.141.23] (helo=mail.natinst.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCQfs-0003su-26 for help-cfengine@gnu.org; Tue, 28 Sep 2004 18:42:20 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.natinst.com (Postfix) with ESMTP id 54C294742A; Tue, 28 Sep 2004 17:29:24 -0500 (CDT) Received: from draconix.natinst.com (draconix.natinst.com [10.0.7.222]) by mail.natinst.com (Postfix) with ESMTP id 225C5481D7; Tue, 28 Sep 2004 17:14:04 -0500 (CDT) Received: by draconix.natinst.com (Postfix, from userid 1631) id E49D6226E4; Tue, 28 Sep 2004 17:14:03 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by draconix.natinst.com (Postfix) with ESMTP id DDD072268E; Tue, 28 Sep 2004 17:14:03 -0500 (CDT) Date: Tue, 28 Sep 2004 17:14:03 -0500 (CDT) From: "David E. Nelson" X-X-Sender: dnelson@draconix.natinst.com To: Pavel Tcholakov In-Reply-To: <713c52340409281351121ccdfc@mail.gmail.com> Message-ID: References: <713c52340409281351121ccdfc@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS snapshot-20020300 Cc: help-cfengine@gnu.org Subject: Re: Possibly silly question... MD5 checksums, how to stop security warning? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 22:49:12 -0000 Status: O Content-Length: 1809 Lines: 60 Hi Pavel, You need to specify: control: ChecksumUpdates = ( on ) This is talked about in the 'Special Variables' section of the cfengine reference. Regards, /\/elson On Tue, 28 Sep 2004, Pavel Tcholakov wrote: > Hello, > > I only recently started using cfengine and so far I'm very impressed > and intend to put it into production one day soon. So far I have quite > a simplistic setup on one of my machines which just checks that some > services are running and executes apt-get update every now and then. > > One thing I can't figure out is how to stop the "/etc/passwd changed" > warning. Once is enough, why does it tell me that every single time > cfagent runs? How do I make it accept the new state as the "proper" > passwd? > > The other thing that started happening is the warning about > mountpattern. From what I understan, this is a NFS-environment only > option which I don't need to define. How can I suppress this? > > Output: > > cfengine:metal: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > cfengine:metal: SECURITY ALERT: Checksum for /etc/passwd changed! > cfengine:metal: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > cfengine:metal: Program does not define mountpattern > > Otherwise, it's looking great and hopefully I can soon make it work in > distributed mode. I'll probably have quite a few questions when I get > there as I intend to run it in a very dynamic environment, something I > don't think it's been specifically designed for. > > Thanks in advance, > Pavel > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- ~~ ** ~~ If you didn't learn anything when you broke it the 1st ~~ ** ~~ time, then break it again. From MAILER-DAEMON Tue Sep 28 18:53:45 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCQqu-0003yX-R6 for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 18:53:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCQqt-0003y0-DZ for help-cfengine@gnu.org; Tue, 28 Sep 2004 18:53:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCQqr-0003xT-LZ for help-cfengine@gnu.org; Tue, 28 Sep 2004 18:53:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCQqr-0003x6-Gn for help-cfengine@gnu.org; Tue, 28 Sep 2004 18:53:41 -0400 Received: from [130.164.141.23] (helo=mail.natinst.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCQk8-0004Zw-Gu for help-cfengine@gnu.org; Tue, 28 Sep 2004 18:46:44 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.natinst.com (Postfix) with ESMTP id 716BB47F0C; Tue, 28 Sep 2004 17:37:09 -0500 (CDT) Received: from draconix.natinst.com (draconix.natinst.com [10.0.7.222]) by mail.natinst.com (Postfix) with ESMTP id F083548039; Tue, 28 Sep 2004 17:12:00 -0500 (CDT) Received: by draconix.natinst.com (Postfix, from userid 1631) id CC91A226E4; Tue, 28 Sep 2004 17:12:00 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by draconix.natinst.com (Postfix) with ESMTP id CA0E82268E; Tue, 28 Sep 2004 17:12:00 -0500 (CDT) Date: Tue, 28 Sep 2004 17:12:00 -0500 (CDT) From: "David E. Nelson" X-X-Sender: dnelson@draconix.natinst.com To: Ed Brown In-Reply-To: <1096404699.5540.135.camel@edbrown.lanl.gov> Message-ID: References: <1096391919.5537.40.camel@edbrown.lanl.gov> <1096404699.5540.135.camel@edbrown.lanl.gov> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS snapshot-20020300 Cc: help-cfengine@gnu.org Subject: Re: files actions X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 22:53:43 -0000 Status: O Content-Length: 1816 Lines: 81 Hi Ed, Just thought of something. How about: groups: SystemExists = ( FileExists(/etc/system) ) control: actionsequence = ( files ) files: !SystemExists:: /etc/system owner=root group=other mode=0644 action=touch !SystemExists /etc/system owner=root group=other mode=644 action=fixplain Regards, /\/elson On Tue, 28 Sep 2004, Ed Brown wrote: > Hmmm, so NO easy answer I take it.... > > If you care enough to create a file, with particular permissions, if it > doesn't exist, why wouldn't also want to verify the permissions on the > existing file, or continue to verify, as the case may be? Seems like > an odd omission, one that I was surprised to find that neither 'fixall' > or 'create' encompasses. Touching a file every time cfengine runs is > clearly not the right solution. > > Any chance of addressing this in the future? > > thanks, > Ed > > > On Tue, 2004-09-28 at 11:18, Ed Brown wrote: >> There's probably an easy answer, but at the moment it is eluding me: how >> can a file be both created if missing, and have its modes/ownership >> verified? action=create does one, action=fixall does the other, >> action=touch gets close, but I don't want the file to be touched >> (timestamp updated) every time cfagent runs. >> >> thanks, >> Ed >> >> >> >> _______________________________________________ >> Help-cfengine mailing list >> Help-cfengine@gnu.org >> http://lists.gnu.org/mailman/listinfo/help-cfengine > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- ~~ ** ~~ If you didn't learn anything when you broke it the 1st ~~ ** ~~ time, then break it again. From MAILER-DAEMON Tue Sep 28 19:11:21 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCR7x-0001n2-26 for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 19:11:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCR7v-0001ly-4s for help-cfengine@gnu.org; Tue, 28 Sep 2004 19:11:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCR7s-0001kI-DC for help-cfengine@gnu.org; Tue, 28 Sep 2004 19:11:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCR7s-0001js-AF for help-cfengine@gnu.org; Tue, 28 Sep 2004 19:11:16 -0400 Received: from [192.149.105.121] (helo=sebastion.artisan.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCR1Q-0007HD-0s for help-cfengine@gnu.org; Tue, 28 Sep 2004 19:04:36 -0400 Received: from ypmaster.artisan.com (mailhost [172.16.2.1]) by sebastion.artisan.com (8.11.6+Sun/8.11.6/mailgateway) with ESMTP id i8SN2Et04647 for ; Tue, 28 Sep 2004 16:02:14 -0700 (PDT) Received: from halfdome.artisan.com (halfdome.artisan.com [172.16.110.35]) by ypmaster.artisan.com (8.9.2/8.9.2) with ESMTP id QAA25557 for ; Tue, 28 Sep 2004 16:04:31 -0700 (PDT) Received: from halfdome.artisan.com (localhost [127.0.0.1]) by halfdome.artisan.com (8.12.8/8.11.6) with ESMTP id i8SN4VJr026225 for ; Tue, 28 Sep 2004 16:04:31 -0700 Received: (from lyndon@localhost) by halfdome.artisan.com (8.12.8/8.12.8/Submit) id i8SN4Usu026221; Tue, 28 Sep 2004 16:04:30 -0700 From: "Lyndon C. Lim" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16729.60926.909074.214663@halfdome.artisan.com> Date: Tue, 28 Sep 2004 16:04:30 -0700 To: help-cfengine@gnu.org X-Mailer: VM 7.18 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid Subject: copy rules w/checksum & w/timestamp X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 23:11:19 -0000 Status: O Content-Length: 981 Lines: 42 I have this: copy: $(templates)/nsswitch.conf dest=/etc/nsswitch.conf server=$(cf_master) type=checksum mode=644 owner=root group=root timestamps=preserve verify=true define=confirm_nsswitch $(templates)/nsswitch.conf dest=/etc/nsswitch.conf server=$(cf_master) type=ctime mode=644 owner=root group=root timestamps=preserve verify=true define=confirm_nsswitch I want to update the destination file if either the checksum or the timestamp changes. But, it doesn't work. I can delete either rule, and it works. But, they won't work in conjunction. Any suggestions how to implement these rules? -- Lyndon C. Lim; lyndon@artisan.com; 408.734.5600; 408.734.5050 (fax) Artisan Components; 141 Caspian Court; Sunnyvale, CA 94089-1013; USA From MAILER-DAEMON Tue Sep 28 19:16:16 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCRCh-0002sZ-TO for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 19:16:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCRCf-0002s9-Fh for help-cfengine@gnu.org; Tue, 28 Sep 2004 19:16:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCRCe-0002rs-4R for help-cfengine@gnu.org; Tue, 28 Sep 2004 19:16:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCRCd-0002rp-LS for help-cfengine@gnu.org; Tue, 28 Sep 2004 19:16:11 -0400 Received: from [66.179.38.26] (helo=hamhock.hoovers.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCR5w-000841-3F for help-cfengine@gnu.org; Tue, 28 Sep 2004 19:09:16 -0400 Received: from exchange.hoovers.com (gamma.hoovers.com [66.179.38.8]) by hamhock.hoovers.com (HamHock-OUTBOUND) with ESMTP id 1711E197769; Tue, 28 Sep 2004 18:09:14 -0500 (CDT) Received: from hoovers-59.hoovers.com ([66.179.38.59]) by exchange.hoovers.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id T5LR5T0L; Tue, 28 Sep 2004 18:09:13 -0500 Date: Tue, 28 Sep 2004 18:09:13 -0500 From: Frank Smith To: Pavel Tcholakov Message-ID: <02239BAD94517091869C812F@hoovers-59.hoovers.com> In-Reply-To: References: <713c52340409281351121ccdfc@mail.gmail.com> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: help-cfengine@gnu.org Subject: Re: Possibly silly question... MD5 checksums, how to stop security warning? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 23:16:14 -0000 Status: O Content-Length: 678 Lines: 25 On Tue, 28 Sep 2004, Pavel Tcholakov wrote: If you're not using cfengine to mount anything, don't use an actionsequence that checks mounts and you won't get the warning. If you want to use cfengine for local mounts, you get the warning if its not defined (probably only once since cfengine often seems to email warnings that weren't in the run before). Frank >> The other thing that started happening is the warning about >> mountpattern. From what I understan, this is a NFS-environment only >> option which I don't need to define. How can I suppress this? >> >> Output: >> >> cfengine:metal: Program does not define mountpattern >> >> Thanks in advance, >> Pavel From MAILER-DAEMON Tue Sep 28 19:37:36 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCRXM-0008Fn-Et for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 19:37:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCRXI-0008Di-I2 for help-cfengine@gnu.org; Tue, 28 Sep 2004 19:37:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCRXG-0008DN-Pf for help-cfengine@gnu.org; Tue, 28 Sep 2004 19:37:31 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCRXG-0008DC-HD for help-cfengine@gnu.org; Tue, 28 Sep 2004 19:37:30 -0400 Received: from [192.149.105.121] (helo=sebastion.artisan.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCRQl-0002fN-NV for help-cfengine@gnu.org; Tue, 28 Sep 2004 19:30:48 -0400 Received: from ypmaster.artisan.com (mailhost [172.16.2.1]) by sebastion.artisan.com (8.11.6+Sun/8.11.6/mailgateway) with ESMTP id i8SNSTt05789 for ; Tue, 28 Sep 2004 16:28:29 -0700 (PDT) Received: from halfdome.artisan.com (halfdome.artisan.com [172.16.110.35]) by ypmaster.artisan.com (8.9.2/8.9.2) with ESMTP id QAA28806 for ; Tue, 28 Sep 2004 16:30:46 -0700 (PDT) Received: from halfdome.artisan.com (localhost [127.0.0.1]) by halfdome.artisan.com (8.12.8/8.11.6) with ESMTP id i8SNUkJr026849 for ; Tue, 28 Sep 2004 16:30:46 -0700 Received: (from lyndon@localhost) by halfdome.artisan.com (8.12.8/8.12.8/Submit) id i8SNUkST026845; Tue, 28 Sep 2004 16:30:46 -0700 From: "Lyndon C. Lim" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16729.62501.931802.724596@halfdome.artisan.com> Date: Tue, 28 Sep 2004 16:30:45 -0700 To: help-cfengine@gnu.org X-Mailer: VM 7.18 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid Subject: Additional checking of conf files X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 23:37:34 -0000 Status: O Content-Length: 3914 Lines: 141 I wrote the little Perl script below, to help me check that my config files are consistent with their definitions and references of classes. Its usefulness depends much on your specific style. But, you can probably modify it to match how you write your config files. Hope somebody finds it helpful. #!/usr/bin/perl ######################################################################## # # checkConf.pl - Sanity check for cfengine configuration files. # ######################################################################## # # $Id: checkConf.pl,v 1.1 2004/09/28 20:41:37 lyndon Exp $ # $Source: /nfs/cad-root/ECS/conf/RCS/checkConf.pl,v $ # ######################################################################## # Libraries ######################################################################## # ({[ use strict; use English; use FileHandle; ######################################################################## # Functions ######################################################################## # function: uniq # purpose: Given an array, return an array with unique values. # args: @values - array, list of scalars. # returns: array - redundant values removed. # example: uniq(1, 2, 3, "a", "a") # sub uniq(@) { my(@list) = @ARG; my($member, %values); foreach $member (@list) { $values{$member} = 1; } return(sort(keys(%values))); } ######################################################################## # Main ######################################################################## MAIN: { my($buf, %defined, $fh, $flag, $inputFile, %installed, @keys, %referenced, $tmp); $inputFile = $ARGV[0]; $fh = FileHandle::new(); $fh->open("< $inputFile") or die("Unable to open $inputFile"); $flag = 0; while ($buf = <$fh>) { chomp($buf); SWITCH: { # Process addInstallable classes if ($buf =~ /addInstallable/) { $flag = 1; last(SWITCH); } if ($buf =~ /\)/) { $flag = 0; last(SWITCH); } if ($flag) { $buf =~ s/ //g; $installed{$buf} = 1; } # Process classes defined in copy if ($buf =~ /define=/) { ($tmp, $buf) = split('=', $buf); $referenced{$buf} = 1; last(SWITCH); } # Process class definitions if ($buf =~ /[^:]*::/) { $buf =~ s/[ :]*//g; $defined{$buf} = 1; last(SWITCH); } } } $fh->close(); @keys = keys(%installed); push(@keys, keys(%referenced)); push(@keys, keys(%defined)); @keys = uniq(@keys); foreach $buf (@keys) { if (exists($defined{$buf}) && !exists($referenced{$buf})) { printf("%-20s is defined but not referenced.\n", $buf); } if (exists($defined{$buf}) && !exists($installed{$buf}) ) { printf("%-20s is defined but not installed.\n", $buf); } if (exists($referenced{$buf}) && !exists($defined{$buf}) ) { printf("%-20s is referenced but not defined.\n", $buf); } if (exists($referenced{$buf}) && !exists($installed{$buf}) ) { printf("%-20s is referenced but not installed.\n", $buf); } if (exists($installed{$buf}) && !exists($defined{$buf}) ) { printf("%-20s is installed but not defined.\n", $buf); } if (exists($installed{$buf}) && !exists($referenced{$buf})) { printf("%20s is installed but not referenced.\n", $buf); } } } # ]}) # end -- Lyndon C. Lim; lyndon@artisan.com; 408.734.5600; 408.734.5050 (fax) Artisan Components; 141 Caspian Court; Sunnyvale, CA 94089-1013; USA From MAILER-DAEMON Tue Sep 28 20:52:45 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCSi5-0005BM-Hl for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 20:52:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCSi3-0005BG-Nh for help-cfengine@gnu.org; Tue, 28 Sep 2004 20:52:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCSi3-0005B4-7R for help-cfengine@gnu.org; Tue, 28 Sep 2004 20:52:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCSi3-0005B1-3b for help-cfengine@gnu.org; Tue, 28 Sep 2004 20:52:43 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1CCSbZ-0005Dd-8S for help-cfengine@gnu.org; Tue, 28 Sep 2004 20:46:01 -0400 Received: (qmail 3076 invoked from network); 29 Sep 2004 00:45:44 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 29 Sep 2004 00:45:44 -0000 Date: Wed, 29 Sep 2004 10:45:47 +1000 (EST) From: Tim Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: cfengine help list Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: cfengine config files location (fwd) X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 00:52:43 -0000 Status: O Content-Length: 6571 Lines: 173 Oops, I sent this yesterday, but accidentally didn't choose reply to all. Chip replied to this; Chip, could you reforward your e-mail to the list, and I'll include them in my reply to you. ---------- Forwarded message ---------- Date: Tue, 28 Sep 2004 09:41:31 +1000 (EST) From: Tim Nelson To: Chip Seraphine Subject: Re: cfengine config files location On Mon, 27 Sep 2004, Chip Seraphine wrote: > On Sunday 26 September 2004 19:18, Tim Nelson wrote: >> On Sun, 26 Sep 2004, Hauke Fath wrote: >> >>> On Fri, 24 Sep 2004 13:14:55 +1000 (EST) Tim Nelson wrote: >>> >>>> /etc/cfengine/master: cfengine configuration files to be rolled out >>> >>> Please consider sticking with the default of /var/cfengine. This is more >>> appropriate than /etc, since the directory is written to quite >>> frequently. >> >> Just to clear things up, I'm not suggesting that we change >> /var/cfengine to anything else. I'm suggesting that we keep all of it >> right where it is. It's just fine for everything it does. >> >> The one thing we don't have is a standardised location for the >> master cfengine files. For example, I use /var/cfengine/clients/inputs at >> the moment. > > So we're talking about master files that will be copied into /var/cfengine > before being run? That's exactly it. In fact, /var/cfengine/inputs :). > I think the common case is for such files to be on a server somewhere. Exactly. > In that case, /etc might not be a good choice, since that is generally for > local configuration. Better than /var/cfengine/clients, though :). > (Of course, NIS servers use /etc for master config files, but > that is because those *are* live local config files that are distrubted to > clients.) I personally have an /opt/cfengine directory on my server where > all the master files, SCCS (or RCS for the Open Source world :-) histories, > templates, etc all live. I'd be hesitant to put it under /etc if for no > other reason than it is large and wants its own disk. Ok, so you don't like /etc, but I'm not sure that /opt is much better. I'll cast around a bit more (see below). >> Apologies for being Linux centric in the following example, but I >> don't have access to the appropriate information for other systems. If >> they differ from the Linux example below, perhaps someone could provide >> some additional information. >> >> --------------------- >> From the Linux FHS: >> >> /var contains variable data files. This includes spool directories and >> files, administrative and logging data, and transient and temporary files. >> >> The /etc hierarchy contains configuration files. A "configuration file" is >> a local file used to control the operation of a program; > > The word local, as I interpret it, makes me think this is a bad place for a > repository of server files. Agreed. >> it must be static >> and cannot be an executable binary. >> --------------------- >> >> In the above, I admit to being unsure what "static" means. > > I think they are saying /etc/mtab doesn't belong in /etc :-) :). Agreed, too. >> To summarise, I'd be saying that /var is logging, cache, and spool >> things, whereas /etc is configuration. > > None of which are server repositories than. Perhaps /usr/lib (or > /usr/local/ > lib) if you don't care for /opt? Hmm. Not sure I like either of those. /usr/local is, according to FHS, supposed to be empty on default installs. The way it gets used by systems with package managers (or at least RPMs, anyway), is that files that aren't part of an RPM are supposed to go there (ie. site-specific files). That way, by backing up /etc and /usr/local and a list of packages, you should be able to restore the machine to a working state (oh, and you may also need /home :) ). As for /usr/lib, it just doesn't seem right somehow, although that's how it's often done. Also, You snipped an important bit from "man hier", under "/etc": ------------------ Site-wide configuration files may be placed here or in /usr/etc. Nevertheless, programs should always look for these files in /etc and you may have links for these files to /usr/etc. ------------------ :). OTOH, the FHS says: ------------------ Note that /usr/etc is still not allowed: programs in /usr should place configuration files in /etc. ------------------ I think the FHS missed the point that the "man hier" page was making. But casting around a bit more, and looking at the FHS: ------------------ /usr/share : Architecture-independent data ------------------ That sounds like it, doesn't it. According to my searches, FHS doesn't mention the words "site" or "global" in a context that appears like they have considered the kind of problem we're studying, so I suspect that we're pretty much on our own here. How would one of the following be: /usr/share/etc/cfengine.d <-- my preferred option /usr/share/cfengine/etc Other ideas? >> So all the stuff currently in /var/cfengine pretty much belongs >> there (input/output cache/logs and the like), but the master configuration >> belongs in /etc. > > I'd interpret the above to mean that the actual config files belong in /etc, > not the masters that the live configs are copied from. Depends on how you want to look at it. The way I'm looking at it, the ones in /var/cfengine/inputs are "cached" versions, rather than "local config", because any changes you make locally will get overwritten from the masters on the next run. In addition, I personally am going to be generating most of the "standard" master files from .pt (perl template) files, which interweave cfengine config, documentation, and perl code which generates one of the other two. I'd naturally love to include this in my proposed scheme :), but thought it would cause too much uproar and trouble :). So my idea was: - .pt files generate central cfengine config files (only on my system; others could edit their own cfengine files however they like). - Packages that know cfengine install their files in /usr/share/etc/cfengine.d or wherever (hopefully with different names than the ones being generated by my .pt files). - cf.fileinclude.cfa gets regenerated by looking in /usr/share/etc/cfengine.d :) -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Tue Sep 28 21:03:14 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCSsE-0008Oe-EE for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 21:03:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCSsC-0008OT-Fr for help-cfengine@gnu.org; Tue, 28 Sep 2004 21:03:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCSsB-0008O3-KP for help-cfengine@gnu.org; Tue, 28 Sep 2004 21:03:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCSsB-0008O0-Gt for help-cfengine@gnu.org; Tue, 28 Sep 2004 21:03:11 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1CCSlb-0006cF-1X for help-cfengine@gnu.org; Tue, 28 Sep 2004 20:56:23 -0400 Received: (qmail 7577 invoked from network); 29 Sep 2004 00:56:05 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 29 Sep 2004 00:56:05 -0000 Date: Wed, 29 Sep 2004 10:56:08 +1000 (EST) From: Tim Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: Chip Seraphine In-Reply-To: <200409280943.46918.chip@trdlnk.com> Message-ID: References: <200409271425.03539.chip@trdlnk.com> <200409280943.46918.chip@trdlnk.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cfengine help list Subject: Re: cfengine config files location X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 01:03:12 -0000 Status: O Content-Length: 7010 Lines: 186 On Tue, 28 Sep 2004, Chip Seraphine wrote: >> The way it gets used by >> systems with package managers (or at least RPMs, anyway), is that files >> that aren't part of an RPM are supposed to go there (ie. site-specific >> files). That way, by backing up /etc and /usr/local and a list of >> packages, you should be able to restore the machine to a working state >> (oh, and you may also need /home :) ). > > Good luck getting the machine restorable without /var/lib.... Ouch, yes. I would've gotten /var/lib/, but probably missed some other stuff. [snipped stuff I agree with :)] >> Also, You snipped an important bit from "man hier", under "/etc": >> ------------------ >> Site-wide configuration files may be placed here or in /usr/etc. >> Nevertheless, programs should always look for these files in /etc and you >> may have links for these files to /usr/etc. >> ------------------ > > I ignored the hier page because it hasn't been updated in mellenia; I figured > the newer FHS stuff superceded it. > > Hmm. That *is* interesting. And even relevant. That being said, I've never > used /usr/etc for *anything*. > > >> ------------------ >> /usr/share : Architecture-independent data >> ------------------ >> >> That sounds like it, doesn't it. > > Except that the binaries are generally copied out along with the configs by > update.conf. That, and a lot of cfengine folk probably have decidedly > non-arch-independent cf files and (especially) modules... Hmm. I know I have /var/cfengine/clients/inputs (cfengine config) /var/cfengine/clients/local (files I want to copy out to each machine) So, I think we have two separate issues we need to sort out here; neither of these are currently defined. >> According to my searches, FHS doesn't mention the words "site" or >> "global" in a context that appears like they have considered the kind of >> problem we're studying, so I suspect that we're pretty much on our own >> here. How would one of the following be: >> >> /usr/share/etc/cfengine.d <-- my preferred option >> /usr/share/cfengine/etc >> >> Other ideas? > > Not really. I dislike forcing the arch-independent angle on the admin; > cfengine does enough ivory-towering as it is. Is this opinion because of the copying out of binaries? > That being said, it is still a pretty reasonable approach. :). I like being called reasonable :). > If I ran the circus I would probably deposit the configs (inputs) into /usr/ > etc (sounds like that is exactly what that dir is for) and executables in / > usr/lib. In both cases I would make a subdir called cfengine or cfengine.d. > > But I don't really like that too much either, so take that as a very lukewarm > recommendation. Hmm. Now I'm considering the same thing myself. So now our preferred choices are: /usr/share/etc/cfengine.d /usr/etc/cfengine.d >>>> So all the stuff currently in /var/cfengine pretty much belongs >>>> there (input/output cache/logs and the like), but the master > configuration >>>> belongs in /etc. >>> >>> I'd interpret the above to mean that the actual config files belong in / > etc, >>> not the masters that the live configs are copied from. >> >> Depends on how you want to look at it. The way I'm looking at it, >> the ones in /var/cfengine/inputs are "cached" versions, rather than "local >> config", because any changes you make locally will get overwritten from >> the masters on the next run. > > I can see that. Disagree, but I can see that. In a client/server scenario, > you are either making the copies in the client's /etc irrelevant or adding > an extra layer of copying. > > Or are you envisioning the package as just being for the policy server? Yes! Sorry, I'm not sure I've made myself entirely clear -- this is *only* to be set up on the (Gold Master|Policy Server|Central Everything server). Many files from it may be copied out by cfengine (to eg. /var/cfengine/inputs), but it itself is only put in the one place. >> In addition, I personally am going to be generating most of the >> "standard" master files from .pt (perl template) files, > > Ah! The dark secret comes to light! You autogenerate your confs, which makes > an extra layer of 'repositoryness' reasonable in your case. :). But that's not what I want it for. I want it so that software installed on the cfengine server can dump configs somewhere. >> which interweave >> cfengine config, documentation, and perl code which generates one of the >> other two. I'd naturally love to include this in my proposed scheme :), >> but thought it would cause too much uproar and trouble :). > > Probably wise. Autogenerating cfengine confs is still a bit controversial and > not-standardized. I could propose that all configs be generated using a combo of Perl, Squeak, and ML (and then I could learn Squeak and ML :) ). >> So my idea was: >> >> - .pt files generate central cfengine config files (only on my >> system; others could edit their own cfengine files however they >> like). >> - Packages that know cfengine install their files in >> /usr/share/etc/cfengine.d or wherever (hopefully with different >> names than the ones being generated by my .pt files). > > Cool. Actually, I could avoid this by double-prefixing: my files would be whatever.local.cfa and the ones from the package would be whatever.cfa. >> - cf.fileinclude.cfa gets regenerated by looking in >> /usr/share/etc/cfengine.d > > You sure you want to keep both prefix and suffix? No! But I hadn't managed to kick the habit yet :). Just to come back to something we were discussing before, what about a central location for particular files that people want to copy out? It could be quite useful for packages to be able to put files in to be copied out (for example, a mysql/postgresql shared secret ("password") for a database that needs to be accessed from various places). These machines might like to have a directory that they know is already allowed in cfservd.conf (or whatever we call that). So maybe the following are possibilities: /usr/share/cfengine/files (and maybe config in /usr/share/cfengine/etc.d or something). ??? Ideas anyone? I don't think this kind of thing is supported by the FHS; do we need a new /sitewide folder? :). Should this be suggested to FHS? So, the questions I'm putting out generally now are: 1. /usr/share/etc/cfengine.d vs. /usr/etc/cfengine.d vs. something else? 2. Location for stuff we want to copy out from a master location (see comments below)? And the question I'm putting to Mark is: 1. Can we post something like this as a separate package on the cfengine site, once we get it sorted out a bit more? :) -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Tue Sep 28 22:25:47 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCUA6-0008OS-NT for mharc-help-cfengine@gnu.org; Tue, 28 Sep 2004 22:25:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCUA3-0008NF-HC for help-cfengine@gnu.org; Tue, 28 Sep 2004 22:25:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCUA2-0008MV-CK for help-cfengine@gnu.org; Tue, 28 Sep 2004 22:25:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCUA2-0008MS-67 for help-cfengine@gnu.org; Tue, 28 Sep 2004 22:25:42 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1CCU3O-0001DH-VL for help-cfengine@gnu.org; Tue, 28 Sep 2004 22:18:51 -0400 Received: (qmail 12487 invoked from network); 29 Sep 2004 02:18:34 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 29 Sep 2004 02:18:34 -0000 Date: Wed, 29 Sep 2004 12:18:37 +1000 (EST) From: Tim Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: Chip Seraphine In-Reply-To: <200409281500.19726.chip@trdlnk.com> Message-ID: References: <200409211606.59982.chip@trdlnk.com> <200409220948.00333.chip@trdlnk.com> <4ny8iuuram.fsf@lifelogs.com> <200409281500.19726.chip@trdlnk.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Ted Zlatanov , help-cfengine@gnu.org Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 02:25:43 -0000 Status: O Content-Length: 1145 Lines: 35 On Tue, 28 Sep 2004, Chip Seraphine wrote: > On Tuesday 28 September 2004 14:28, Ted Zlatanov wrote: >> It would be very nice if cfengine supported "services" in addition to >> "processes." In standard Unix terms, it seems that 90% of the cases >> would be covered with the /etc/init.d directory (things like >> daemontools do their own monitoring). Maybe it could be an option to >> a "processes:" entry, >> "this is restarted with $SCRIPT stop; $SCRIPT start" and no signals >> are necessary? > > That would indeed rock well. A "nosig" option that still executes the > "restart" line would accomplish something similar... Hmm. I think Redhat wants you to use "service httpd start" or whatever. There are also a variety of other actions, such as reload and status which could be useful. However, unfortunately, the whole thing is pretty non-standardised :). :) -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Wed Sep 29 01:32:33 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCX4r-0003wn-8K for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 01:32:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCX4p-0003vw-Mn for help-cfengine@gnu.org; Wed, 29 Sep 2004 01:32:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCX4o-0003vX-NG for help-cfengine@gnu.org; Wed, 29 Sep 2004 01:32:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCX4o-0003vI-Ku for help-cfengine@gnu.org; Wed, 29 Sep 2004 01:32:30 -0400 Received: from [130.102.149.128] (helo=mailhub2.uq.edu.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCWy0-0000rs-UM for help-cfengine@gnu.org; Wed, 29 Sep 2004 01:25:29 -0400 Received: from smtp2.uq.edu.au (smtp2.uq.edu.au [130.102.5.53]) by mailhub2.uq.edu.au (8.12.11/8.12.11) with ESMTP id i8T5PKlF094256 for ; Wed, 29 Sep 2004 15:25:20 +1000 (EST) Received: from [130.102.153.96] (bourbon.its.uq.edu.au [130.102.153.96]) by smtp2.uq.edu.au (8.12.10/8.12.10) with ESMTP id i8T5PJ1U022131 for ; Wed, 29 Sep 2004 15:25:19 +1000 (EST) From: Leslie Smith To: Cfengine Help Mailing List Content-Type: text/plain Organization: ITS Message-Id: <1096435519.2815.66.camel@bourbon.its.uq.edu.au> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 29 Sep 2004 15:25:19 +1000 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.43 on UQ Mailhub Subject: Class interpretation X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: les.smith@uq.edu.au List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 05:32:31 -0000 Status: O Content-Length: 483 Lines: 27 If i have a class that has brackets to determine the order of execution, then strange things happen. Seems to evaluate the servers|routers and jails.!hit instead of {servers|routers|jails} and !hit and !roll This example works. ServerRouterJailGp = ( servers|routers|jails ) EnsureMinimumPackages = ( ServerRouterJailGp.!hit.!roll ) This example does not work. EnsureMinimumPackages = ( {servers|routers|jails}.!hit.!roll ) -- Les Smith les.smith@uq.edu.au Ext: 54046 From MAILER-DAEMON Wed Sep 29 03:04:20 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCYVf-00054s-Ri for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 03:04:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCYVd-00053l-Qb for help-cfengine@gnu.org; Wed, 29 Sep 2004 03:04:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCYVd-00053Z-DK for help-cfengine@gnu.org; Wed, 29 Sep 2004 03:04:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCYVd-00053W-Am for help-cfengine@gnu.org; Wed, 29 Sep 2004 03:04:17 -0400 Received: from [64.233.170.196] (helo=mproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCYP4-0005Mf-Ku for help-cfengine@gnu.org; Wed, 29 Sep 2004 02:57:30 -0400 Received: by mproxy.gmail.com with SMTP id 76so4415894rnk for ; Tue, 28 Sep 2004 23:57:30 -0700 (PDT) Received: by 10.38.88.53 with SMTP id l53mr1371631rnb; Tue, 28 Sep 2004 23:57:30 -0700 (PDT) Received: by 10.38.24.40 with HTTP; Tue, 28 Sep 2004 23:57:30 -0700 (PDT) Message-ID: <713c52340409282357137be98a@mail.gmail.com> Date: Wed, 29 Sep 2004 08:57:30 +0200 From: Pavel Tcholakov To: help-cfengine@gnu.org In-Reply-To: <02239BAD94517091869C812F@hoovers-59.hoovers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <713c52340409281351121ccdfc@mail.gmail.com> <02239BAD94517091869C812F@hoovers-59.hoovers.com> Subject: Re: Possibly silly question... MD5 checksums, how to stop security warning? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pavel Tcholakov List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 07:04:18 -0000 Status: O Content-Length: 1025 Lines: 37 Thanks for the hints, everyone :-) I don't have anything mount-related in my actionsequence, but it did start only after I changed something so I'll just need to poke around to find it. Looking great so far! Regards, Pavel On Tue, 28 Sep 2004 18:09:13 -0500, Frank Smith wrote: > On Tue, 28 Sep 2004, Pavel Tcholakov wrote: > > If you're not using cfengine to mount anything, don't use an > actionsequence that checks mounts and you won't get the > warning. > If you want to use cfengine for local mounts, you get the > warning if its not defined (probably only once since cfengine > often seems to email warnings that weren't in the run before). > > Frank > > >> The other thing that started happening is the warning about > >> mountpattern. From what I understan, this is a NFS-environment only > >> option which I don't need to define. How can I suppress this? > >> > >> Output: > >> > >> cfengine:metal: Program does not define mountpattern > >> > > >> Thanks in advance, > >> Pavel > > From MAILER-DAEMON Wed Sep 29 03:15:41 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCYge-0007vK-SL for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 03:15:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCYgc-0007uJ-Ef for help-cfengine@gnu.org; Wed, 29 Sep 2004 03:15:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCYgb-0007tx-Ke for help-cfengine@gnu.org; Wed, 29 Sep 2004 03:15:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCYgb-0007tc-FB for help-cfengine@gnu.org; Wed, 29 Sep 2004 03:15:37 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1CCYZZ-0006wb-JN for help-cfengine@gnu.org; Wed, 29 Sep 2004 03:08:21 -0400 Received: (qmail 12326 invoked from network); 29 Sep 2004 07:08:05 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 29 Sep 2004 07:08:05 -0000 Date: Wed, 29 Sep 2004 17:08:07 +1000 (EST) From: Tim Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: Pavel Tcholakov In-Reply-To: <713c52340409282357137be98a@mail.gmail.com> Message-ID: References: <713c52340409281351121ccdfc@mail.gmail.com> <02239BAD94517091869C812F@hoovers-59.hoovers.com> <713c52340409282357137be98a@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: help-cfengine@gnu.org Subject: Re: Possibly silly question... MD5 checksums, how to stop security warning? X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 07:15:39 -0000 Status: O Content-Length: 1663 Lines: 69 On Wed, 29 Sep 2004, Pavel Tcholakov wrote: > Thanks for the hints, everyone :-) > > I don't have anything mount-related in my actionsequence, but it did > start only after I changed something so I'll just need to poke around > to find it. Looking great so far! I always use (on the client): cfagent -q -vv 2>&1 | tee ~/cf.log That gives you lots of debugging info; see if that helps. :) > > Regards, > Pavel > > > On Tue, 28 Sep 2004 18:09:13 -0500, Frank Smith wrote: >> On Tue, 28 Sep 2004, Pavel Tcholakov wrote: >> >> If you're not using cfengine to mount anything, don't use an >> actionsequence that checks mounts and you won't get the >> warning. >> If you want to use cfengine for local mounts, you get the >> warning if its not defined (probably only once since cfengine >> often seems to email warnings that weren't in the run before). >> >> Frank >> >>>> The other thing that started happening is the warning about >>>> mountpattern. From what I understan, this is a NFS-environment only >>>> option which I don't need to define. How can I suppress this? >>>> >>>> Output: >>>> >>>> cfengine:metal: Program does not define mountpattern >>>> >> >>>> Thanks in advance, >>>> Pavel >> >> > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Wed Sep 29 04:23:20 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCZk7-0003aO-Oq for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 04:23:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCZk5-0003aJ-U0 for help-cfengine@gnu.org; Wed, 29 Sep 2004 04:23:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCZk4-0003Zo-Hp for help-cfengine@gnu.org; Wed, 29 Sep 2004 04:23:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCZk4-0003ZT-88 for help-cfengine@gnu.org; Wed, 29 Sep 2004 04:23:16 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCZdd-0000kJ-Bp for help-cfengine@gnu.org; Wed, 29 Sep 2004 04:16:37 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i8T8Gh3b011285; Wed, 29 Sep 2004 10:16:48 +0200 (MEST) Message-Id: <200409290816.i8T8Gh3b011285@nexus.iu.hio.no> Date: Wed, 29 Sep 2004 10:16:43 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: les.smith@uq.edu.au In-Reply-To: <1096435519.2815.66.camel@bourbon.its.uq.edu.au> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: help-cfengine@gnu.org Subject: Re: Class interpretation X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 08:23:18 -0000 Status: O Content-Length: 813 Lines: 35 You could try quoting these. M On 29 Sep, Leslie Smith wrote: > If i have a class that has brackets to determine the order of execution, > then strange things happen. > > Seems to evaluate the servers|routers and jails.!hit > > instead of > > {servers|routers|jails} and !hit and !roll > > > This example works. > > ServerRouterJailGp = ( servers|routers|jails ) > EnsureMinimumPackages = ( ServerRouterJailGp.!hit.!roll ) > > > This example does not work. > > EnsureMinimumPackages = ( {servers|routers|jails}.!hit.!roll ) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Wed Sep 29 05:39:48 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCaw8-0007lT-0u for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 05:39:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCaw5-0007lM-O3 for help-cfengine@gnu.org; Wed, 29 Sep 2004 05:39:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCaw5-0007lA-9J for help-cfengine@gnu.org; Wed, 29 Sep 2004 05:39:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCaw5-0007l7-6F for help-cfengine@gnu.org; Wed, 29 Sep 2004 05:39:45 -0400 Received: from [147.83.2.21] (helo=gehry.upc.es) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCapR-00042p-6Y for help-cfengine@gnu.org; Wed, 29 Sep 2004 05:32:53 -0400 Received: from gehry.upc.es (localhost.localdomain [127.0.0.1]) by gehry.upc.es (8.13.0/8.13.0) with ESMTP id i8T9WpTn001472 for ; Wed, 29 Sep 2004 11:32:51 +0200 Received: from berlioz.upcnetadm.upcnet.es (berlioz.upcnetadm.upcnet.es [147.83.197.101]) by gehry.upc.es (8.13.0/8.13.0) with ESMTP id i8T9Wmi9001363 for ; Wed, 29 Sep 2004 11:32:49 +0200 To: help-cfengine@gnu.org MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 Message-ID: From: Pau Capdevila/Upcnet Date: Wed, 29 Sep 2004 11:32:45 +0200 X-MIMETrack: Serialize by Router on Berlioz/Upcnet(Release 6.5.1|January 21, 2004) at 29/09/2004 11:32:49, Serialize complete at 29/09/2004 11:32:49 Content-Type: multipart/alternative; boundary="=_alternative 0034708342256F1E_=" Subject: Implementing an update system X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 09:39:45 -0000 Status: O Content-Length: 3617 Lines: 83 This is a multipart message in MIME format. --=_alternative 0034708342256F1E_= Content-Type: text/plain; charset="US-ASCII" Hi, I'm building an update system based on cfengine. By the moment I have a working base configuration. Now I've started with cfagent scripts and so on. I've been studying the documentation and mailing list post for some time so I only (?) lack a bit of practice. I'm not totally used to it yet and by now my administration skills are rather immature but I achieve with more or less effort my goals. However I find some disadvantages: Too many "shellcommands": I find myself bloating the "shellcommands" actionset with lots of things that I could do in an external script. Action sequence: Some changes require an order in the execution. You can define an order between "actions" but cannot control If you want to execute some other action beetween two shellcommands. Debugging: I find extremely difficult to (I know that system administration is not easy) evaluate if all my actions have been carried successfully. Then I can't increment the version number that I try to keep in order to know wich changes have been applied to every machine. Home directive: Can I use It to rename (disable)? or I must write a script. Am I missing some feature of Cfengine that solves some of my questions? Any pointers? Thanks, Pau --=_alternative 0034708342256F1E_= Content-Type: text/html; charset="US-ASCII"
Hi,

I'm building an update system based on cfengine.

By the moment I have a working base configuration. Now I've started with cfagent scripts and so on.
I've been studying the documentation and mailing list post for some time so I only (?) lack a bit of practice.
I'm not totally used to it yet and by now my administration skills are rather immature but I achieve with more or less effort my goals.

However I find some disadvantages:

Too many "shellcommands": I find myself bloating the "shellcommands" actionset with lots of things that I could do in an external script.
Action sequence: Some changes require an order in the execution. You can define an order between "actions" but cannot control If you want to
                          execute some other action beetween two shellcommands.
Debugging: I find extremely difficult to (I know that system administration is not easy) evaluate if all my actions have been carried successfully.
                 Then I can't increment the version number that I try to keep in order to know wich changes have been applied to every machine.
      Home directive: Can I use It to rename (disable)? or I must write a script.

Am I missing some feature of Cfengine that solves some of my questions? Any pointers?

Thanks,

Pau --=_alternative 0034708342256F1E_=-- From MAILER-DAEMON Wed Sep 29 07:02:22 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCcE2-0004QX-Ga for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 07:02:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCcDz-0004QN-U2 for help-cfengine@gnu.org; Wed, 29 Sep 2004 07:02:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCcDy-0004Pr-Rw for help-cfengine@gnu.org; Wed, 29 Sep 2004 07:02:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCcDy-0004PH-K9 for help-cfengine@gnu.org; Wed, 29 Sep 2004 07:02:18 -0400 Received: from [65.109.239.158] (helo=host3.drak.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCc7I-0007kB-5C for help-cfengine@gnu.org; Wed, 29 Sep 2004 06:55:24 -0400 Received: from localhost (206.180.154.158.adsl.hal-pc.org [206.180.154.158]) by host3.drak.net (8.12.10/8.12.10) with ESMTP id i8TAtLtM023632 for ; Wed, 29 Sep 2004 06:55:22 -0400 Date: Wed, 29 Sep 2004 06:08:00 -0500 From: Russell Adams To: help-cfengine@gnu.org Message-ID: <20040929110800.GA13088@keroberos> Mail-Followup-To: help-cfengine@gnu.org References: <20040927121354.GA13202@keroberos> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040927121354.GA13202@keroberos> User-Agent: Mutt/1.4.2.1i Subject: Re: Lack of output X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 11:02:20 -0000 Status: O Content-Length: 1922 Lines: 67 Ok, so this gets better. When cfexecd awakens at the top of the hour, I'm getting the following: cfexecd: Lock lock..nmatest1.cfexecd.execd expired...(after 25/0 minutes) Trying to kill expired process, pid 8879 Which doesn't make much sense, and nothing seems to occur. Next, I get the following: cfexecd: Nothing scheduled for cfd.exec (1/5 minutes elapsed) cfexecd: cfexecd: Couldn't get exec lock -- exists or too soon: IfElapsed 5, ExpireAfter 10 For the next few minutes during the Min00_05 window. So it appears I'm having a locking issue. Now my stuff at the bottom of the hour isn't running/logging. ;] Now, my update.conf contains: IfElapsed = ( 0 ) ExpireAfter = ( 10 ) and cfagent.conf contains: IfElapsed = ( 25 ) ExpireAfter = ( 25 ) So I thought my tasks, specifically updates, should trigger at the top and bottom of the hour. Can someone help provide some insight into this one? Russell On Mon, Sep 27, 2004 at 07:13:54AM -0500, Russell Adams wrote: > I've got a strange problem occuring. > > I run 'cfexecd -g' from inittab scheduled to run on the hour, and > 'cfexecd -F' in crontab set to run at thiry minutes after the hour. > > I get proper logs in /var/cfengine/outputs for each invocation of > cfexecd from cron, but all the logs from the child of init are 0 > length files. > > I thought I was only getting this related to updates, but all of my > systems are having the same problem. > > Has anyone else here reproduced this? I'm on cfengine-2.1.0p1. > > Russell > > ----------------------------- > Russell Adams > RLAdams@AdamsInfoServ.com > http://www.adamsinfoserv.com/ > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine ----------------------------- Russell Adams RLAdams@AdamsInfoServ.com http://www.adamsinfoserv.com/ From MAILER-DAEMON Wed Sep 29 07:56:31 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCd4R-0003rZ-4J for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 07:56:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCd4P-0003rK-7M for help-cfengine@gnu.org; Wed, 29 Sep 2004 07:56:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCd4O-0003r4-Ox for help-cfengine@gnu.org; Wed, 29 Sep 2004 07:56:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCd4O-0003r1-M6 for help-cfengine@gnu.org; Wed, 29 Sep 2004 07:56:28 -0400 Received: from [24.213.60.51] (helo=sibelius.chartermi.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CCcxz-0007f1-Js for help-cfengine@gnu.org; Wed, 29 Sep 2004 07:49:51 -0400 Received: from sibelius.chartermi.net (sibelius.chartermi.net [24.213.60.51]) by sibelius.chartermi.net (8.12.8/8.12.8) with ESMTP id i8TBow3w002866; Wed, 29 Sep 2004 07:51:06 -0400 Date: Wed, 29 Sep 2004 07:50:58 -0400 (EDT) From: "Brian E. Seppanen" X-X-Sender: seppanen@sibelius.chartermi.net To: Will Lowe In-Reply-To: <20040927184359.GA5134@thebackrow.net> Message-ID: References: <20040926223853.6865cb8d.hf@spg.tu-darmstadt.de> <20040927184359.GA5134@thebackrow.net> Organization: Charter Communications MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: help-cfengine@gnu.org Subject: Re: cfengine config files location X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 11:56:29 -0000 Status: O Content-Length: 864 Lines: 27 On Mon, 27 Sep 2004, Will Lowe wrote: > > So all the stuff currently in /var/cfengine pretty much > > belongs there (input/output cache/logs and the like), but the master > > configuration belongs in /etc. > > Probably though, if FHS compliance is what you're after, the lock > databases belong in /var/lib/cfengine, the downloaded config files > belong in /var/cache/cfengine ... rather than all in one large > /var/cfengine directory. A somewhat offtopic question. Is the Filesystem Hierarchy Standard applicable to anything other than linux? Will SUN move towards FHS compliance with Solaris? Will a BSD release move towards FHS compliance? It would be nice in my opinion if the Hierarchy was standardized across platforms. Please don't ever make me use /usr/home though :) Thanks, Brian Seppanen seppy@chartermi.net 906-475-0107 ext 1040 From MAILER-DAEMON Wed Sep 29 08:01:13 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCd8y-00064j-V3 for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 08:01:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCd8u-00063Q-PL for help-cfengine@gnu.org; Wed, 29 Sep 2004 08:01:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCd8s-00062J-7g for help-cfengine@gnu.org; Wed, 29 Sep 2004 08:01:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCd8q-00061P-NP for help-cfengine@gnu.org; Wed, 29 Sep 2004 08:01:04 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCd1z-0008Gp-ME for help-cfengine@gnu.org; Wed, 29 Sep 2004 07:54:00 -0400 Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i8TBs3M0029110; Wed, 29 Sep 2004 13:54:07 +0200 (MEST) Message-Id: <200409291154.i8TBs3M0029110@nexus.iu.hio.no> Date: Wed, 29 Sep 2004 13:54:03 +0200 (MEST) From: Mark.Burgess@iu.hio.no To: seppy@chartermi.net In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-SpamAssassin-Score: 0.339 NO_REAL_NAME X-Scanned-By: MIMEDefang 2.41 Cc: harpo@thebackrow.net, help-cfengine@gnu.org Subject: Re: cfengine config files location X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 12:01:10 -0000 Status: O Content-Length: 1677 Lines: 53 There is no filesystem standard, that is why I made the decision to go with /var/cfengine = "WORKDIR" I suggest we drop this discussion. At some future time we can reorganize the files within /var/cfengine, as Kenth Skaar suggested a while ago, but for now I would like to avoid upheavals. Mark On 29 Sep, Brian E. Seppanen wrote: > On Mon, 27 Sep 2004, Will Lowe wrote: > >> > So all the stuff currently in /var/cfengine pretty much >> > belongs there (input/output cache/logs and the like), but the master >> > configuration belongs in /etc. >> >> Probably though, if FHS compliance is what you're after, the lock >> databases belong in /var/lib/cfengine, the downloaded config files >> belong in /var/cache/cfengine ... rather than all in one large >> /var/cfengine directory. > > A somewhat offtopic question. > > Is the Filesystem Hierarchy Standard applicable to anything other than > linux? Will SUN move towards FHS compliance with Solaris? Will a BSD > release move towards FHS compliance? > > It would be nice in my opinion if the Hierarchy was standardized across > platforms. Please don't ever make me use /usr/home though :) > > Thanks, > > Brian Seppanen > seppy@chartermi.net > 906-475-0107 ext 1040 > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Wed Sep 29 10:27:55 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCfQx-00071z-HY for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 10:27:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCfQw-00071c-1S for help-cfengine@gnu.org; Wed, 29 Sep 2004 10:27:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCfQv-00071B-Bo for help-cfengine@gnu.org; Wed, 29 Sep 2004 10:27:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCfQu-000717-Q0 for help-cfengine@gnu.org; Wed, 29 Sep 2004 10:27:52 -0400 Received: from [134.174.9.44] (helo=mail.bwh.harvard.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CCfKB-0007ce-3t for help-cfengine@gnu.org; Wed, 29 Sep 2004 10:20:55 -0400 Received: (qmail 13902 invoked from network); 29 Sep 2004 14:11:37 -0000 Envelope-Sender: tzz@lifelogs.com Envelope-Recipients: architect@webalive.biz, help-cfengine@gnu.org, Received: from asimov.bwh.harvard.edu (HELO asimov) ([134.174.9.63]) (envelope-sender ) by mail.bwh.harvard.edu (qmail-ldap-1.03) with SMTP for ; 29 Sep 2004 14:11:36 -0000 Date: 29 Sep 2004 10:00:57 -0400 Message-ID: <4nd605tbs6.fsf@lifelogs.com> From: "Ted Zlatanov" Mail-Followup-To: "Tim Nelson" , help-cfengine@gnu.org To: "Tim Nelson" References: <200409211606.59982.chip@trdlnk.com> <200409220948.00333.chip@trdlnk.com> <4ny8iuuram.fsf@lifelogs.com> <200409281500.19726.chip@trdlnk.com> X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos X-Hashcash: 1:10:040929:architect@webalive.biz::403b74f62e7501fa:5d3 X-Hashcash: 1:10:040929:help-cfengine@gnu.org::3d05ec03cc088221:e1a In-Reply-To: (Tim Nelson's message of "Wed, 29 Sep 2004 12:18:37 +1000 (EST)") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: help-cfengine@gnu.org Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 14:27:54 -0000 Status: O Content-Length: 1342 Lines: 33 On Wed, 29 Sep 2004, architect@webalive.biz wrote: > Hmm. I think Redhat wants you to use "service httpd start" or > whatever. There are also a variety of other actions, such as reload and > status which could be useful. However, unfortunately, the whole thing is > pretty non-standardised :). If /etc/init.d doesn't work properly in Redhat, that's news to me. I stopped using it (for Debian) when the FC switch happened, and was not aware of a difference. Maybe cfengine can have an option to do "service" commands, but it seems silly if /etc/init.d works just fine. What's next, Redhat will discover daemontools? :) The reason why I only used "start" and "stop" in my example is because those are the only standard options to /etc/init.d scripts AFAIK. If I'm ignorant of any standards in this regard, I would appreciate some pointers. Unix startup/shutdown scripts seem to be stable relative to a SysV hierarchy these days, with almost no pure BSD-style startup/shutdowns, but I'm not aware of a standard. Anyhow, I think cfengine should support /etc/init.d scripts as an option in processes: because that's at least 90% of the Unix systems out there, and it's better to start a process that way (stop; start) than sending a signal directly to the process. The signal handling differs among implementations, for one. Ted From MAILER-DAEMON Wed Sep 29 11:30:29 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCgPV-0003g1-1x for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 11:30:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCgPS-0003fS-N6 for help-cfengine@gnu.org; Wed, 29 Sep 2004 11:30:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCgPR-0003em-N5 for help-cfengine@gnu.org; Wed, 29 Sep 2004 11:30:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCgPR-0003eb-Ij for help-cfengine@gnu.org; Wed, 29 Sep 2004 11:30:25 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCgIn-0001fe-LC for help-cfengine@gnu.org; Wed, 29 Sep 2004 11:23:33 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.10) with ESMTP id i8TFNW1h019756; Wed, 29 Sep 2004 10:23:32 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: help-cfengine@gnu.org Date: Wed, 29 Sep 2004 10:23:32 -0500 User-Agent: KMail/1.5.4 References: <200409271425.03539.chip@trdlnk.com> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200409291023.32692.chip@trdlnk.com> Cc: Subject: Re: cfengine config files location X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 15:30:27 -0000 Status: O Content-Length: 6028 Lines: 170 Heh. I was *wondering* why Tim took the discussion off-list :-) Resending to the list... -- On Monday 27 September 2004 18:41, Tim Nelson wrote: > > In that case, /etc might not be a good choice, since that is generally > > for local configuration. > > Better than /var/cfengine/clients, though :). Indubitably. > > templates, etc all live. I'd be hesitant to put it under /etc if for no > > other reason than it is large and wants its own disk. > > Ok, so you don't like /etc, but I'm not sure that /opt is much > better. I'll cast around a bit more (see below). I agree /opt isn't a good choice. It's 100% proper on Solaris, not so much on Linux. Besides, I have some fundamental moral objections to a Linux package manager putting stuff in /opt, since as an admin I want to reserve that for NFS mounts, large applications, etc. > > None of which are server repositories than. Perhaps /usr/lib (or /usr/ local/ > > lib) if you don't care for /opt? > > > Hmm. Not sure I like either of those. /usr/local is, according > to FHS, supposed to be empty on default installs. Agreed. On Linux, I personally use it for non-packaged software that does not get its own directory.... a big app (say, Sybase) might go in /opt/sybase but a small install that consists of a handful of files (e.g. your typical binary-manpage-config set) I just splay across /usr/local/ {bin,sbin,share,etc,lib}. > The way it gets used by > systems with package managers (or at least RPMs, anyway), is that files > that aren't part of an RPM are supposed to go there (ie. site-specific > files). That way, by backing up /etc and /usr/local and a list of > packages, you should be able to restore the machine to a working state > (oh, and you may also need /home :) ). Good luck getting the machine restorable without /var/lib.... > As for /usr/lib, it just doesn't seem right somehow, although > that's how it's often done. Agreed. Solaris in particular puts random crap all over /usr/lib. It's a very reasonable place for non-executable files that are more or less read-not-written. That being said, on Linux (which has and uses a libexec) /usr/lib is primarily for (gasp!) *libraries*, which makes it an odd place to drop authoritative master configs. > Also, You snipped an important bit from "man hier", under "/etc": > ------------------ > Site-wide configuration files may be placed here or in /usr/etc. > Nevertheless, programs should always look for these files in /etc and you > may have links for these files to /usr/etc. > ------------------ I ignored the hier page because it hasn't been updated in mellenia; I figured the newer FHS stuff superceded it. Hmm. That *is* interesting. And even relevant. That being said, I've never used /usr/etc for *anything*. > ------------------ > /usr/share : Architecture-independent data > ------------------ > > That sounds like it, doesn't it. Except that the binaries are generally copied out along with the configs by update.conf. That, and a lot of cfengine folk probably have decidedly non-arch-independent cf files and (especially) modules... > According to my searches, FHS doesn't mention the words "site" or > "global" in a context that appears like they have considered the kind of > problem we're studying, so I suspect that we're pretty much on our own > here. How would one of the following be: > > /usr/share/etc/cfengine.d <-- my preferred option > /usr/share/cfengine/etc > > Other ideas? Not really. I dislike forcing the arch-independent angle on the admin. That being said, it is still a pretty reasonable approach. If I ran the circus I would probably deposit the configs (inputs) into /usr/ etc (sounds like that is exactly what that dir is for) and executables in / usr/lib. In both cases I would make a subdir called cfengine or cfengine.d. But I don't really like that too much either, so take that as a very lukewarm recommendation. > > >> So all the stuff currently in /var/cfengine pretty much belongs > >> there (input/output cache/logs and the like), but the master configuration > >> belongs in /etc. > > > > I'd interpret the above to mean that the actual config files belong in / etc, > > not the masters that the live configs are copied from. > > Depends on how you want to look at it. The way I'm looking at it, > the ones in /var/cfengine/inputs are "cached" versions, rather than "local > config", because any changes you make locally will get overwritten from > the masters on the next run. I can see that. Disagree, but I can see that. In a client/server scenario, you are either making the copies in the client's /etc irrelevant or adding an extra layer of copying. Or are you envisioning the package as just being for the policy server? > In addition, I personally am going to be generating most of the > "standard" master files from .pt (perl template) files, Ah! The dark secret comes to light! You autogenerate your confs, which makes an extra layer of 'repositoryness' reasonable in your case. > which interweave > cfengine config, documentation, and perl code which generates one of the > other two. I'd naturally love to include this in my proposed scheme :), > but thought it would cause too much uproar and trouble :). Probably wise. Autogenerating cfengine confs is still a bit controversial and not-standardized. > So my idea was: > > - .pt files generate central cfengine config files (only on my > system; others could edit their own cfengine files however they > like). > - Packages that know cfengine install their files in > /usr/share/etc/cfengine.d or wherever (hopefully with different > names than the ones being generated by my .pt files). Cool. > - cf.fileinclude.cfa gets regenerated by looking in > /usr/share/etc/cfengine.d You sure you want to keep both prefix and suffix? > :) Indeed. -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Wed Sep 29 13:50:12 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCiai-0001X1-OW for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 13:50:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCiag-0001VB-81 for help-cfengine@gnu.org; Wed, 29 Sep 2004 13:50:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCiae-0001UI-AT for help-cfengine@gnu.org; Wed, 29 Sep 2004 13:50:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCiad-0001Tz-HK for help-cfengine@gnu.org; Wed, 29 Sep 2004 13:50:07 -0400 Received: from [134.134.136.15] (helo=orsfmr001.jf.intel.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCiUE-00085d-9U for help-cfengine@gnu.org; Wed, 29 Sep 2004 13:43:30 -0400 Received: from talaria.jf.intel.com (talaria.jf.intel.com [10.7.209.7]) by orsfmr001.jf.intel.com (8.12.9-20030918-01/8.12.9/d: major-outer.mc,v 1.15 2004/01/30 18:16:28 root Exp $) with ESMTP id i8THhcVZ007200; Wed, 29 Sep 2004 17:43:39 GMT Received: from nwlxmail02.jf.intel.com (nwlxmail02.jf.intel.com [192.168.74.77]) by talaria.jf.intel.com (8.12.9-20030918-01/8.12.9/d: major-inner.mc,v 1.11 2004/07/29 22:51:53 root Exp $) with ESMTP id i8THZD0A024080; Wed, 29 Sep 2004 17:35:13 GMT Received: from [134.134.155.103] ([134.134.155.103]) by nwlxmail02.jf.intel.com (8.12.10/8.12.9/MailSET/Hub) with ESMTP id i8THhOCB016333; Wed, 29 Sep 2004 10:43:24 -0700 In-Reply-To: <1096435519.2815.66.camel@bourbon.its.uq.edu.au> References: <1096435519.2815.66.camel@bourbon.its.uq.edu.au> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <10F898D8-123F-11D9-8155-000A95C47858@intel.com> Content-Transfer-Encoding: 7bit From: Tod Oace Date: Wed, 29 Sep 2004 10:43:26 -0700 To: les.smith@uq.edu.au X-Mailer: Apple Mail (2.619) X-Scanned-By: MIMEDefang 2.31 (www . roaringpenguin . com / mimedefang) Cc: Cfengine Help Mailing List Subject: Re: Class interpretation X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 17:50:11 -0000 Status: O Content-Length: 247 Lines: 13 On Sep 28, 2004, at 22:25, Leslie Smith wrote: > This example does not work. > > EnsureMinimumPackages = ( {servers|routers|jails}.!hit.!roll ) Doesn't it need to be "(servers|routers|jails)"? -- Tod Oace, Intel Corporation From MAILER-DAEMON Wed Sep 29 14:23:27 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCj6t-00047W-8h for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 14:23:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCj6r-000474-17 for help-cfengine@gnu.org; Wed, 29 Sep 2004 14:23:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCj6q-00046s-K0 for help-cfengine@gnu.org; Wed, 29 Sep 2004 14:23:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCj6q-00046p-Ge for help-cfengine@gnu.org; Wed, 29 Sep 2004 14:23:24 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCj0T-0005Zl-9I for help-cfengine@gnu.org; Wed, 29 Sep 2004 14:16:49 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.10) with ESMTP id i8TIGm1h011680 for ; Wed, 29 Sep 2004 13:16:48 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: help-cfengine@gnu.org Date: Wed, 29 Sep 2004 13:16:47 -0500 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409291316.47854.chip@trdlnk.com> Subject: Editfiles on missing files X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 18:23:25 -0000 Status: O Content-Length: 676 Lines: 22 I've got several situations where I am editing a file, but if it doesn't exist I'm okay with that. To avoid errors, I currently have to do a FileExists() and then use the results of that to control the editfiles block. This is a little tedious and does an extra stat... it would be Really Great if we could have a "MissingOK" option (kinda like the opposite of AutoCreate) that supresses the error message. I tried writing a patch for this but it appears to be more complicated than it looks. Any ambitious folk out there with better C skills than I think this is a good idea? -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Wed Sep 29 15:16:11 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCjvv-0007FY-9L for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 15:16:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCjvu-0007FN-0U for help-cfengine@gnu.org; Wed, 29 Sep 2004 15:16:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCjvt-0007Ey-8E for help-cfengine@gnu.org; Wed, 29 Sep 2004 15:16:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCjvt-0007Ev-5i for help-cfengine@gnu.org; Wed, 29 Sep 2004 15:16:09 -0400 Received: from [199.5.46.20] (helo=usvwoaahs30.abh.vw.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCjp8-0005An-Rz for help-cfengine@gnu.org; Wed, 29 Sep 2004 15:09:11 -0400 Received: by usvwoaahs30.abh.vw.com with Internet Mail Service (5.5.2657.72) id ; Wed, 29 Sep 2004 15:09:03 -0400 Message-ID: <0FBBDCE1D6F6DF49841621D706B7DE3113D05BE4@usvwoaahn02.abh.vw.com> From: "Baker, Darryl" To: "'chip@trdlnk.com'" , help-cfengine@gnu.org Date: Wed, 29 Sep 2004 15:09:02 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C4A657.AC4311FE" Cc: Subject: RE: Editfiles on missing files X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 19:16:10 -0000 Status: O Content-Length: 2625 Lines: 101 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C4A657.AC4311FE Content-Type: text/plain -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I think it is a great idea. I just wish I had the time to write the patch. _____________________________________________________________________ Darryl Baker gedas USA, Inc. Operational Services Business Unit 3800 Hamlin Road Auburn Hills, MI 48326 US phone +1-248-754-5341 fax +1-248-754-6399 Darryl.Baker@gedas.com http://www.gedasusa.com _____________________________________________________________________ > -----Original Message----- > From: help-cfengine-bounces+darryl.baker=gedas.com@gnu.org > [mailto:help-cfengine-bounces+darryl.baker=gedas.com@gnu.org]On > Behalf Of Chip Seraphine > Sent: Wednesday, September 29, 2004 2:17 PM > To: help-cfengine@gnu.org > Subject: Editfiles on missing files > > > > I've got several situations where I am editing a file, but if > it doesn't exist > I'm okay with that. To avoid errors, I currently have to do > a FileExists() > and then use the results of that to control the editfiles > block. This is a > little tedious and does an extra stat... it would be Really > Great if we could > have a "MissingOK" option (kinda like the opposite of > AutoCreate) that > supresses the error message. > > I tried writing a patch for this but it appears to be more > complicated than it > looks. Any ambitious folk out there with better C skills > than I think this > is a good idea? > > -- > > Chip Seraphine > Unix Administrator > TradeLink, LLC > 312-264-2048 > chip@trdlnk.com > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > -----BEGIN PGP SIGNATURE----- Version: PGP Personal Security 7.0.3 iQA/AwUBQVsIU1e1Bhkj9lZeEQLNnACgvRUfWg6EAMTPc4F5sxX6ORT9gSsAnRkB apkaWdG2c7mEoS6WIiycrZGC =qiiu -----END PGP SIGNATURE----- ------_=_NextPart_000_01C4A657.AC4311FE Content-Type: application/octet-stream; name="Baker, Darryl.vcf" Content-Disposition: attachment; filename="Baker, Darryl.vcf" BEGIN:VCARD VERSION:2.1 N:Baker;Darryl FN:Baker, Darryl ORG:gedas;gedas -CCCN TITLE:Unix Systems Administrator ADR;WORK:;2w029;3800 Hamlin Road;Auburn Hills;MI;48326;USA LABEL;WORK;ENCODING=QUOTED-PRINTABLE:2w029=0D=0A3800 Hamlin Road=0D=0AAuburn Hills, MI 48326=0D=0AUSA EMAIL;PREF;INTERNET:Darryl.Baker@gedas.com REV:20030625T202649Z END:VCARD ------_=_NextPart_000_01C4A657.AC4311FE-- From MAILER-DAEMON Wed Sep 29 16:47:38 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CClMP-0005Tl-Rx for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 16:47:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CClMN-0005Tg-Jy for help-cfengine@gnu.org; Wed, 29 Sep 2004 16:47:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CClMN-0005TU-5s for help-cfengine@gnu.org; Wed, 29 Sep 2004 16:47:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CClMM-0005TR-Tn for help-cfengine@gnu.org; Wed, 29 Sep 2004 16:47:35 -0400 Received: from [66.119.41.19] (helo=csiadmx0.office.comscore.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CClFY-0003Iz-Ko for help-cfengine@gnu.org; Wed, 29 Sep 2004 16:40:33 -0400 Received: from csiadmail01.office.comscore.com ([10.100.1.116]) by csiadmx0.office.comscore.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 29 Sep 2004 16:29:58 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 29 Sep 2004 16:40:28 -0400 Message-ID: <66E9FEE99E96034ABB4DE197A927DBF101CC23F3@csiadmail01.office.comscore.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SPAM] - Editfiles on missing files - Bayesian Filter detected spam Thread-Index: AcSmUIxHDFK06G/ARvy9BDGu2dqeCAAE1ddQ From: "Nielsen, Steve" To: X-OriginalArrivalTime: 29 Sep 2004 20:29:58.0453 (UTC) FILETIME=[169C4650:01C4A663] Subject: how to tell the difference between "redhat" and "fedora" distributions X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 20:47:35 -0000 Status: O Content-Length: 718 Lines: 32 I want to be able to tell the difference between a real redhat = distribution: redhat 7.3 redhat enterprise .... and Fedora (I know its really from redhat). Currently, I am on Fedora Core 2 and both "redhat" and "fedora" are = defined (as well as "fedora_2"). There does not appear to be a = distribution flavor variable defined where I can easily discern between = redhat and fedora. I know I can do the following: fedora:: i_am_fedora =3D ( yes ) redhat.!fedora:: i_am_redhat =3D ( yes ) but that is clunky. Is there a better way? Or can we add a = "distribution" or flavor special variable or defined class? I want to be able to say (minus the clunkiness): fedora:: .... redhat:: .... Thanks, Steve From MAILER-DAEMON Wed Sep 29 19:25:34 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCnpF-0001W0-Pd for mharc-help-cfengine@gnu.org; Wed, 29 Sep 2004 19:25:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCnpC-0001Rs-IK for help-cfengine@gnu.org; Wed, 29 Sep 2004 19:25:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCnpB-0001Qt-CB for help-cfengine@gnu.org; Wed, 29 Sep 2004 19:25:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCnpB-0001Qf-6o for help-cfengine@gnu.org; Wed, 29 Sep 2004 19:25:29 -0400 Received: from [130.102.148.128] (helo=mailhub1.uq.edu.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCniO-000342-BY for help-cfengine@gnu.org; Wed, 29 Sep 2004 19:18:28 -0400 Received: from smtp2.uq.edu.au (smtp2.uq.edu.au [130.102.5.53]) by mailhub1.uq.edu.au (8.12.11/8.12.11) with ESMTP id i8TNIPpU050826 for ; Thu, 30 Sep 2004 09:18:25 +1000 (EST) Received: from [130.102.153.96] (bourbon.its.uq.edu.au [130.102.153.96]) by smtp2.uq.edu.au (8.12.10/8.12.10) with ESMTP id i8TNIP1U011369 for ; Thu, 30 Sep 2004 09:18:25 +1000 (EST) From: Leslie Smith To: Cfengine Help Mailing List In-Reply-To: <200409290816.i8T8Gh3b011285@nexus.iu.hio.no> References: <200409290816.i8T8Gh3b011285@nexus.iu.hio.no> Content-Type: text/plain Organization: ITS Message-Id: <1096499905.2805.8.camel@bourbon.its.uq.edu.au> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 30 Sep 2004 09:18:25 +1000 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.43 on UQ Mailhub Subject: Re: Class interpretation X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: les.smith@uq.edu.au List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 23:25:30 -0000 Status: O Content-Length: 1054 Lines: 45 When i try, it gives the error: Quoted scripts must begin with / for absolute path Les Using 2.1.10 and 2.1.11a4 On Wed, 2004-09-29 at 18:16, Mark.Burgess@iu.hio.no wrote: > You could try quoting these. > M > > On 29 Sep, Leslie Smith wrote: > > If i have a class that has brackets to determine the order of execution, > > then strange things happen. > > > > Seems to evaluate the servers|routers and jails.!hit > > > > instead of > > > > {servers|routers|jails} and !hit and !roll > > > > > > This example works. > > > > ServerRouterJailGp = ( servers|routers|jails ) > > EnsureMinimumPackages = ( ServerRouterJailGp.!hit.!roll ) > > > > > > This example does not work. > > > > EnsureMinimumPackages = ( {servers|routers|jails}.!hit.!roll ) > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Work: +47 22453272 Email: Mark.Burgess@iu.hio.no > Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > From MAILER-DAEMON Thu Sep 30 00:01:38 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCs8Q-00068k-3k for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 00:01:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCs8O-00066a-2R for help-cfengine@gnu.org; Thu, 30 Sep 2004 00:01:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCs8M-000651-9g for help-cfengine@gnu.org; Thu, 30 Sep 2004 00:01:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCs8L-00064l-O9 for help-cfengine@gnu.org; Thu, 30 Sep 2004 00:01:33 -0400 Received: from [216.148.227.85] (helo=rwcrmhc12.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCs1K-00080y-3O for help-cfengine@gnu.org; Wed, 29 Sep 2004 23:54:18 -0400 Received: from [172.20.1.10] (c-24-16-18-226.client.comcast.net[24.16.18.226]) by comcast.net (rwcrmhc12) with ESMTP id <2004093003541501400b7kcue> (Authid: kacoroski); Thu, 30 Sep 2004 03:54:16 +0000 Message-ID: <415B8514.3000501@nsd.org> Date: Wed, 29 Sep 2004 21:01:24 -0700 From: Chris Kacoroski User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040912) X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-cfengine@gnu.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Way to have cfengine not run when not on company network X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 04:01:36 -0000 Status: O Content-Length: 454 Lines: 15 Hi, I have cfengine running on several laptops. When these machines are taken home and plugged into home DSL lines, cfengine runs and they attempt to contact the server which fails. I then get error messages of all the failures. Any ideas on how to either (1) turn off the error messages when the machine is not on the company network or (2) have cfengine not connect to the server if it is not on the company internal network. cheers, ski From MAILER-DAEMON Thu Sep 30 02:10:08 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCu8m-0006kl-SJ for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 02:10:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCu8l-0006ke-Vp for help-cfengine@gnu.org; Thu, 30 Sep 2004 02:10:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCu8k-0006ju-Ju for help-cfengine@gnu.org; Thu, 30 Sep 2004 02:10:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCu8k-0006jg-Cz for help-cfengine@gnu.org; Thu, 30 Sep 2004 02:10:06 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1CCu25-0008KK-M9 for help-cfengine@gnu.org; Thu, 30 Sep 2004 02:03:13 -0400 Received: (qmail 998 invoked from network); 30 Sep 2004 06:02:55 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 30 Sep 2004 06:02:55 -0000 Date: Thu, 30 Sep 2004 16:02:52 +1000 (EST) From: Tim Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: Pau Capdevila/Upcnet In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: help-cfengine@gnu.org Subject: Re: Implementing an update system X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 06:10:08 -0000 Status: O Content-Length: 2170 Lines: 74 On Wed, 29 Sep 2004, Pau Capdevila/Upcnet wrote: > Hi, > > I'm building an update system based on cfengine. > > By the moment I have a working base configuration. Now I've started with > cfagent scripts and so on. > I've been studying the documentation and mailing list post for some time > so I only (?) lack a bit of practice. > I'm not totally used to it yet and by now my administration skills are > rather immature but I achieve with more or less effort my goals. > > However I find some disadvantages: > > Too many "shellcommands": I find myself bloating the "shellcommands" > actionset with lots of things that I could do in an external script. > Action sequence: Some changes require an order in the execution. You can > define an order between "actions" but cannot control If you want to > execute some other action beetween two > shellcommands. You need more information on actionsequence: ------------------- control: actionsequence = ( copy.first editfiles copy.second ) copy: first:: ...... second:: ...... editfiles: any:: ...... ------------------- "copy" gets run twice. First time around, the class "first" is defined (just for that run). The second time around, the class "second" is defined (just for that run). > Debugging: I find extremely difficult to (I know that system > administration is not easy) evaluate if all my actions have been carried > successfully. > Then I can't increment the version number that I try to > keep in order to know wich changes have been applied to every machine. You can receive more information by putting on the -vv option, but I'm not sure that's what you want. Can you give us an example of this? > Home directive: Can I use It to rename (disable)? or I must write a > script. Can you give an example of this too? I'm not sure what you're getting at. :) -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Thu Sep 30 02:23:07 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCuLL-0000k6-5a for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 02:23:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCuLJ-0000jr-Cx for help-cfengine@gnu.org; Thu, 30 Sep 2004 02:23:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCuLI-0000jU-KG for help-cfengine@gnu.org; Thu, 30 Sep 2004 02:23:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCuLI-0000jR-HS for help-cfengine@gnu.org; Thu, 30 Sep 2004 02:23:04 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1CCuEc-0001nC-O0 for help-cfengine@gnu.org; Thu, 30 Sep 2004 02:16:10 -0400 Received: (qmail 6123 invoked from network); 30 Sep 2004 06:15:54 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 30 Sep 2004 06:15:54 -0000 Date: Thu, 30 Sep 2004 16:15:54 +1000 (EST) From: Tim Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: Russell Adams In-Reply-To: <20040929110800.GA13088@keroberos> Message-ID: References: <20040927121354.GA13202@keroberos> <20040929110800.GA13088@keroberos> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: help-cfengine@gnu.org Subject: Re: Lack of output X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 06:23:05 -0000 Status: O Content-Length: 1631 Lines: 51 > On Mon, Sep 27, 2004 at 07:13:54AM -0500, Russell Adams wrote: >> I've got a strange problem occuring. >> >> I run 'cfexecd -g' from inittab scheduled to run on the hour, and >> 'cfexecd -F' in crontab set to run at thiry minutes after the hour. Hmm. I don't have a -g on my cfexecd man page, and I'm using 2.1.0 p1 like you. I'm not sure what you mean about the inittab bit, but here's what I suggest: use one of the following, but *not both*: - Use cron to run cfagent (not cfexecd) - Run cfexecd from your init scripts, and don't run it from cron (this is the recommended option) Why? Because cfexecd lives in memory and runs cfagent every x amount. Now you're wondering why anyone would write the mini-cron-replacement called cfexecd, and the answer is that it's more flexible in cfengine-specific circumstances (I think :) ). Anyway, you also want your cfagent.conf (or a subfile) to have something like the following: schedule = ( Min00_05 Min30_35 ) >> I get proper logs in /var/cfengine/outputs for each invocation of >> cfexecd from cron, but all the logs from the child of init are 0 >> length files. >> >> I thought I was only getting this related to updates, but all of my >> systems are having the same problem. >> >> Has anyone else here reproduced this? I'm on cfengine-2.1.0p1. Does what I said help? -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Thu Sep 30 02:54:37 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CCupp-0003kI-CY for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 02:54:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCupn-0003kC-Ge for help-cfengine@gnu.org; Thu, 30 Sep 2004 02:54:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCupn-0003k0-1Y for help-cfengine@gnu.org; Thu, 30 Sep 2004 02:54:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCupm-0003jx-T3 for help-cfengine@gnu.org; Thu, 30 Sep 2004 02:54:34 -0400 Received: from [69.93.211.26] (helo=throat.webalive.biz) by monty-python.gnu.org with smtp (Exim 4.34) id 1CCuiy-0006TG-P5 for help-cfengine@gnu.org; Thu, 30 Sep 2004 02:47:32 -0400 Received: (qmail 18222 invoked from network); 30 Sep 2004 06:47:16 -0000 Received: from unknown (HELO ?192.168.0.119?) (202.52.38.244) by 0 with SMTP; 30 Sep 2004 06:47:16 -0000 Date: Thu, 30 Sep 2004 16:47:16 +1000 (EST) From: Tim Nelson X-X-Sender: tnelson@tnelson.webalive.biz To: Ted Zlatanov In-Reply-To: <4nd605tbs6.fsf@lifelogs.com> Message-ID: References: <200409211606.59982.chip@trdlnk.com> <200409220948.00333.chip@trdlnk.com> <4ny8iuuram.fsf@lifelogs.com> <200409281500.19726.chip@trdlnk.com> <4nd605tbs6.fsf@lifelogs.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: help-cfengine@gnu.org Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 06:54:35 -0000 Status: O Content-Length: 2783 Lines: 90 On Thu, 29 Sep 2004, Ted Zlatanov wrote: > On Wed, 29 Sep 2004, architect@webalive.biz wrote: > >> Hmm. I think Redhat wants you to use "service httpd start" or >> whatever. There are also a variety of other actions, such as reload and >> status which could be useful. However, unfortunately, the whole thing is >> pretty non-standardised :). > > If /etc/init.d doesn't work properly in Redhat, that's news to me. It does. In retrospect, I made a stupid comment :). > I stopped using it (for Debian) when the FC switch happened, and was > not aware of a difference. > > Maybe cfengine can have an option to do "service" commands, but it > seems silly if /etc/init.d works just fine. What's next, Redhat > will discover daemontools? :) > > The reason why I only used "start" and "stop" in my example is > because those are the only standard options to /etc/init.d scripts > AFAIK. > > If I'm ignorant of any standards in this regard, I would appreciate > some pointers. Unix startup/shutdown scripts seem to be stable > relative to a SysV hierarchy these days, with almost no pure > BSD-style startup/shutdowns, but I'm not aware of a standard. There is now: http://refspecs.freestandards.org/LSB_2.0.0/LSB-Core/LSB-Core/iniscrptact.html It doesn't specify a lot. On the other hand, if you want to know what the generally accepted standards are, get a machine with as much installed as possible, and do things like this: $ ls /etc/init.d/* | wc 121 121 2353 $ egrep -h '^[ A-Za-z]+\)' /etc/init.d/* | perl -ne 'if(s/^\s*([A-Za-z]+)\).*/$1/){print} 106 stop 104 status 104 start 95 condrestart 47 restart 32 reload 3 save 3 probe 3 panic 1 top 1 redebug 1 propagate 1 nis 1 flush 1 files 1 debug 1 deactivate 1 configtest 1 check 1 activate 1 abort ...as we can see, status is as standard as start. restart (usually stop + start) and reload (usually something like killall -HUP) are also fairly popular. After that, you get a variety of exciting options, but unfortunately none of them are standard. > Anyhow, I think cfengine should support /etc/init.d scripts as an > option in processes: because that's at least 90% of the Unix systems > out there, and it's better to start a process that way (stop; start) > than sending a signal directly to the process. The signal handling > differs among implementations, for one. I agree :). -- Tim Nelson Server Administrator WebAlive Technologies Global Level 1 Innovation Building, Digital Harbour 1010 LaTrobe Street Docklands, Melbourne, Vic, 3008 Phone: +61 3 9934 0812 Fax: +61 3 9934 0899 E-mail: tim.nelson@webalive.biz http://www.webalive.biz/ From MAILER-DAEMON Thu Sep 30 09:52:21 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD1M5-0000Dt-88 for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 09:52:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD1M2-0000D7-Q1 for help-cfengine@gnu.org; Thu, 30 Sep 2004 09:52:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD1M1-0000Cj-TD for help-cfengine@gnu.org; Thu, 30 Sep 2004 09:52:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD1M1-0000CH-Pi for help-cfengine@gnu.org; Thu, 30 Sep 2004 09:52:17 -0400 Received: from [130.64.1.66] (helo=gravel.usg.tufts.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CD1FG-00011H-Fy for help-cfengine@gnu.org; Thu, 30 Sep 2004 09:45:18 -0400 Received: from juniper by gravel.usg.tufts.edu with local (Exim 4.20) id 1CD1FF-00057O-ev; Thu, 30 Sep 2004 09:45:17 -0400 Date: Thu, 30 Sep 2004 09:45:17 -0400 From: Anne Cross To: Chris Kacoroski Message-ID: <20040930134517.GB18111@usg.tufts.edu> Mail-Followup-To: Chris Kacoroski , help-cfengine@gnu.org References: <415B8514.3000501@nsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <415B8514.3000501@nsd.org> User-Agent: Mutt/1.4.2.1i Cc: help-cfengine@gnu.org Subject: Re: Way to have cfengine not run when not on company network X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 13:52:19 -0000 Status: O Content-Length: 1125 Lines: 27 On Wed, Sep 29, 2004 at 09:01:24PM -0700, Chris Kacoroski wrote: > I have cfengine running on several laptops. When these machines are > taken home and plugged into home DSL lines, cfengine runs and they > attempt to contact the server which fails. I then get error messages of > all the failures. Any ideas on how to either (1) turn off the error > messages when the machine is not on the company network or (2) have > cfengine not connect to the server if it is not on the company internal > network. Assuming your network has a standard address space that the DSL lines don't share, maybe have your config only actually do anything when the IP is your company's IP? I'm assuming the laptops have DHCP, which may be incorrect, but if they do, their IPs will presumably change from company network to private network, and if the config has an actionsequence only when the IP is in a certain netblock, that ought to solve things. -- Anne Anne Cross Systems Administrator, Tufts University "Change has become a constant; managing it has become an expanding discipline." -- Queen Elizabeth II of England From MAILER-DAEMON Thu Sep 30 11:26:53 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD2pZ-0003cf-GP for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 11:26:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD2pY-0003bz-2E for help-cfengine@gnu.org; Thu, 30 Sep 2004 11:26:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD2pW-0003Zw-GE for help-cfengine@gnu.org; Thu, 30 Sep 2004 11:26:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD2pW-0003Z9-AO for help-cfengine@gnu.org; Thu, 30 Sep 2004 11:26:50 -0400 Received: from [204.245.156.2] (helo=core.zot.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CD2j6-0000RC-25 for help-cfengine@gnu.org; Thu, 30 Sep 2004 11:20:12 -0400 Received: from localhost (IDENT:503@localhost [127.0.0.1]) by core.zot.com (8.12.11/8.12.11) with ESMTP id i8UEXMoo019163 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 30 Sep 2004 10:33:22 -0400 Date: Thu, 30 Sep 2004 10:33:22 -0400 (EDT) From: Chris Edillon To: help-cfengine@gnu.org In-Reply-To: <20040930134517.GB18111@usg.tufts.edu> Message-ID: References: <415B8514.3000501@nsd.org> <20040930134517.GB18111@usg.tufts.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: Way to have cfengine not run when not on company network X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 15:26:52 -0000 Status: O Content-Length: 1296 Lines: 28 On Thu, 30 Sep 2004, Anne Cross wrote: > On Wed, Sep 29, 2004 at 09:01:24PM -0700, Chris Kacoroski wrote: > > > I have cfengine running on several laptops. When these machines are > > taken home and plugged into home DSL lines, cfengine runs and they > > attempt to contact the server which fails. I then get error messages of > > all the failures. Any ideas on how to either (1) turn off the error > > messages when the machine is not on the company network or (2) have > > cfengine not connect to the server if it is not on the company internal > > network. > > Assuming your network has a standard address space that the DSL lines > don't share, maybe have your config only actually do anything when the > IP is your company's IP? > > I'm assuming the laptops have DHCP, which may be incorrect, but if > they do, their IPs will presumably change from company network to > private network, and if the config has an actionsequence only when the > IP is in a certain netblock, that ought to solve things. > a good idea. if this won't work for you for some reason, you could also use an external module which tries to ping the server, and if it gets a response set a "server_available" class or some such. then you write your copy stanzas so they only run when server_available is true. From MAILER-DAEMON Thu Sep 30 11:28:13 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD2qq-0004H9-TB for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 11:28:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD2qo-0004Gk-Lr for help-cfengine@gnu.org; Thu, 30 Sep 2004 11:28:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD2qn-0004GB-Or for help-cfengine@gnu.org; Thu, 30 Sep 2004 11:28:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD2qn-0004G8-Mg for help-cfengine@gnu.org; Thu, 30 Sep 2004 11:28:09 -0400 Received: from [162.121.247.12] (helo=KS119IS01SMTP2.ksnet.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD2kH-0000bP-Ne for help-cfengine@gnu.org; Thu, 30 Sep 2004 11:21:26 -0400 Received: from soja.ksnet.com ([129.100.4.19]) by KS119IS01SMTP2.ksnet.com with InterScan Messaging Security Suite; Thu, 30 Sep 2004 10:21:19 -0500 Received: by soja.ksnet.com (sSMTP sendmail emulation); Thu, 30 Sep 2004 10:21:17 -0500 Date: Thu, 30 Sep 2004 10:21:17 -0500 From: Russell Adams To: help-cfengine@gnu.org Message-ID: <20040930152116.GE15960@soja.ksnet.com.> Mail-Followup-To: help-cfengine@gnu.org References: <20040929110800.GA13088@keroberos> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-imss-version: 2.5 X-imss-result: Passed X-imss-scores: Clean:25.42902 C:17 M:5 S:5 R:5 X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000) Subject: Re: Lack of output X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 15:28:10 -0000 Status: O Content-Length: 2420 Lines: 77 I run 'cfexecd -g' from init, and 'cfexecd -F' in cron. My understanding for running cfexecd instead of just running cfagent is that cfexecd handles the logging and mailing the admin. Options: --help (-h) --debug (-d) --verbose (-v) --file (-f) --no-fork (-F) --once (-1) --foreground (-g) --parse-only (-p) --ld-library-path (-L) Russell On Thu, Sep 30, 2004 at 04:15:54PM +1000, Tim Nelson wrote: > >On Mon, Sep 27, 2004 at 07:13:54AM -0500, Russell Adams wrote: > >>I've got a strange problem occuring. > >> > >>I run 'cfexecd -g' from inittab scheduled to run on the hour, and > >>'cfexecd -F' in crontab set to run at thiry minutes after the hour. > > Hmm. I don't have a -g on my cfexecd man page, and I'm using > 2.1.0 p1 like you. > > I'm not sure what you mean about the inittab bit, but here's what > I suggest: use one of the following, but *not both*: > - Use cron to run cfagent (not cfexecd) > - Run cfexecd from your init scripts, and don't run it from cron > (this is the recommended option) > > Why? Because cfexecd lives in memory and runs cfagent every x > amount. Now you're wondering why anyone would write the > mini-cron-replacement called cfexecd, and the answer is that it's more > flexible in cfengine-specific circumstances (I think :) ). > > Anyway, you also want your cfagent.conf (or a subfile) to have > something like the following: > > schedule = ( Min00_05 Min30_35 ) > > >>I get proper logs in /var/cfengine/outputs for each invocation of > >>cfexecd from cron, but all the logs from the child of init are 0 > >>length files. > >> > >>I thought I was only getting this related to updates, but all of my > >>systems are having the same problem. > >> > >>Has anyone else here reproduced this? I'm on cfengine-2.1.0p1. > > Does what I said help? > > > -- > Tim Nelson > Server Administrator > WebAlive Technologies Global > Level 1 Innovation Building, Digital Harbour > 1010 LaTrobe Street > Docklands, Melbourne, > Vic, 3008 > Phone: +61 3 9934 0812 > Fax: +61 3 9934 0899 > E-mail: tim.nelson@webalive.biz > http://www.webalive.biz/ > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine From MAILER-DAEMON Thu Sep 30 11:59:18 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD3Kv-0003ja-Q2 for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 11:59:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD3Kt-0003iS-3I for help-cfengine@gnu.org; Thu, 30 Sep 2004 11:59:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD3Kq-0003hb-M4 for help-cfengine@gnu.org; Thu, 30 Sep 2004 11:59:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD3Kp-0003gp-WF for help-cfengine@gnu.org; Thu, 30 Sep 2004 11:59:12 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD3Dq-00062m-N8 for help-cfengine@gnu.org; Thu, 30 Sep 2004 11:51:59 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.10) with ESMTP id i8UFps1h029435 for ; Thu, 30 Sep 2004 10:51:54 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: help-cfengine@gnu.org Date: Thu, 30 Sep 2004 10:51:54 -0500 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409301051.54460.chip@trdlnk.com> Subject: Turning off update via cmdline switch X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 15:59:15 -0000 Status: O Content-Length: 388 Lines: 18 Is there a switch to suppress running update.conf (kinda like how -x supresses running cf.preconf)? I could swear I remembered one, but the "cfagent -h" output doesn't say so. The man page seems to only have a subset of the switches in the help message, so no dice there either. Or am I crazy? -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Thu Sep 30 12:36:16 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD3rz-0004cL-R8 for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 12:33:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD3rm-0004bC-QS for help-cfengine@gnu.org; Thu, 30 Sep 2004 12:33:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD3q2-0004Ci-SG for help-cfengine@gnu.org; Thu, 30 Sep 2004 12:31:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD3pz-0004By-AN for help-cfengine@gnu.org; Thu, 30 Sep 2004 12:31:23 -0400 Received: from [129.99.134.123] (helo=sun601.nas.nasa.gov) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD3jM-00033u-BD for help-cfengine@gnu.org; Thu, 30 Sep 2004 12:24:32 -0400 Received: from sun601.nas.nasa.gov (localhost [127.0.0.1]) by sun601.nas.nasa.gov (8.12.10+Sun/8.12.10/NAS-6n) with ESMTP id i8UGOO3C017377; Thu, 30 Sep 2004 09:24:24 -0700 (PDT) Received: (from imorgan@localhost) by sun601.nas.nasa.gov (8.12.10+Sun/8.12.10/Submit) id i8UGOOOm017375; Thu, 30 Sep 2004 09:24:24 -0700 (PDT) From: Iain Morgan Message-Id: <200409301624.i8UGOOOm017375@sun601.nas.nasa.gov> To: ckacoroski@nsd.org (Chris Kacoroski) Date: Thu, 30 Sep 2004 09:24:24 -0700 (PDT) In-Reply-To: <415B8514.3000501@nsd.org> from "Chris Kacoroski" at Sep 29, 2004 09:01:24 PM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: help-cfengine@gnu.org Subject: Re: Way to have cfengine not run when not on company network X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 16:33:18 -0000 Status: O Content-Length: 778 Lines: 26 On Wed Sep 29 21:01:24 2004, Chris Kacoroski wrote: > > Hi, > > I have cfengine running on several laptops. When these machines are > taken home and plugged into home DSL lines, cfengine runs and they > attempt to contact the server which fails. I then get error messages of > all the failures. Any ideas on how to either (1) turn off the error > messages when the machine is not on the company network or (2) have > cfengine not connect to the server if it is not on the company internal > network. > > cheers, > > ski > We address this issue by defining a class when the laptop is in one of the IP address blocks we deal with. All copy stanzas rely upon that class being defined. It's a little annoying but it works. -- Iain Morgan NAS Desktop Support Group From MAILER-DAEMON Thu Sep 30 13:03:22 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD4Kw-0004Fm-5J for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 13:03:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD4Ku-0004En-2B for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:03:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD4Ks-0004EG-T3 for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:03:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD4Ks-0004EC-QH for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:03:18 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD4EC-0008CH-4A for help-cfengine@gnu.org; Thu, 30 Sep 2004 12:56:24 -0400 Received: from nexus.iu.hio.no (localhost [IPv6:::1]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i8UGuZTi024070; Thu, 30 Sep 2004 18:56:36 +0200 (MEST) Received: (from mark@localhost) by nexus.iu.hio.no (8.13.0/8.13.0/Submit) id i8UGuZeY024069; Thu, 30 Sep 2004 18:56:35 +0200 (CEST) Date: Thu, 30 Sep 2004 18:56:35 +0200 From: Mark Burgess To: Chip Seraphine Message-ID: <20040930165635.GA24058@nexus.iu.hio.no> References: <200409301051.54460.chip@trdlnk.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409301051.54460.chip@trdlnk.com> User-Agent: Mutt/1.4.2i X-SpamAssassin-Score: 0 X-Scanned-By: MIMEDefang 2.41 Cc: help-cfengine@gnu.org Subject: Re: Turning off update via cmdline switch X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 17:03:20 -0000 Status: O Content-Length: 1017 Lines: 43 You're crazy! :) You can do cfagent -f cfengine.conf if you want to avoid update.conf M On Thu, Sep 30, 2004 at 10:51:54AM -0500, Chip Seraphine wrote: > > Is there a switch to suppress running update.conf (kinda like how -x supresses > running cf.preconf)? I could swear I remembered one, but the "cfagent -h" > output doesn't say so. The man page seems to only have a subset of the > switches in the help message, so no dice there either. > > Or am I crazy? > > -- > > Chip Seraphine > Unix Administrator > TradeLink, LLC > 312-264-2048 > chip@trdlnk.com > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Thu Sep 30 13:06:55 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD4ON-00067G-4l for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 13:06:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD4OJ-00066c-Uc for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:06:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD4OI-00065u-OD for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:06:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD4OI-00065r-JI for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:06:50 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD4Hk-0000b6-3k for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:00:04 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.10) with ESMTP id i8UH031h007831; Thu, 30 Sep 2004 12:00:03 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: Mark Burgess Date: Thu, 30 Sep 2004 12:00:02 -0500 User-Agent: KMail/1.5.4 References: <200409301051.54460.chip@trdlnk.com> <20040930165635.GA24058@nexus.iu.hio.no> In-Reply-To: <20040930165635.GA24058@nexus.iu.hio.no> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409301200.02726.chip@trdlnk.com> Cc: help-cfengine@gnu.org Subject: Re: Turning off update via cmdline switch X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 17:06:52 -0000 Status: O Content-Length: 1303 Lines: 59 Doh! Maybe that's what I was remembering.... :-) Thanks! On Thursday 30 September 2004 11:56, Mark Burgess wrote: > You're crazy! :) > > You can do > > cfagent -f cfengine.conf > > if you want to avoid update.conf > M > > On Thu, Sep 30, 2004 at 10:51:54AM -0500, Chip Seraphine wrote: > > > > Is there a switch to suppress running update.conf (kinda like how -x supresses > > running cf.preconf)? I could swear I remembered one, but the "cfagent -h" > > output doesn't say so. The man page seems to only have a subset of the > > switches in the help message, so no dice there either. > > > > Or am I crazy? > > > > -- > > > > Chip Seraphine > > Unix Administrator > > TradeLink, LLC > > 312-264-2048 > > chip@trdlnk.com > > > > > > > > _______________________________________________ > > Help-cfengine mailing list > > Help-cfengine@gnu.org > > http://lists.gnu.org/mailman/listinfo/help-cfengine > > -- > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Work: +47 22453272 Email: Mark.Burgess@iu.hio.no > Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Thu Sep 30 13:20:27 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD4bT-0001DC-Di for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 13:20:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD4bR-0001AG-9X for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:20:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD4bP-00018h-MY for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:20:23 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD4bP-000184-E9 for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:20:23 -0400 Received: from [128.135.11.3] (helo=belmont) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD4Uu-0003As-31 for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:13:40 -0400 Received: by belmont (Postfix, from userid 10650) id E5893F40D4; Thu, 30 Sep 2004 12:13:38 -0500 (CDT) Date: Thu, 30 Sep 2004 12:13:38 -0500 From: Brendan Strejcek To: help-cfengine@gnu.org Message-ID: <20040930171338.GG22743@belmont.cs.uchicago.edu> References: <1095721716.6764.24.camel@denk.nakedape.priv> <200409210611.i8L6Axa5023964@nexus.iu.hio.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409210611.i8L6Axa5023964@nexus.iu.hio.no> User-Agent: Mutt/1.5.6+20040818i Subject: cf_lastseen.db [was: List of monitored files?] X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 17:20:26 -0000 Status: O Content-Length: 2783 Lines: 68 On a related note, I have been loving the friendstatus stuff. There was a useful thread a while back about getting crunchable data out of cf_lastseen.db. What I want is a nice command line utility that can print and edit this db. To be able, for example, to manually expire some hosts rather than wait for a week (and continue to get warnings). I tried to write this with perl tie, but the berkeley db versions did not seem to get along or something. Any perl gurus out there have any insight? I'm sure the perl script would be only a few lines long and imensely useful. I wrote a simple C program which does the printing part of what I want but it's really ugly. I would much prefer just messing with hashes. Or is there some obvious reason why perl tie can't be used to interact with the databases cfengine creates? Oh, and it would be nice if there was an option to make the FriendStatus() alerts function do name resolution. Because getting an email with a list of IP addresses requires me to manually resolve all of them and then ignore most of the warnings (that is a dhcp address so I don't care, that is a machine that got rebuilt yesterday so I don't care, that is a machine that is not supposed to be running cfengine because someone else is testing some new software on it, etc, etc). Seeing the host names in the alert would make that more obvious. Mark.Burgess@iu.hio.no wrote: > > You can use dbdump, but you won't make much sense of the checksums. > Perhaps it would be useful to make a small utility to dump this in > text format? I could add it to 2.1.11 if you like? > > cfdigestdump > > or something > M > > On 20 Sep, Wil Cooley wrote: > > > > I'm guessing one of the databases in /var/cfengine contains the list of > > files and directories controlled with cfengine, along with checksums > > (for files conf'd with that type of check), timestamps, etc. Is there > > (an easy) way to extract this data into something awk-able? > > > > I'm working with a managed hosting provider who's maintaining Tripwire > > on a customer's systems and it would be very convenient if I could get > > at this data with one swell foop instead of reviewing every one of my cf > > config files. > > > > I'm guessing a little Perl/Python could do it, if I knew what the > > database structures were... > > > > Wil > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Work: +47 22453272 Email: Mark.Burgess@iu.hio.no > Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine > From MAILER-DAEMON Thu Sep 30 13:54:45 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD58e-00020u-U1 for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 13:54:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD58c-00020M-Ca for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:54:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD58b-000202-Nv for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:54:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD58b-0001zs-La for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:54:41 -0400 Received: from [208.252.163.7] (helo=trdlnk.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD51Y-0000dy-WE for help-cfengine@gnu.org; Thu, 30 Sep 2004 13:47:25 -0400 Received: from mulva (mulva [10.10.1.45]) by trdlnk.com (8.12.10+Sun/8.12.10) with ESMTP id i8UHlO1h013516 for ; Thu, 30 Sep 2004 12:47:24 -0500 (CDT) From: Chip Seraphine Organization: Tradelink LLC To: help-cfengine@gnu.org Date: Thu, 30 Sep 2004 12:47:23 -0500 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409301247.23404.chip@trdlnk.com> Subject: Iteration with method params doesn't seem to be happening X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chip@trdlnk.com List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 17:54:42 -0000 Status: O Content-Length: 2728 Lines: 93 I'm finding different iteration behavior depending on wether or not a list was defined locally or passed in as a parameter. (Since the methods: stuff itself does not iterate, this is a Big Problem as it means there might be no way of iterating while using a method, which is a rather crippling problem!). Is there some kind of nifty namespace stuff I should be doing to work around this? Here's my calling file: # cfagent.conf control: actionsequence = ( methods shellcommands ) string = ( "word1:word2:word3" ) Split= ( ":" ) methods: SimpleMethod( ${string} ) action=cf.simple returnvars=null returnclasses=null server=localhost shellcommands: "/bin/echo mothership printing ${string}" ....and here is my function definition: control: MethodName = ( SimpleMethod ) MethodParameters = ( foo ) actionsequence = ( shellcommands ) foo_local = ( "foo2a:foo2b:foo2c" ) Split= ( ":" ) shellcommands: "/bin/echo method printing parameter $(foo)" "/bin/echo foo_local is $(foo_local)" alerts: ReturnVariables(void) ReturnClasses(void) When I run it, I am expecting to see both $(foo) and $(foo_local) iterated over; instead, only the local variable is. The calling file does successfully iterate $(foo)'s parent string, however. Here's what it looks like: cfengine::SimpleMethod: cfengine::/bin/echo metho: method printing parameter word1:word2:word3 cfengine::SimpleMethod: cfengine::/bin/echo foo_l: foo_local is foo2a cfengine::SimpleMethod: cfengine::/bin/echo foo_l: foo_local is foo2b cfengine::SimpleMethod: cfengine::/bin/echo foo_l: foo_local is foo2c cfengine::/bin/echo mothe: mothership printing word1 cfengine::/bin/echo mothe: mothership printing word2 cfengine::/bin/echo mothe: mothership printing word3 In another test, I tried assigning the parameter to a local variable and iterating over *that*, but it failed. Almost as if the parameter-ness of the value somehow stuck.... Concatenating the parameter value as a wierd result, too. If I do this: MethodParameters = ( foo ) bar = ( "cow:${foo}" ) ...and run it with the above goodies, I get this: cfengine::SimpleMethod: cfengine::/bin/echo metho: method printing parameter foo_local cow cfengine::SimpleMethod: cfengine::/bin/echo metho: method printing parameter foo_local word1:word2:word3 It seems to recognize the first colon as a delimiter, but not those lurking within ${foo}. I suspect I could get it to work by doing cheesy/gratuitous string manipulation within an ExecResult or something, but that is just ugly. Thoughts? -- Chip Seraphine Unix Administrator TradeLink, LLC 312-264-2048 chip@trdlnk.com From MAILER-DAEMON Thu Sep 30 15:08:24 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD6Hw-0002fO-Nb for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 15:08:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD6Hu-0002e3-VH for help-cfengine@gnu.org; Thu, 30 Sep 2004 15:08:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD6Hu-0002dY-FU for help-cfengine@gnu.org; Thu, 30 Sep 2004 15:08:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD6Hu-0002dU-DR for help-cfengine@gnu.org; Thu, 30 Sep 2004 15:08:22 -0400 Received: from [134.174.9.44] (helo=mail.bwh.harvard.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CD6B8-0003NE-Aw for help-cfengine@gnu.org; Thu, 30 Sep 2004 15:01:22 -0400 Received: (qmail 9128 invoked from network); 30 Sep 2004 18:52:01 -0000 Envelope-Sender: tzz@lifelogs.com Envelope-Recipients: architect@webalive.biz, help-cfengine@gnu.org, Received: from asimov.bwh.harvard.edu (HELO asimov) ([134.174.9.63]) (envelope-sender ) by mail.bwh.harvard.edu (qmail-ldap-1.03) with SMTP for ; 30 Sep 2004 18:52:01 -0000 Date: 30 Sep 2004 14:41:19 -0400 Message-ID: <4nk6ubob00.fsf@lifelogs.com> From: "Ted Zlatanov" Mail-Followup-To: "Tim Nelson" , help-cfengine@gnu.org To: "Tim Nelson" References: <200409211606.59982.chip@trdlnk.com> <200409220948.00333.chip@trdlnk.com> <4ny8iuuram.fsf@lifelogs.com> <200409281500.19726.chip@trdlnk.com> <4nd605tbs6.fsf@lifelogs.com> X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos X-Hashcash: 1:10:040930:architect@webalive.biz::a3e463dfb69f7d29:c69 X-Hashcash: 1:10:040930:help-cfengine@gnu.org::a473761df5398ccf:6d6 In-Reply-To: (Tim Nelson's message of "Thu, 30 Sep 2004 16:47:16 +1000 (EST)") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: help-cfengine@gnu.org Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 19:08:23 -0000 Status: O Content-Length: 2028 Lines: 57 On Thu, 30 Sep 2004, architect@webalive.biz wrote: On Thu, 29 Sep 2004, Ted Zlatanov wrote: >> The reason why I only used "start" and "stop" in my example is >> because those are the only standard options to /etc/init.d scripts >> AFAIK. >> >> If I'm ignorant of any standards in this regard, I would appreciate >> some pointers. Unix startup/shutdown scripts seem to be stable >> relative to a SysV hierarchy these days, with almost no pure >> BSD-style startup/shutdowns, but I'm not aware of a standard. > > There is now: > > http://refspecs.freestandards.org/LSB_2.0.0/LSB-Core/LSB-Core/iniscrptact.html > > It doesn't specify a lot. On the other hand, if you want to know > what the generally accepted standards are, get a machine with as much > installed as possible, and do things like this: > $ egrep -h '^[ A-Za-z]+\)' /etc/init.d/* | perl -ne 'if(s/^\s*([A-Za-z]+)\).*/$1/){print} > 106 stop > 104 status > 104 start > ...as we can see, status is as standard as start. restart > (usually stop + start) and reload (usually something like > killall -HUP) are also fairly popular. After that, you get a variety of > exciting options, but unfortunately none of them are standard. This, and the link you provided, are only valid for Linux, unfortunately (I wish Solaris was a bit more modern in this regard, but then again it has a lot of inertia). Solaris: cat /etc/init.d/* | grep stop | wc 152 743 4278 cat /etc/init.d/* | grep start | wc 212 1222 7444 cat /etc/init.d/* | grep status | wc 16 89 573 I didn't refine the grep like you did, since obviously there's an order of magnitude difference (most of the 'status' was from 3rd party software, not Solaris stock startup scripts). I would guess other Unices are just as bad. Anyhow, Mark, is there any chance that cfengine will support startup/shutdown scripts as an option to processes: entries or are we just running our mouths? So far 3 people have expressed interest in the feature. Ted From MAILER-DAEMON Thu Sep 30 16:18:04 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD7NM-0000y8-1t for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 16:18:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD7NG-0000vn-Tk for help-cfengine@gnu.org; Thu, 30 Sep 2004 16:17:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD7ND-0000te-37 for help-cfengine@gnu.org; Thu, 30 Sep 2004 16:17:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD7NC-0000sP-OR for help-cfengine@gnu.org; Thu, 30 Sep 2004 16:17:54 -0400 Received: from [128.39.89.10] (helo=nexus.iu.hio.no) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD7FY-0005UA-Uz for help-cfengine@gnu.org; Thu, 30 Sep 2004 16:10:01 -0400 Received: from nexus.iu.hio.no (localhost [IPv6:::1]) by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i8UKAEl3008314; Thu, 30 Sep 2004 22:10:14 +0200 (MEST) Received: (from mark@localhost) by nexus.iu.hio.no (8.13.0/8.13.0/Submit) id i8UKAExu008313; Thu, 30 Sep 2004 22:10:14 +0200 (CEST) Date: Thu, 30 Sep 2004 22:10:14 +0200 From: Mark Burgess To: Tim Nelson , help-cfengine@gnu.org Message-ID: <20040930201014.GC7504@nexus.iu.hio.no> References: <200409211606.59982.chip@trdlnk.com> <200409220948.00333.chip@trdlnk.com> <4ny8iuuram.fsf@lifelogs.com> <200409281500.19726.chip@trdlnk.com> <4nd605tbs6.fsf@lifelogs.com> <4nk6ubob00.fsf@lifelogs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4nk6ubob00.fsf@lifelogs.com> User-Agent: Mutt/1.4.2i X-SpamAssassin-Score: 0 X-Scanned-By: MIMEDefang 2.41 Cc: Subject: Re: Killed wrong proc! X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 20:18:00 -0000 Status: O Content-Length: 698 Lines: 20 > > Anyhow, Mark, is there any chance that cfengine will support > startup/shutdown scripts as an option to processes: entries or are > we just running our mouths? So far 3 people have expressed > interest in the feature. Seems like a good idea, except that I have often seen problems with these scripts hanging on descriptors. Nothing that a little docs cannot fix. No promises for 2.1.11, but definitely a good idea. M ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work: +47 22453272 Email: Mark.Burgess@iu.hio.no Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From MAILER-DAEMON Thu Sep 30 16:56:54 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD7yw-0002Sw-HA for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 16:56:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD7yv-0002Rr-0Q for help-cfengine@gnu.org; Thu, 30 Sep 2004 16:56:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD7yu-0002RX-AZ for help-cfengine@gnu.org; Thu, 30 Sep 2004 16:56:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD7yu-0002RG-7r for help-cfengine@gnu.org; Thu, 30 Sep 2004 16:56:52 -0400 Received: from [216.146.93.140] (helo=mail1.eb.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD7sQ-0003le-I7 for help-cfengine@gnu.org; Thu, 30 Sep 2004 16:50:10 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Thu, 30 Sep 2004 15:50:04 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Lack of output Thread-Index: AcSmtRlyThYrZTgcRWiqhGIfZj1kjgAeSPFA From: "Wheeler, John" To: "Tim Nelson" , "Russell Adams" Cc: help-cfengine@gnu.org Subject: RE: Lack of output X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 20:56:53 -0000 Status: O Content-Length: 829 Lines: 21 > I'm not sure what you mean about the inittab bit, but here's what > I suggest: use one of the following, but *not both*: > - Use cron to run cfagent (not cfexecd) > - Run cfexecd from your init scripts, and don't run it from cron > (this is the recommended option) >=20 I actually run cfagent in both init and cron. The cfexecd run from init does nothing but ensure that the appropriate line in cron exists, and that cron is running. The cfexecd run from cron does all the work. I chose this after being disappointed with lockups (though infrequent) in cfagent for what ever reason. If I had stuff scheduled, and cfagent was locked up, the next interval would not happen, preventing many of my cron replacement jobs from running. Now all my cron type jobs run out of cfagent run from the cron invocation.=20 Get it 8-) From MAILER-DAEMON Thu Sep 30 17:08:26 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD8A6-0005RK-8K for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 17:08:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD8A3-0005QV-57 for help-cfengine@gnu.org; Thu, 30 Sep 2004 17:08:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD8A2-0005QF-N0 for help-cfengine@gnu.org; Thu, 30 Sep 2004 17:08:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD8A2-0005Q1-Fl for help-cfengine@gnu.org; Thu, 30 Sep 2004 17:08:22 -0400 Received: from [216.146.93.140] (helo=mail1.eb.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD83W-0005fo-O9 for help-cfengine@gnu.org; Thu, 30 Sep 2004 17:01:38 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Thu, 30 Sep 2004 16:01:32 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: files actions Thread-Index: AcSlrT9KfoI8VPJxQo+6S0/P1sDmFQBgxiGA From: "Wheeler, John" To: "David E. Nelson" , "Ed Brown" Cc: help-cfengine@gnu.org Subject: RE: files actions X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 21:08:23 -0000 Status: O Content-Length: 399 Lines: 26 >=20 > Hi Ed, >=20 > Just thought of something. How about: >=20 > groups: >=20 > SystemExists =3D ( FileExists(/etc/system) ) >=20 > control: >=20 > actionsequence =3D ( files ) or action =3D ( touch ) SystemExists:: action =3D ( fixplain ) >=20 > files: >=20 > /etc/system > owner=3Droot > group=3Dother > mode=3D0644 > action=3D${action} From MAILER-DAEMON Thu Sep 30 17:13:30 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD8F0-0006O5-Ek for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 17:13:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD8Ey-0006Ns-KX for help-cfengine@gnu.org; Thu, 30 Sep 2004 17:13:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD8Ex-0006NT-Tb for help-cfengine@gnu.org; Thu, 30 Sep 2004 17:13:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD8Ex-0006NQ-Rh for help-cfengine@gnu.org; Thu, 30 Sep 2004 17:13:27 -0400 Received: from [162.121.247.12] (helo=KS119IS01SMTP2.ksnet.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD88T-0006Rh-8c for help-cfengine@gnu.org; Thu, 30 Sep 2004 17:06:45 -0400 Received: from soja.ksnet.com ([129.100.4.19]) by KS119IS01SMTP2.ksnet.com with InterScan Messaging Security Suite; Thu, 30 Sep 2004 16:06:44 -0500 Received: by soja.ksnet.com (sSMTP sendmail emulation); Thu, 30 Sep 2004 16:06:40 -0500 Date: Thu, 30 Sep 2004 16:06:40 -0500 From: Russell Adams To: help-cfengine@gnu.org Message-ID: <20040930210640.GN15960@soja.ksnet.com.> Mail-Followup-To: help-cfengine@gnu.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-imss-version: 2.5 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:17 M:4 S:5 R:5 X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000) Subject: Re: Lack of output X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 21:13:28 -0000 Status: O Content-Length: 1329 Lines: 37 So, in order to differentiate the tasks, are you using schedule+timeclasses to make cfexecd only check the cron configuration? Then in cron, you're calling cfagent directly instead of cfexecd? Care to share your crontab entry? Russell On Thu, Sep 30, 2004 at 03:50:04PM -0500, Wheeler, John wrote: > > I'm not sure what you mean about the inittab bit, but here's > what > > I suggest: use one of the following, but *not both*: > > - Use cron to run cfagent (not cfexecd) > > - Run cfexecd from your init scripts, and don't run it from cron > > (this is the recommended option) > > > I actually run cfagent in both init and cron. The cfexecd run from init > does nothing but ensure that the appropriate line in cron exists, and > that cron is running. The cfexecd run from cron does all the work. I > chose this after being disappointed with lockups (though infrequent) in > cfagent for what ever reason. > > If I had stuff scheduled, and cfagent was locked up, the next interval > would not happen, preventing many of my cron replacement jobs from > running. Now all my cron type jobs run out of cfagent run from the cron > invocation. > > Get it 8-) > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine From MAILER-DAEMON Thu Sep 30 17:51:56 2004 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CD8qC-00015m-Op for mharc-help-cfengine@gnu.org; Thu, 30 Sep 2004 17:51:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD8qB-00015a-GF for help-cfengine@gnu.org; Thu, 30 Sep 2004 17:51:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD8qB-00015O-2p for help-cfengine@gnu.org; Thu, 30 Sep 2004 17:51:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD8qA-00015L-WC for help-cfengine@gnu.org; Thu, 30 Sep 2004 17:51:55 -0400 Received: from [216.146.93.140] (helo=mail1.eb.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD8jR-0004Ma-6S for help-cfengine@gnu.org; Thu, 30 Sep 2004 17:44:57 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Date: Thu, 30 Sep 2004 16:44:45 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Lack of output Thread-Index: AcSnMXiTPa5msybWR2qoPjnA4p2+KgAAyVDA From: "Wheeler, John" To: "Russell Adams" , Cc: Subject: RE: Lack of output X-BeenThere: help-cfengine@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for GNU cfengine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 21:51:55 -0000 Status: O Content-Length: 2006 Lines: 67 >=20 > So, in order to differentiate the tasks, are you using > schedule+timeclasses to > make cfexecd only check the cron configuration? cfexecd run from cron runs cfagent immediately (well... with some splay). >=20 > Then in cron, you're calling cfagent directly instead of cfexecd? cfexecd. >=20 > Care to share your crontab entry? 0 * * * * FROMCRON=3Dtrue;export FROMCRON;/usr/local/sbin/cfexecd -F I have another script to determine if cfagent was invoked via the cfexecd from init (I check to see if cfagnet's parent is cfexecd then if its parent is pid 1). This allows me to further run another cfagent at anytime without stomping on either the init or cron cfagent. >=20 > Russell >=20 > On Thu, Sep 30, 2004 at 03:50:04PM -0500, Wheeler, John wrote: > > > I'm not sure what you mean about the inittab bit, but here's > > what > > > I suggest: use one of the following, but *not both*: > > > - Use cron to run cfagent (not cfexecd) > > > - Run cfexecd from your init scripts, and don't run it from cron > > > (this is the recommended option) > > > > > I actually run cfagent in both init and cron. The cfexecd run from init > > does nothing but ensure that the appropriate line in cron exists, and > > that cron is running. The cfexecd run from cron does all the work. I > > chose this after being disappointed with lockups (though infrequent) in > > cfagent for what ever reason. > > > > If I had stuff scheduled, and cfagent was locked up, the next interval > > would not happen, preventing many of my cron replacement jobs from > > running. Now all my cron type jobs run out of cfagent run from the cron > > invocation. > > > > Get it 8-) > > > > > > _______________________________________________ > > Help-cfengine mailing list > > Help-cfengine@gnu.org > > http://lists.gnu.org/mailman/listinfo/help-cfengine >=20 >=20 > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine