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

Trigger web server reload if neccessary #162

Open
getSurreal opened this issue Jan 24, 2019 · 2 comments
Open

Trigger web server reload if neccessary #162

getSurreal opened this issue Jan 24, 2019 · 2 comments

Comments

@getSurreal
Copy link

Is there a setting I'm missing that will already allow this? For instance when I add php.ng.mysql. I have to manually reload apache. I know people run different web servers, but maybe that information could be passed as pillar data so it knows which service to reload.

@alxwr
Copy link
Member

alxwr commented Feb 12, 2019

@getSurreal The main issue will be determining how to trigger the reload. I propose we make that configurable:

  • use apache-formula
  • use nginx-formula
  • custom command

@aboe76
Copy link
Member

aboe76 commented Feb 12, 2019

@getSurreal this is a difficult thing to accomplish,

You need to know if the webserver is managed by a salt-formula to use
if it is apache-formula just require_in apache-reload
if it is nginx-formula you need to know if nginx or nginx:ng.
both have different extends...to reload the service.

I would opt for the simpler solution:
get a dict from pillar: which webserver with which command.
and then create a saltstack state based on the two values.

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