Re: Need help creating class within an OS context

2011-05-20 Thread dave first
; > > classes: > >"ok_to_check" expression => isexecutable("$(check_service)"); > > ok_to_check:: > > "CheckMysql" expression => returnszero("$(check_service)"); > > > > > On 05/20/2011 11:11 PM, dave first wrot

Need help creating class within an OS context

2011-05-20 Thread dave first
Hey Folks, One of our engineers wrote a promise a while back to create a class in promises.cf given the outcome of an expression... classes: "CheckMysql" expression => returnszero("/bin/test -x /usr/local/libexec/tenant/check_tenant -a ! -x /usr/local/libexec/tenant/check_mysql","useshell"); Th

Re: Cfengine Help: Re: Newbie Needs help with regular expression

2011-05-02 Thread dave first
Thanks, Neil, that explains it. dave - dave e. baker On Mon, May 2, 2011 at 7:42 AM, wrote: > Forum: Cfengine Help > Subject: Re: Newbie Needs help with regular expression > Author: neilhwatson > Link to topic: https://cfengine.com/forum/read.php?3,21706,21724#msg-21724 > > So

Re: Cfengine Help: Re: Newbie Needs help with regular expression

2011-05-02 Thread dave first
Thanks, Neil! But I'm still having problems. What is replace_last() in your example? Do you have this define in a custom.cf ?? Here's what I get: Undeclared promise body "replace_last()" was referenced in a promise No such FnCall "replace_last()" in promise @ ./cfagent.testservice.conf near lin

Newbie Needs help with regular expression

2011-04-29 Thread dave first
Hello, I am new to Cfengine and am having trouble with regular expressions. For example, I want to modify a line in a file from, ifconfig_lm2="up" to ifconfig_lm2="up mtu 9000" I actually tried just deleting and inserting a new line, but the line ends up at the bottom of the file, and that's