Page MenuHomeDevCentral

D3490.id8993.diff
No OneTemporary

D3490.id8993.diff

diff --git a/roles/mailserver/dovecot/files/conf.d/10-metrics.conf b/roles/mailserver/dovecot/files/conf.d/10-metrics.conf
--- a/roles/mailserver/dovecot/files/conf.d/10-metrics.conf
+++ b/roles/mailserver/dovecot/files/conf.d/10-metrics.conf
@@ -46,6 +46,7 @@
service stats {
inet_listener http {
+ address = {{ ip_internal }}
port = 9900
}
}
diff --git a/roles/mailserver/dovecot/init.sls b/roles/mailserver/dovecot/init.sls
--- a/roles/mailserver/dovecot/init.sls
+++ b/roles/mailserver/dovecot/init.sls
@@ -8,6 +8,8 @@
{% from "map.jinja" import dirs with context %}
{% set db = pillar["dovecot_config"]["db"] %}
+{% set network = salt['node.resolve_network']() %}
+
dovecot:
pkg.installed
@@ -42,6 +44,7 @@
- file_mode: 755
- dir_mode: 755
- context:
+ ip_internal: {{ network["private_ipv4_address"] }}
mailbox:
dir: /var/mail/_virtual

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 03:19 (6 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2256989
Default Alt Text
D3490.id8993.diff (915 B)

Event Timeline