Skip to content

Service nginx not reloaded when changes in configuration #194

Open
@daks

Description

@daks

Hello,

we are using the nginx.ng part of this formula on Debian 9 with Salt 2018.3.1. We use a wrapper that include the following states

include:
  - nginx.ng.pkg
  - nginx.ng.config
  - nginx.ng.servers_config
  - nginx.ng.servers
  - nginx.ng.certificates
  - nginx.ng.service

I recently added nginx.ng.servers which seems to handle service reload when configuration change (and pillar service.enable is not set to False).

I think it does not work as expected because I don't see any reload of service when I change config, and running salt returns

          ID: nginx_service_reload
    Function: service.running
        Name: nginx
      Result: True
     Comment: The service nginx is already running
     Started: 10:04:19.463741
    Duration: 40.412 ms
     Changes:   

This part of the code https://github.com/saltstack-formulas/nginx-formula/blob/master/nginx/ng/servers.sls#L23 uses reload: True in state service.running but it seems that this parameter does not exist https://docs.saltstack.com/en/latest/ref/states/all/salt.states.service.html#salt.states.service.running on 2018.3 or 2017.7.

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