Open getSurreal opened 5 years ago
@getSurreal The main issue will be determining how to trigger the reload. I propose we make that configurable:
@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.
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.