我已经安装了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";
}
答案 0 :(得分:0)
只需在常用控件中添加host_licenses_paid即可,您应该没问题:
body common control
{
bundlesequence =>{ "edit_motd"};
host_licenses_paid => "25";
}
但是,错误消息与我的安装有点不同。你能检查一下是否有效吗?
答案 1 :(得分:0)
你能否展示一下你用来运行这段代码的命令,以及你得到的完整输出?
我认为最可能的原因是awsiv提到的:你从其他已包含“body common control”的其他文件中包含此文件,因此出现错误消息。