Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4016936
D3490.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
916 B
Referenced Files
None
Subscribers
None
D3490.diff
View Options
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
@@ -43,6 +45,7 @@
- dir_mode: 755
- template: jinja
- context:
+ ip_internal: {{ network["private_ipv4_address"] }}
mailbox:
dir: /var/mail/_virtual
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 02:53 (15 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2359679
Default Alt Text
D3490.diff (916 B)
Attached To
Mode
D3490: Listen to 172.27.27.3 for Dovecot statistics
Attached
Detach File
Event Timeline
Log In to Comment