CFEngine 很棒,但我不知道如何将策略服务器上定义的模板复制到相关主机。
例如,我正在寻找部署一个 nginx.conf,我在我的主服务器上制定了一个策略:
bundle agent loadbalancers{
files:
ubuntu::
"/etc/nginx/nginx.conf"
create => "true",
edit_template => "/tmp/nginx.conf.template",
template_method => "mustache",
template_data => parsejson('
{
"worker_processes": "auto",
"worker_rlimit_nofile": 32768,
"worker_connections": 16384,
}
');
}
但不知不觉中,CFEngine 在所有其他客户端上都找不到 /tmp/nginx.conf.template ......
看起来模板没有从服务器复制到客户端,我错过了什么?我想我想念什么……
文档没有解释如何传播模板文件,所以我希望你能帮助我,谢谢!