diff --git a/pillar.example b/pillar.example index 28f3d57..7976469 100644 --- a/pillar.example +++ b/pillar.example @@ -20,6 +20,7 @@ postfix: postgrey: enabled: True + enable_service: True location: inet:172.16.0.5:6379 policyd-spf: diff --git a/postfix/postgrey.sls b/postfix/postgrey.sls index e12482c..b819aa9 100644 --- a/postfix/postgrey.sls +++ b/postfix/postgrey.sls @@ -7,7 +7,7 @@ postgrey: - service: postgrey service.running: - - enable: True + - enable: {{ salt['pillar.get']('postfix:postgrey:enable_service', True) }} - require: - pkg: postgrey - watch: