Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3763918
D3490.id8993.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
915 B
Referenced Files
None
Subscribers
None
D3490.id8993.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
@@ -42,6 +44,7 @@
- file_mode: 755
- dir_mode: 755
- context:
+ ip_internal: {{ network["private_ipv4_address"] }}
mailbox:
dir: /var/mail/_virtual
File Metadata
Details
Attached
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)
Attached To
Mode
D3490: Listen to 172.27.27.3 for Dovecot statistics
Attached
Detach File
Event Timeline
Log In to Comment