CFEngine is great but I can't figure out how to copy the templates defined on the policy servers to the related hosts.
For example, I'm looking to deploy an nginx.conf, I made a policy on my main server:
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,
}
');
}
But obliviously, CFEngine can't find /tmp/nginx.conf.template on all others clients...
It looks like templates are not copied from the server to the clients, what I missed? I guess I miss understood something...
Documentation doesn't explain how to propagate template files, so I hope you could help me, thanks!