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

Interactions with NGINX and other web services #17

Open
alexander-bauer opened this issue May 28, 2017 · 3 comments
Open

Interactions with NGINX and other web services #17

alexander-bauer opened this issue May 28, 2017 · 3 comments

Comments

@alexander-bauer
Copy link
Contributor

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 and watch statements without tightly coupling this formula to other states?

@fpytloun
Copy link
Member

fpytloun commented Jun 1, 2017

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.

@pankajghadge
Copy link

pankajghadge commented Sep 1, 2017

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
Also it will be grate if you add --pre-hook and --post-hook support, so that somebody can stop the haproxy ,nginx or apache server and let the certbot start a standalone webserver for authentication

@fpytloun
Copy link
Member

fpytloun commented Sep 5, 2017

Support for hooks seems to be easy way how to solve this 👍
Any volunteers for pull request? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants