Hi
I have been trying to install MariaDB on Ubuntu Trusty using Salt-Stack via Vagrant but it keeps getting stuck. Here is my sls for this:
mariadb-server-debconf:
debconf.set:
- name: mariadb-server-10.0
- data:
'mysql-server/root_password_again': {'type': 'password', 'value': 'root'}
'mysql-server/root_password': {'type': 'password', 'value': 'root'}
'mysql-server/start_on_boot': {'type': 'boolean', 'value': 'true'}
- require_in:
- pkg: mariadb-server
mariadb-server:
pkg.installed:
- name: mariadb-server
- require:
- debconf: mariadb-server-debconf
# cmd.run:
# - names:
# - 'LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y mariadb-server'
# - require:
# - debconf: mariadb-server-debconf
service:
- running
- enable: True
- watch:
- pkg: mariadb-server
I think the problem is that this stops waiting for user input. Although I am setting mysql-server/root_password this seems to be overridden on installing the package as querying debconf-get-selections I get the following:
>> debconf-get-selections | grep -i "mariadb"
# New password for the MariaDB "root" user:
mariadb-server-10.0 mysql-server/root_password password
mariadb-server-5.5 mysql-server/root_password password
# Repeat password for the MariaDB "root" user:
mariadb-server-10.0 mysql-server/root_password_again password root
mariadb-server-5.5 mysql-server/root_password_again password root
mariadb-server-5.5 mysql-server-5.5/nis_warning note
mariadb-server-10.0 mysql-server/start_on_boot boolean true
mariadb-server-5.5 mysql-server/no_upgrade_when_using_ndb error
# Unable to set password for the MariaDB "root" user
mariadb-server-5.5 mysql-server/error_setting_password error
mariadb-server-5.5 mariadb-server-5.5/really_downgrade boolean false
# Remove all MariaDB databases?
mariadb-server-5.5 mysql-server-5.5/postrm_remove_databases boolean false
mariadb-server-5.5 mysql-server/password_mismatch error
# Really migrate to MariaDB?
mariadb-server-5.5 mariadb-server/oneway_migration boolean true
The mysql-server/password is not set. If I disable the maridb-server apt-get install in the sls above these values would be set correctly. So definitely they are being overridden on installing.
Can anyone shed some light on this how to fix it as I already spent two days trying different things to make it work with no success?
Regards
Aaron