我已经安装了cfengine 3企业版进行测试。但是,当我去运行一个测试承诺时,我会得到一个错误,说
将身体“控制”重新定义为“共同”是违背诺言的
下面是代码,有什么想法吗?
body common control
{
bundlesequence =>{ "edit_motd"};
}
bundle agent edit_motd
{
vars:
"motd" string => "/etc/motd";
files:
"$(motd)"
create => "true",
edit_line => addmessage;
reports:
cfengine::
"Hello world!";
}
bundle edit_line addmessage
{
insert_lines:
"This system is managed by CFEngine 3";
}
最佳答案
只需在通用控件中添加host_licenses_paid,您就可以了:
body common control
{
bundlesequence =>{ "edit_motd"};
host_licenses_paid => "25";
}
但是,错误消息与我从安装中获得的消息有所不同。你能检查以上是否有效吗?
关于linux - CFengine将车身“控制”重新定义为“通用”是不兑现的 promise ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11940321/