Page MenuHomeDevCentral

Listen to external connections on dbserver-mysql role
ClosedPublic

Authored by dereckson on Apr 9 2023, 22:25.
Tags
None
Referenced Files
F3771225: D2986.diff
Sat, Nov 23, 23:10
F3767928: D2986.diff
Sat, Nov 23, 04:19
Unknown Object (File)
Fri, Nov 22, 04:38
Unknown Object (File)
Tue, Nov 19, 00:22
Unknown Object (File)
Tue, Nov 19, 00:22
Unknown Object (File)
Mon, Nov 18, 23:42
Unknown Object (File)
Mon, Nov 18, 23:19
Unknown Object (File)
Thu, Nov 14, 01:07
Subscribers
None

Details

Summary

There are 2 kinds of servers where MariaDB is deployed with dbserver-mysql role:

  • devserver, where it makes sens to listen to 127.0.0.1
  • pure dbserver-mysql clusters, where it needs to accept other machines

This change configures the listen address accordingly.

It's no-op for Docker MySQL and MariaDB containers.

Ref T1803

Test Plan

Deploy on db-B-001, then mysql -H db-B-001

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
mysql-world
Build Status
Buildable 4716
Build 4997: arc lint + arc unit

Event Timeline

dereckson created this revision.
dereckson retitled this revision from Listen to external conections on dbserver-mysql role to Listen to external connections on dbserver-mysql role.Apr 9 2023, 22:51
dereckson edited the summary of this revision. (Show Details)
$ salt db-B-001 state.apply roles/dbserver-mysql
[...]
----------
          ID: /usr/local/etc/mysql/conf.d
    Function: file.recurse
      Result: True
     Comment: Recursively updated /usr/local/etc/mysql/conf.d
     Started: 00:57:27.179775
    Duration: 711.287 ms
     Changes:
              ----------
              /usr/local/etc/mysql/conf.d/server.cnf:
                  ----------
                  diff:
                      ---
                      +++
                      @@ -35,7 +35,7 @@
                       datadir = /var/db/mysql
                       lc-messages-dir = /usr/local/share/mysql

                      -bind-address                     = 127.0.0.1
                      +bind-address                     = 0.0.0.0
                       socket = /var/run/mysql/mysqld.sock
                       port = 3306
[...]
This revision is now accepted and ready to land.Apr 9 2023, 22:56