mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 17:50:27 +00:00
Fix mysql.config for client only installations.
Signed-off-by: Rene Jochum <rene@jochums.at>
This commit is contained in:
parent
75277fec87
commit
df40904786
2 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,6 @@ mysql_clients_config:
|
|||
mysql_config:
|
||||
file.managed:
|
||||
- name: {{ mysql.config.file }}
|
||||
- require:
|
||||
- pkg: {{ mysql.server }}
|
||||
- template: jinja
|
||||
{% if "config_directory" in mysql %}
|
||||
- source: salt://mysql/files/my-include.cnf
|
||||
|
|
|
@ -88,6 +88,8 @@ mysqld-packages:
|
|||
- require:
|
||||
- debconf: mysql_debconf
|
||||
{% endif %}
|
||||
- require_in:
|
||||
- file: mysql_config
|
||||
|
||||
{% if os_family in ['RedHat', 'Suse'] and mysql.version is defined and mysql.version >= 5.7 %}
|
||||
# Initialize mysql database with --initialize-insecure option before starting service so we don't get locked out.
|
||||
|
|
Loading…
Add table
Reference in a new issue