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:
enable_submission: False
enable_service: True
virtual:
groupaliasexample:
- someuser_1@example.com

View File

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