We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb18252 + 75358e0 commit 0f1ad60Copy full SHA for 0f1ad60
postfix/init.sls
@@ -17,6 +17,16 @@ postfix:
17
- watch:
18
- pkg: postfix
19
20
+{%- if salt['pillar.get']('postfix:reload_service', True) %}
21
+# Restart postfix if the package was changed.
22
+# This also provides an ID to be used in a watch_in statement.
23
+postfix_service_restart:
24
+ service.running:
25
+ - name: postfix
26
+ - watch:
27
+ - pkg: postfix
28
+{%- endif %}
29
+
30
{# Used for newaliases, postalias and postconf #}
31
{%- set default_database_type = salt['pillar.get']('postfix:config:default_database_type', 'hash') %}
32
0 commit comments