Fixes T2047.
Details
Details
- Reviewers
DorianWinty - Maniphest Tasks
- T2047: Dovecot :stats listen to world on port 9900
- Commits
- rOPS76a07737afb8: Listen to 172.27.27.3 for Dovecot statistics
Deploy to Hervil
Diff Detail
Diff Detail
- Repository
- rOPS Nasqueron Operations
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Not yet deployed.
Blocked on D3491.
Test run
Complector
$ salt hervil node.resolve_network hervil: ---------- ipv4_address: 178.32.70.108 ipv4_gateway: is_private_network_stable: True private_ipv4_address: 172.27.27.3 private_ipv4_gateway: 172.27.27.1 $ salt hervil state.apply roles/mailserver/dovecot test=True […] ID: dovecot_file_config_conf_d Function: file.recurse Name: /usr/local/etc/dovecot/conf.d Result: None Comment: #### /usr/local/etc/dovecot/conf.d/10-metrics.conf #### The file /usr/local/etc/dovecot/conf.d/10-metrics.conf is set to be changed Note: No changes made, actual changes may be different due to other states. Started: 15:21:29.947465 Duration: 509.163 ms Changes: ---------- /usr/local/etc/dovecot/conf.d/10-metrics.conf: ---------- diff: --- +++ @@ -46,6 +46,7 @@ service stats { inet_listener http { + address = {{ ip_internal }} port = 9900 } } […]
Test run with template: jinja
Complector
$ salt hervil state.apply roles/mailserver/dovecot test=True […] ---------- ID: dovecot_file_config_conf_d Function: file.recurse Name: /usr/local/etc/dovecot/conf.d Result: None Comment: #### /usr/local/etc/dovecot/conf.d/10-mail.conf #### The file /usr/local/etc/dovecot/conf.d/10-mail.conf is set to be changed Note: No changes made, actual changes may be different due to other states. #### /usr/local/etc/dovecot/conf.d/10-metrics.conf #### The file /usr/local/etc/dovecot/conf.d/10-metrics.conf is set to be changed Note: No changes made, actual changes may be different due to other states. Started: 15:25:28.024517 Duration: 532.301 ms Changes: ---------- /usr/local/etc/dovecot/conf.d/10-mail.conf: ---------- diff: --- +++ @@ -13,6 +13,6 @@ # and will be lost if the state is redeployed. # </auto-generated> -mail_location = maildir:{{ mailbox.dir }} +mail_location = maildir:/var/mail/_virtual mail_plugins = quota /usr/local/etc/dovecot/conf.d/10-metrics.conf: ---------- diff: --- +++ @@ -46,6 +46,7 @@ service stats { inet_listener http { + address = 172.27.27.3 port = 9900 } }