mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 01:30:25 +00:00
Merge pull request #45 from babilen/dev-debconf-utils
Ensure that debconf-utils is installed on Debian systems
This commit is contained in:
commit
d79f596100
2 changed files with 8 additions and 0 deletions
|
@ -5,6 +5,7 @@ Ubuntu:
|
|||
client: mysql-client
|
||||
service: mysql
|
||||
python: python-mysqldb
|
||||
debconf_utils: debconf-utils
|
||||
config:
|
||||
file: /etc/mysql/my.cnf
|
||||
sections:
|
||||
|
@ -48,6 +49,7 @@ Debian:
|
|||
client: mysql-client
|
||||
service: mysql
|
||||
python: python-mysqldb
|
||||
debconf_utils: debconf-utils
|
||||
config:
|
||||
file: /etc/mysql/my.cnf
|
||||
sections:
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
|
||||
{% if mysql_root_password %}
|
||||
{% if os_family == 'Debian' %}
|
||||
mysql_debconf_utils:
|
||||
pkg.installed:
|
||||
- name: {{ mysql.debconf_utils }}
|
||||
|
||||
mysql_debconf:
|
||||
debconf.set:
|
||||
- name: mysql-server
|
||||
|
@ -16,6 +20,8 @@ mysql_debconf:
|
|||
'mysql-server/start_on_boot': {'type': 'boolean', 'value': 'true'}
|
||||
- require_in:
|
||||
- pkg: mysqld
|
||||
- require:
|
||||
- pkg: mysql_debconf_utils
|
||||
{% elif os_family == 'RedHat' %}
|
||||
mysql_root_password:
|
||||
cmd.run:
|
||||
|
|
Loading…
Add table
Reference in a new issue