Trying to get my first test setup going using the tutorial at
http://www.verticalsysadmin.com/cfengine3
Got the client and server to talk to each other, but getting
Challenge response from server 192.168.1.45/192.168.1.45 was incorrect!
I: Made in version '0.1' of '/var/cfengine/inputs/test_copy.cf' near line 13
!! Authentication dialogue with 192.168.1.45 failed
192.168.1.45 <- Master
192.168.1.46 <- Client
In the server I have
In promises.cf
body server control
{
allowconnects => { "127.0.0.1","192.168.1.46"};
allowallconnects => { "127.0.0.1","192.168.1.46"};
trustkeysfrom => { "127.0.0.1","192.168.1.46"};
# Make updates and runs happen in one
cfruncommand => "$(sys.workdir)/bin/cf-agent -f failsafe.cf &&
$(sys.workdir)/bin/cf-agent";
allowusers => { "root" };
}
In site.cf
bundle server access_rules()
{
access:
"/home/fran/test-cf-copy"
admit => { "192.168.1.46" };
roles:
".*" authorize => { "fran" };
}
For the authorize also tried "root" with the same results.
On the client the test_copy.cf has
bundle agent testcopy
{
files:
"/home/fran/test-cf-copy"
copy_from =>
my_copy_body_with_options("/home/fran/test-cf-copy","192.168.1.45");
}
Pretty much the same as the tutorial, with the file name and IP changed.
Any ideas or pointers would be greatly appreciated.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine