You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reason: The public key given to the debops.authorized_keys role is empty. If you haven't defined checkmk_agent__user_key in the Ansible inventory, it will try to lookup the information required in the Ansible local facts of the Check_MK server. If this fails, there won't be a key which results in this error. One bug related to this was already fixed with #25.
Work-around: This error is known to be happen also if you simply try to install an agent but don't have the host running the master site included in the playbook run. In this case hostvars[checkmk_agent__server].ansible_local.checkmk_server will be undefined. To work around the issue, make sure that you manually define all the variables which are looked up via the Check_MK server local facts. E.g. checkmk_agent__site, checkmk_agent__user_key, checkmk_agent__autojoin_url, checkmk_agent__autojoin_secret
I'm currently elaborating possible ways how to solve this issue. Please be patent. If you have an idea, let me know...
The text was updated successfully, but these errors were encountered:
ganto
changed the title
Agent setup fails in "debops.authorized_keys : Enforce state of authorized_keys user files]"
Agent setup fails in "debops.authorized_keys : Enforce state of authorized_keys user files"
Jan 27, 2017
A playbook run would abort with an error like:
Reason: The public key given to the
debops.authorized_keys
role is empty. If you haven't definedcheckmk_agent__user_key
in the Ansible inventory, it will try to lookup the information required in the Ansible local facts of the Check_MK server. If this fails, there won't be a key which results in this error. One bug related to this was already fixed with #25.Work-around: This error is known to be happen also if you simply try to install an agent but don't have the host running the master site included in the playbook run. In this case
hostvars[checkmk_agent__server].ansible_local.checkmk_server
will be undefined. To work around the issue, make sure that you manually define all the variables which are looked up via the Check_MK server local facts. E.g.checkmk_agent__site
,checkmk_agent__user_key
,checkmk_agent__autojoin_url
,checkmk_agent__autojoin_secret
I'm currently elaborating possible ways how to solve this issue. Please be patent. If you have an idea, let me know...
The text was updated successfully, but these errors were encountered: