A Zenoss user has posted a playbook to install it that I would like to use, but my experience with Ansible is limited and I can’t see how to drive it.
Mainly, I’ve used Ansible from Vagrant and that handles the inventory and SSH keys for me, so I’ve been spoiled, I admit it.
The project is at:
https://github.com/sergevs/ansible-serviced-zenoss
He has a terraform script to set up the servers on Google Cloud Engine and then uses Ansible to do the rest.
Terraform works, but getting Ansible to connect has me stumped.
Do I add the public IP address, or the instance name, to the hosts file?
-
If I add the public IP address SSH authentication fails.
-
If I use the instance name, name resolution fails.
-
Using gcloud compute ssh zenoss I can connect. But Ansible is apparently not using the gcloud SSH and I can’t figure out which SSH keys I need to be using and how to do that.
My apologies for asking for help with someone else’s work, I have asked the developer the same questions on the Zenoss forum where he posted this:
https://community.zenoss.com/forum/community-home/digestviewer/viewthread?MessageKey=5576acb1-e0f8-4216-86e4-ce39c205b24e