I am still unable to copy a file from the policy hub to a remote server. Im
trying to simply send an emacs configuration to every server in my env.
Here is my promise so far:
body common control
{
bundlesequence => { "emacs3" };
version => "1.0";
inputs => { "cfengine_stdlib.cf" };
}
bundle agent emacs3
{
files:
"/home/user/.emacs"
perms => system,
copy_from =>
secure_cp("/var/cfengine/masterfiles/dotfiles/.emacs", "192.168.1.2");
}
body perms system
{
mode => "0644";
}
body copy_from mycopy(from,server)
{
source => "$(from)";
servers => { "$(server)", "remote-server" };
trustkey => "true";
encrypt => "true";
verify => "true";
}
body server control
{
allowconnects => { "127.0.0.1" , "192.168.1.2" };
allowallconnects => { "127.0.0.1" , "192.168.1.2" };
trustkeysfrom => { "127.0.0.1" , "192.168.1.2" };
}
bundle server access_rules()
{
"/var/cfengine/masterfiles/dotfiles" admit => { "127.0.0.1" ,
"192.168.1.2" };
}
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine