-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/var/lib/icinga2/certs/ticket is not created by this module #728
Comments
Thx @Bonoolu for your report.
What do you mean, the hostname is different? Bye |
Oh, i just meant the name of the agent is in the constants file, and that name obviously differs from client to client.
Do I have any misconfiguration? This module works since six years, so it's hard for me to believe that this is a bug in the module. |
I just saw that i forgot to mention that this error is critical: |
What kind of Icinga version you use? |
I use icinga2 in version r2.13.7-1 for the agents and masters |
Hm. I can't see any mistakes in your code. But I learned several years ago, don't use server and agent in so different versions like you do. I've to test it. This will take some days ... |
Nevermind, i confused ticket_id and ticket_salt. Sorry, my bad! |
Hello,
thank you for maintaining this repository.
I had two issues while getting this module to work. I'm currently not at my workplace so i will recite these issues from memory. I will add all missing information next Monday.
/usr/sbin/icinga2 pki save-cert --host ---next-flag-here
I've set the ca_host value which solved this problem. Aferwards the icinga2 config got pushed successfully and the key/crts are downloaded form the icinga server.
Error while reading JSON-RPC message for identity ‘hostname-of-master-here’: Error: End of file
I solved this problem by executing these command on the agent client:
Config
I copy pasted the agent config in the README.md. I adjusted the zones and endpoints to match my manually configured clients, i've set the correct fingerprint and ticket_salt. I added the ca_host key-value pair as previously described.
Your Environment
My Environment are several freshly created debian11 lxd containers. I've set up this network of containers specifically to try out this icinga2 module.
I have one puppet server, one icinga server, and several icinga clients. One icinga client was configured manually with 'icinga2 node wizard', the other clients were configured via this module.
The manually configured client worked perfectly, the clients configured by this module had the above mentioned issues.
I diff'ed the icinga2 directories of my working manually configured client and the not working puppet-configured clients. These are the results of that diff:
puppet module list
):newest version
puppet -V
):newest version for bullseye on packages.icinga.com
debian 11
I could reconstruct this environment from memory if you want, but first i will wait for feedback as it's still possible that this was just an user error by me, lol.
The text was updated successfully, but these errors were encountered: