Browse Source

fix(state): restart service when configuration has changed

tags/v0.7.3
Nicolas Rodriguez 4 years ago
parent
commit
e098871f0b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      apt-cacher/ng/server/service/running.sls

+ 2
- 1
apt-cacher/ng/server/service/running.sls View File

service.running: service.running:
- name: {{ apt_cacher_ng.service }} - name: {{ apt_cacher_ng.service }}
- enable: true - enable: true
- require:
- watch:
- sls: {{ sls_config_file }} - sls: {{ sls_config_file }}
{%- if 'require' in apt_cacher_ng %} {%- if 'require' in apt_cacher_ng %}
- require:
{%- for require in apt_cacher_ng.require %} {%- for require in apt_cacher_ng.require %}
- {{ require }} - {{ require }}
{%- endfor %} {%- endfor %}

Loading…
Cancel
Save