Skip to content

Trigger web server reload if neccessary #162

Open

Description

@getSurreal

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.

Activity

  1. alxwr commented on Feb 12, 2019

    @alxwr
    Member

    @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
  2. aboe76 commented on Feb 12, 2019

    @aboe76
    Contributor

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions