-
Notifications
You must be signed in to change notification settings - Fork 15
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
INS-62 / Make Vault-PKI formula stateful + blocking #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just some docs + naming stuff to iron out.
dd5dc38
to
5ee43c4
Compare
945cf08
to
44fa5f7
Compare
b525884
to
4ab4398
Compare
To use this with testing, you will need to export the following variable:
Then you can proceed with |
4ab4398
to
03c7f0d
Compare
This commit updates Vault-PKI to rely less on the salt reactor for processing a signed certificate request. Instead of the response being sent back out of band, and having another salt run to activate, the Vault-PKI now waits and watches the event bus waiting for a return message and then reacts internally. This simplifies the overall execution strategy for this module, and allows for blocking and state dependency management which has not been possible up to this point.
03c7f0d
to
f88313c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good -- mostly just clean-up stuff. I haven't reviewed testing yet but wanted to give you something to chew on. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix one pep8 nit and submit, this looks great! Thank you!
This PR updates the Vault-PKI formula to add a few features:
'cert' state should be stateful (not appear to have changes each time it is included in high state)
'cert' state should have a blocking mode to wait and poll for the cert delivery, will allow use of requisites on the cert state namely by consul + nginx which rely on a cert to start cleanly
Requires: ripple/salt-runner-vault-pki#4