Hi all

I have a strange problem with cf-runagent. I am pretty sure that it's my
fault but I can't see what I am doing wrong.

I want to be able to run cf-runagent on the policy host and request
clients to perform certain actions (either run cf-agent, plain, or run
it with certain classes defined, so that some defined actions take place.

It seems to be configured correctly, and in fact it works as it should
for everything but one thing: if I ask cf-runagent to activate the agent
to a certain host, e.g.

cf-runagent -I -H 10.20.11.98 -v

it randomly refuses to run because of the authentication. I have to run
it again with -i and confirm the key in order to make it work, and then
it will run OK without -i for some time. Then, for some reason, it will
ask again. I could not identify a pattern for that.

The contents of the ppkeys seem to be fine: on the policy hub I have:

root@kvm-test-v06:~# ls -1 /var/cfengine/ppkeys/
localhost.priv
localhost.pub
root-MD5=d5e2ed13387fe96b61c53c6de4585ad7.pub

and this is on the client:

root@kvm-test-v05:~# ls -1 /var/cfengine/ppkeys/
localhost.priv
localhost.pub
root-MD5=d5e2ed13387fe96b61c53c6de4585ad7.pub

That seems normal to me.

Note also that 10.20.11.98 is *not* in the list of the hosts list: that
just contains 127.0.0.1 for now, so that I don't trigger unwanted
changes on other hosts. That shouldn't matter by the way.

Am I doing something wrong?

Ciao
-- bronto
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to