-
Notifications
You must be signed in to change notification settings - Fork 39
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
Interactions with NGINX and other web services #17
Comments
Currently there's no straightforward way and it's prefered to run states multiple times than to introduce complex relationships that may or may not work. Instead you can use Salt Orchestrate, there's experimental way how to define relationships across formulas (see meta/salt.yml) that should be able to generate orchestrate files (using salt-formula-salt) or you can run orchestrate files on your own to orchestrate deployment of your changes, etc. |
Will it be possible to add --renew-hook "/usr/local/bin/renew.sh" something like that to restart the services like haproxy or nginx or apache |
Support for hooks seems to be easy way how to solve this 👍 |
When I'm developing my environment, I often add new services, nginx rules, and letsencrypt rules simultaneously. Depending on the order of the states, the letsencrypt rules may run before the new nginx site is added, causing the state to fail, so it must be run again. Furthermore, nginx may have to be restarted to use the new certificate.
Is there a clean way to add these
require
andwatch
statements without tightly coupling this formula to other states?The text was updated successfully, but these errors were encountered: