option to make postgrey service enabled or disabled

This commit is contained in:
Daniel Oetken 2016-05-19 13:55:15 +02:00
parent ac7b5e1a8d
commit 88fb050109
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ postfix:
postgrey:
enabled: True
enable_service: True
location: inet:172.16.0.5:6379
policyd-spf:

View File

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