Re: need help with restart_class; the example from the manual does not work (3.0.5p1)

2010-09-08 Thread Seva Gluschenko
At the moment, there's no bug to report about. You're tryin' too early. To discard promise lock, use -K option (cf-agent -K). It's in FAQ, BTW. 2010/9/9 Aleksey Tsalolikhin : > Here is what cf-agent -v tells me: > > cf3 Observe process table with /bin/ps auxw > cf3  XX Nothing promised here [lock.

Re: need help with restart_class; the example from the manual does not work (3.0.5p1)

2010-09-08 Thread Aleksey Tsalolikhin
Here is what cf-agent -v tells me: cf3 Observe process table with /bin/ps auxw cf3 XX Nothing promised here [lock.check_ntpd_running.proces] (0/1 minutes elapsed) cf3 I appreciate your suggestion to use process_select (thank you), but I'd like to make this example work - it's in the reference ma

Re: need help with restart_class; the example from the manual does not work (3.0.5p1)

2010-09-08 Thread Seva Gluschenko
Aleksey, running cf-agent in verbose mode (cf-agent -v) can make you known of reasons your process promise was erroneously matched. Also, take a look at process_select compound body to implement better matching. 2010/9/9 Aleksey Tsalolikhin : > Reference:   > http://www.cfengine.org/manuals/cf3-r

need help with restart_class; the example from the manual does not work (3.0.5p1)

2010-09-08 Thread Aleksey Tsalolikhin
Reference: http://www.cfengine.org/manuals/cf3-reference.html#restart_005fclass-in-processes Example - ntpd is down, cf-agent should start it. It does not. [r...@localhost inputs]# /etc/init.d/ntpd status ntpd is stopped [r...@localhost inputs]# ps auwx|grep ntpd root 11788 0.0 0.0 399

Cfengine Help: Cfengine syntax highlighting using Pygments

2010-09-08 Thread no-reply
Forum: Cfengine Help Subject: Cfengine syntax highlighting using Pygments Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,18139,18139#msg-18139 Hi, I have written a cfengine lexer for Pygments, a very nice and very popular open-source syntax-highlighting program. It behaves

Re: Executing a script to define a global variable

2010-09-08 Thread Mike Svoboda
Disregard. Execresult is the function I’m looking for. Thanks On 9/8/10 2:06 PM, "Mike Svoboda" wrote: The machines I’m executing cf-agent on have multiple NICs online. I can’t trust $(sys.ipv4) to return the “correct” address. I can use $(sys.ipv4[interface_name]) to find the correct add

Executing a script to define a global variable

2010-09-08 Thread Mike Svoboda
The machines I’m executing cf-agent on have multiple NICs online. I can’t trust $(sys.ipv4) to return the “correct” address. I can use $(sys.ipv4[interface_name]) to find the correct address, but with Solaris using different names for the NIC based upon the driver, this becomes messy. I’ve be

Cfengine Help: Re: Questions about the reference manual

2010-09-08 Thread no-reply
Forum: Cfengine Help Subject: Re: Questions about the reference manual Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18107,18136#msg-18136 1. depth_search => urecurse("inf"); 2. 3. body depth_search urecurse(d) 4. { 5. depth => "${d}"; 6. exclude_dirs => { "\.svn", "\.

Cfengine Help: Interactive key trust no permenant

2010-09-08 Thread no-reply
Forum: Cfengine Help Subject: Interactive key trust no permenant Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18135,18135#msg-18135 # cf-runagent -iIH arcdev01 WARNING - You do not have a public key from host arcdev01 = 10.129.148.11 Do you want to accept one

Cfengine Help: Re: Questions about the reference manual

2010-09-08 Thread no-reply
Forum: Cfengine Help Subject: Re: Questions about the reference manual Author: mwlarsen Link to topic: https://cfengine.com/forum/read.php?3,18107,18134#msg-18134 Thanks for your reply, Diego. I'm having trouble with this explanation and was hoping you could break it down a little more. zzambon

Cfengine Help: Re: execresult will look for binaries even though bundle is not included

2010-09-08 Thread no-reply
Forum: Cfengine Help Subject: Re: execresult will look for binaries even though bundle is not included Author: filbranden Link to topic: https://cfengine.com/forum/read.php?3,18117,18133#msg-18133 Hi guys, Thanks for the explanations. Yes, evaluating the variables in bundles that are not includ

Cfengine Help: Re: Questions about the reference manual

2010-09-08 Thread no-reply
Forum: Cfengine Help Subject: Re: Questions about the reference manual Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18107,18132#msg-18132 The toughest thing for me about learning Cfengine was to accept that it is not a scripting or programming language. You do not con

Re: Pushing new strings into an existing slist

2010-09-08 Thread Trond Hasle Amundsen
Mark Burgess writes: > Sorry, Trond. This is not a convergent expression (infinite loop). You need > to use a > different variable to compose the result. > > vars: >any:: > "evil_files" slist => { @(other_list) }; >redhat:: > "evil_files" slist => { @(other_list), "/root/.rhos

Cfengine Help: Re: Questions about the reference manual

2010-09-08 Thread no-reply
Forum: Cfengine Help Subject: Re: Questions about the reference manual Author: mwlarsen Link to topic: https://cfengine.com/forum/read.php?3,18107,18129#msg-18129 neilhwatson Wrote: --- > A promise is not procedural. It is a general > statement

Re: Pushing new strings into an existing slist

2010-09-08 Thread Mark Burgess
Sorry, Trond. This is not a convergent expression (infinite loop). You need to use a different variable to compose the result. vars: any:: "evil_files" slist => { @(other_list) }; redhat:: "evil_files" slist => { @(other_list), "/root/.rhosts", "/root/.shosts" }; This is conver

Pushing new strings into an existing slist

2010-09-08 Thread Trond Hasle Amundsen
Hi, Do you know if it's possible to extend an slist with additional values based on classes? Something along the lines of vars: any:: "evil_files" slist => { "/etc/hosts.equiv" }; redhat:: "evil_files" slist => { @(evil_files), "/root/.rhosts", "/root/.shosts" }; The above code does

Cfengine Help: Re: Cfengine Help: Re: cf-monitord memory usage

2010-09-08 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: cf-monitord memory usage Author: Igor Link to topic: https://cfengine.com/forum/read.php?3,18108,18127#msg-18127 one and two: freebsd 7.1-p11 i386 last two: freebsd 7.2-p7 i386 I can kill processe by kill -3. Note, that i dont use cf-monitord

Cfengine Help: Re: cfruncommand not really working

2010-09-08 Thread no-reply
Forum: Cfengine Help Subject: Re: cfruncommand not really working Author: gurkensalat Link to topic: https://cfengine.com/forum/read.php?3,18087,18126#msg-18126 okay, thanks a lot guys! I will try your suggestions. ___ Help-cfengine mailing list Help-cf

Cfengine Help: Re: Cfengine Help: Re: Best way to gracefully stop cfengine daemons?

2010-09-08 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Best way to gracefully stop cfengine daemons? Author: Nicolas Charles Link to topic: https://cfengine.com/forum/read.php?3,18070,18125#msg-18125 Hi, Which version of Cfengine are you using ? I used to have from time to time encryption error wh