Page MenuHomeDevCentral

Listen to external connections on dbserver-mysql role
ClosedPublic

Authored by dereckson on Apr 9 2023, 22:25.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 01:07
Unknown Object (File)
Tue, Nov 12, 12:36
Unknown Object (File)
Tue, Nov 12, 07:04
Unknown Object (File)
Wed, Nov 6, 12:25
Unknown Object (File)
Thu, Oct 31, 19:59
Unknown Object (File)
Tue, Oct 29, 22:46
Unknown Object (File)
Tue, Oct 29, 22:30
Unknown Object (File)
Sat, Oct 26, 06:28
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