postfix-formula/postfix/postgrey.sls
Javier Bértoli 03ad48b8a4 fix(resources): make resources' IDs unique
The new format match the format proposed in the template-formula

BREAKING CHANGE: as all resources' IDs changed, other formulas
depending on this formula's resources will need to be modified
accordingly.
2021-03-15 16:08:07 -03:00

16 lines
456 B
Plaintext

{% from "postfix/map.jinja" import postfix with context %}
postfix-postgrey-pkg-installed-postgrey:
pkg.installed:
- name: {{ postfix.postgrey_pkg }}
postfix-postgrey-service-running-postgrey:
service.running:
- name: postgrey
- enable: {{ salt['pillar.get']('postfix:postgrey:enable_service', True) }}
- require:
- pkg: postfix-postgrey-pkg-installed-postgrey
- watch:
- pkg: postfix-postgrey-pkg-installed-postgrey