Skip to content
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

Ansible variable for keys check #42

anton-johansson opened this Issue Apr 1, 2019 · 2 comments


None yet
2 participants
Copy link

anton-johansson commented Apr 1, 2019


I have a working cluster with 3 masters and 5 nodes. I ask my colleague to add another node into the cluster. He clones KTRW and our repository that contains our inventory file. He adds the new node into the inventory file.

If he runs the Ansible playbook now, it will destroy the cluster, since he has no keys on his machine.

I was thinking that we could have a validation parameter. If the parameter is set to true, it could check if vital keys are missing (for example the service-account-key.pem) and if so, simply fail the playbook, explaining that the user needs the keys to continue.

What do you think? Just as a safety measure.

@anton-johansson anton-johansson changed the title Ansible variable for key check Ansible variable for keys check Apr 1, 2019


This comment has been minimized.

Copy link

amimof commented Apr 2, 2019

Interesting! A simple check for existing certificates could suffice. For example if the issuer signature is different from those already copied to the hosts, the install will fail. And we can use regenerate_keys and regenerate_cerst to force recreate certs and keys


This comment has been minimized.

Copy link
Contributor Author

anton-johansson commented Apr 2, 2019

Yeah, that sounds great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.