On 03/26/2014 04:25 PM, Antonio Mini wrote:
> mysql-server:
> mysql_user:
> - present
> - name: root
> - password_hash: 'some_hash'
> - require:
> - service: mysql
>
> On every first run salt installs the mysql-server package and adds the
> password to the root user.
> Every subsequent run gives the following error:
have you setup mysql support in salt?
i'm using:
mysql.default_file: '/etc/mysql/debian.cnf'
in minion config.
this is how i successfully setup a user, but i guess the difference
doesn't matter, if the above config is set.
{{ mpcp_mysql_username }}:
mysql_user.present:
- host: {{ mpcp_mysql_host}}
- password: {{ mpcp_mysql_password}}