Hi Guys,
I'm currently fidling with CFengine 3 and run into some errors.
This is the output which is generated
cf3 -> Negated Classes = { }
cf3 Initiate variable convergence...
cf3 Initiate control variable convergence...
cf3 !!! No bundlesequence in the common control body
cf3 -> Inputs are valid
This is the the file which im running cf-promises -f on
body common control
{
linux::
bundlesequence => {
ntpclient
};
}
#######################################################
bundle agent ntpclient
{
vars:
"ntp1" string => "0.nl.pool.ntp.org";
"ntp2" string => "1.nl.pool.ntp.org";
"ntp3" string => "2.nl.pool.ntp.org";
"ntp4" string => "3.nl.pool.ntp.org";
classes:
"ntp_servers" -> { "${ntp1}", "${ntp2}", "${ntp3}", "${ntp4}" };
files:
!ntp_servers::
"/etc/ntp.conf"
edit_line =>
AppendIfNoLine("server ${ntp1}", "server ${ntp2}", "server
${ntp3}", "server ${ntp4}");
}
bundle edit_line AppendIfNoLine(a,b,c,d){
insert_lines:
"${a}" location => "append";
"${b}" location => "append";
"${c}" location => "append";
"${d}" location => "append";
}
body location append {
before_after => "after";
}
What am I doing wrong here, and ofcourse what todo to fix these errors.
Regards,
Patrick de Ruiter
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine