소스 검색

Restart (if needed) before reload (#244)

Some configuration changes only take effect after a restart of the service.
When the module 'apache-reload' is triggered too early, it fails which results
in a false-negative result of the Salt run.
In order to fix that 'apache-restart' and the service definition itself are
put before 'apache-reload'. Reload should always succeed if restart did.
tags/v0.37.4
alxwr 6 년 전
부모
커밋
4af4ff5970
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      apache/init.sls

+ 5
- 0
apache/init.sls 파일 보기

@@ -15,6 +15,9 @@ apache:
service.running:
- name: {{ apache.service }}
- enable: True
- require:
- module: apache-restart
- module: apache-reload

# The following states are inert by default and can be used by other states to
# trigger a restart or reload as needed.
@@ -22,6 +25,8 @@ apache-reload:
module.wait:
- name: service.reload
- m_name: {{ apache.service }}
- require:
- module: apache-restart

apache-restart:
module.wait:

Loading…
취소
저장