我已经安装了 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";
}