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
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::
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
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
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
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("$(