Hello guys, The following bundle cause iteration problems. Could anybody advise how to rewrite it to omit them?
######################################################## bundle agent system_startup(service) { vars: centos:: "status" string => execresult("/sbin/chkconfig --list $(service)", "noshell"); classes: centos:: "on" expression => regcmp(".*3:on.*","$(status)"); commands: !on.centos:: "/sbin/chkconfig $(service) on", comment => "Make sure the service will be spawned upon the system startup"; reports: !on.centos:: "$(service) added to the system startup"; } ######################################################## -- SY, Seva Gluschenko. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine