Reload postfix service by default.

The postfix service is currently being restarted whenever a
config item changes.
This is unnecessary as the postfix service can reload a new
config.

Set reload: True to prevent unnecessary restarts of the service.
The old behavior can be restored by setting the pillar key
reload_service to False.
This commit is contained in:
Andreas Thienemann 2018-09-26 17:30:05 -07:00
parent 3ded29687e
commit 44210a1fe8
2 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ postfix:
chroot: True chroot: True
enable_service: True enable_service: True
reload_service: True
postgrey: postgrey:
enabled: True enabled: True

View File

@ -11,6 +11,7 @@ postfix:
- service: postfix - service: postfix
service.running: service.running:
- enable: {{ salt['pillar.get']('postfix:enable_service', True) }} - enable: {{ salt['pillar.get']('postfix:enable_service', True) }}
- reload: {{ salt['pillar.get']('postfix:reload_service', True) }}
- require: - require:
- pkg: postfix - pkg: postfix
- watch: - watch: