Hello.
I'm try to understand cfengine (manuals already read, but not fully
understand)
I'm create file:
cf-server:/var/cfengine/inputs# cat app_pkg_lamp.cf
body common control
{
bundlesequence => { "app_apache", "app_mysql", "app_php" };
inputs => {
"cfengine_stdlib.cf",
"app_apache.cf",
"app_mysql.cf",
"app_php.cf"
};
}
app_apache.cf like this:
cf-server:/var/cfengine/inputs# cat app_apache.cf
bundle agent app_apache
{
vars:
SuSE::
"match_package" slist => {
"apache2",
"apache2-prefork"
};
redhat|centos::
"match_package" slist => {
"httpd",
"mod_ssl"
};
debian|ubuntu::
"match_package" slist => {
"apache2",
"apache2-mpm-prefork"
};
packages:
"$(match_package)"
package_policy => "add",
package_method => generic;
processes:
"httpd" -> "start_apache",
restart_class => "start_webserver",
comment => "Make sure the webserver is running";
commands:
start_webserver::
"/etc/init.d/apache2 start",
handle => "start_apache",
comment => "Activate the webserver";
files:
}
What file i need change to add possibility to run cf-runagent --hail
test-server -D xxx -s xxxx to run app_pkg_lamp sequence?
(I'm ready to read rtfm or other internet docs if you send me link about
it)
Thank You.
--
Vasiliy G Tolstov <[email protected]>
Selfip.Ru
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine