Cfengine Help: Re: cfengine-3; controlling Redhat/CentOS "chkconfig"

2011-02-28 Thread no-reply
Forum: Cfengine Help Subject: Re: cfengine-3; controlling Redhat/CentOS "chkconfig" Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,20843,20857#msg-20857 Nova has services type promises. http://www.cfengine.org/manuals/cf3-reference.html#services-in-agent-pro

Re: Cfengine Help: Re: cfengine-3; controlling Redhat/CentOS "chkconfig"

2011-02-28 Thread David Lee
no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: cfengine-3; controlling Redhat/CentOS "chkconfig" > Author: neilhwatson > Link to topic: https://cfengine.com/forum/read.php?3,20843,20845#msg-20845 > >vars: > unxxhd01::

Cfengine Help: Re: cfengine-3; controlling Redhat/CentOS "chkconfig"

2011-02-25 Thread no-reply
Forum: Cfengine Help Subject: Re: cfengine-3; controlling Redhat/CentOS "chkconfig" Author: Authority Link to topic: https://cfengine.com/forum/read.php?3,20843,20847#msg-20847 Personally I use a combination of classes promises, fileexists to test for the existence of the resultant s

Cfengine Help: Re: cfengine-3; controlling Redhat/CentOS "chkconfig"

2011-02-25 Thread no-reply
Forum: Cfengine Help Subject: Re: cfengine-3; controlling Redhat/CentOS "chkconfig" Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,20843,20845#msg-20845 vars: unxxhd01:: "services" slist => { &quo

Re: cfengine-3; controlling Redhat/CentOS "chkconfig"

2011-02-25 Thread Natxo Asenjo
On Fri, Feb 25, 2011 at 7:00 PM, David Lee wrote: > Executive summary: how best can cfengine-3 be used to control various > "chkconfig XXX {on|off}" things in Redhat/CentOS? in cfengine2 (I know, I know) we use the ReturnsZero function. classes: redhat:: # if this does not return 0 t

Re: cfengine-3; controlling Redhat/CentOS "chkconfig"

2011-02-25 Thread Frans Lawaetz
David, The community library has functions for handling switching services on and off. Here's an example. vars: "enabled_services" slist => { "sendmail", "snmpd", "sshd", "syslog", "sysstat", "xinetd", "ypbind" }; methods: "any" usebundle => enable_xinetd("$(