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)
Sun, Dec 22, 17:53
Unknown Object (File)
Wed, Dec 18, 22:38
Unknown Object (File)
Thu, Dec 12, 12:14
Unknown Object (File)
Thu, Dec 12, 12:14
Unknown Object (File)
Thu, Dec 12, 12:05
Unknown Object (File)
Thu, Dec 12, 11:56
Unknown Object (File)
Tue, Dec 3, 17:23
Unknown Object (File)
Tue, Dec 3, 16:10
Subscribers
None

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
dovecot-stats-private-ip
Build Status
Buildable 5550
Build 5831: arc lint + arc unit

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