Merge pull request #39 from danoe/service_enable
allow postfix/postgrey services to be enabled or disabled
This commit is contained in:
commit
253f8d3698
@ -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
|
||||||
@ -18,6 +20,7 @@ postfix:
|
|||||||
|
|
||||||
postgrey:
|
postgrey:
|
||||||
enabled: True
|
enabled: True
|
||||||
|
enable_service: True
|
||||||
location: inet:172.16.0.5:6379
|
location: inet:172.16.0.5:6379
|
||||||
|
|
||||||
policyd-spf:
|
policyd-spf:
|
||||||
|
@ -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:
|
||||||
|
@ -7,7 +7,7 @@ postgrey:
|
|||||||
- service: postgrey
|
- service: postgrey
|
||||||
|
|
||||||
service.running:
|
service.running:
|
||||||
- enable: True
|
- enable: {{ salt['pillar.get']('postfix:postgrey:enable_service', True) }}
|
||||||
- require:
|
- require:
|
||||||
- pkg: postgrey
|
- pkg: postgrey
|
||||||
- watch:
|
- watch:
|
||||||
|
Loading…
Reference in New Issue
Block a user