gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 04:22:26 25 4
gpt4 key购买 nike

我已经安装了 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com