diff --git a/pillar.example b/pillar.example index 5663fcf..28f3d57 100644 --- a/pillar.example +++ b/pillar.example @@ -3,6 +3,8 @@ postfix: master_config: enable_submission: False + enable_service: True + virtual: groupaliasexample: - someuser_1@example.com diff --git a/postfix/init.sls b/postfix/init.sls index 167f8fb..66e0dd6 100644 --- a/postfix/init.sls +++ b/postfix/init.sls @@ -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: