linux - CFengine 将主体 "control"重新定义为 "common"是一个违背 promise 的行为

标签 linux cfengine

我已经安装了 cfengine 3 enterprise 进行测试。然而,当我去运行测试 promise 时,我收到一个错误,说

将 body “控制”重新定义为“普通”是一个违背的 promise

下面是代码,有什么想法吗?

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 将主体 "control"重新定义为 "common"是一个违背 promise 的行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11940321/

相关文章:

windows - Windows 的配置管理

linux - 测试使用 VFIO 的用户空间驱动程序?

linux - 使用 bash 脚本格式化 csv 中的日期列

linux - Linux 上物理内存 0x8000 (32Kb) 到 0x10000 (1Mb) 是什么

linux - CFEngine 上的主机组

linux - ExecShellResult 不喜欢我的管道

configuration-management - Cfengine 与 Chef

svn - 帮我论证为什么系统构建工具不应该自动执行 SVN checkin

c - setlocale() 的默认值是什么意思?

linux - Vim 保存文件时的行为有所不同