Controlling CentOS services with CFEngine can be done with the following policy.
groups:
linux.ROLE_MysqlServer::
mysql_enabled = ( ReturnsZero("/sbin/chkconfig --level 3 mysqld") )
processes:
linux.ROLE_MysqlServer::
"mysqld" restart "/sbin/service mysqld restart"
shellcommands
linux.ROLE_MysqlServer.(!mysql_enabled)::
"/sbin/chkconfig mysqld on"