Hi,
I'm new to Salt and was trying to create a small example using Vagrant for creating a VM with a configured MySQL instance. I did manage to do so, but with one small issue. When I run it the first time, it installs mysql-server, mysql-client, and python-mysqldb packages, plus gets the service running. But when it tries to create the database, a user and grant permissions to it, the error down below occurs. What is most weird though, is the fact that if I run it again (sudo salt-call state.highstate) it goes through and everything happens as expected (mysql installed, the db and user created, with the permissions granted).
The versions I'm using are:
- Vagrant: 1.2.2
- Salty-Vagrant: 0.4.0
- Ubuntu: precise64
- Ubuntu's Salt: 0.15.3
I have changed the mysql.sls file in several ways in order to try fixing it: adding the include statement, moving require between different parts and requiring different things, using watch instead of require, etc. All changes behaved the same way.
Am I doing something wrong?
Thank you in advance.
Error:
----------
State: - mysql_database
Name: pcur
Function: present
Result: False
Comment: State mysql_database.present found in sls mysql is unavailable
Changes:
----------
State: - mysql_user
Name: pcur
Function: present
Result: False
Comment: State mysql_user.present found in sls mysql is unavailable
Changes:
----------
State: - mysql_grants
Name: mysql-base
Function: present
Result: False
Comment: One or more requisite failed
Changes:
--
Lucas Torri