Page MenuHomeDevCentral

Listen to 172.27.27.3 for Dovecot statistics
ClosedPublic

Authored by dereckson on Oct 6 2024, 15:19.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 07:14
Unknown Object (File)
Tue, Nov 19, 07:14
Unknown Object (File)
Tue, Nov 19, 07:14
Unknown Object (File)
Mon, Nov 18, 18:15
Unknown Object (File)
Sun, Nov 17, 09:28
Unknown Object (File)
Sat, Nov 16, 01:45
Unknown Object (File)
Tue, Nov 12, 21:20
Unknown Object (File)
Sun, Nov 10, 05:51
Subscribers
None

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.

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
                         }
                       }
This revision is now accepted and ready to land.Oct 20 2024, 14:00