saltstack-formulas / mysql-formula

Install the MySQL client and/or server
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
85 stars 369 forks source link

[BUG] inconsistent use of mysql_unix_socket in database.sls and user.sls #279

Open thr27 opened 3 months ago

thr27 commented 3 months ago

The state files for database and user use different setting for the usage of mysql socket connection.

mysql-formula\mysql\database.sls

uses socket definition from mysql:config.:ections:mysqld:socket

{%- set mysql_unix_socket = mysql.config.sections.mysqld.socket %}

whereas

mysql-formula\mysql\user.sls

uses socket definition from mysql:server:unix_socket

{%- set mysql_unix_socket = salt['pillar.get']('mysql:server:unix_socket', '') %}

Shouldn't both use the same definition?