option to make postfix service enabled or disabled

This commit is contained in:
Daniel Oetken 2016-05-18 19:29:37 +02:00
parent 99d7f9b6fd
commit ac7b5e1a8d
2 changed files with 3 additions and 1 deletions

View file

@ -3,6 +3,8 @@ postfix:
master_config: master_config:
enable_submission: False enable_submission: False
enable_service: True
virtual: virtual:
groupaliasexample: groupaliasexample:
- someuser_1@example.com - someuser_1@example.com

View file

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