Hi,
I get the error saying 'Multiple dictionaries defined in argument of state '.
I am sure that the sate file itself is not wrong as the same file in yaml format is compiled and loaded properly but when I convert to json I get the above error.
The origin of the error message is from '/usr/lib/python2.7/dist-packages/salt/state.py' from inside State.verify_high() method.
Inside the method there is a check to ensure 'Make sure that there is only one key in the dict'. I am not sure if this is necessary and also why this check does not run when I use yaml renderer. Can any one help me out?
Below I have pasted the sls file itself.
#!json
{
"mysql-server": {
"pkg": [
"installed"
],
"service": [
"running",
{
"name": "mysql",
"watch": [
{
"pkg": "mysql-server"
},
{
"ini": "mysql-conf-file"
}
]
}
]
},
"mysql-conf-file": {
"file": [
"managed",
{
"name": "/etc/mysql/my.cnf",
"user": "root",
"group": "root",
"mode": "644",
"require": [
{
"pkg": "mysql-server"
}
]
}
],
"ini": [
"options_present",
{
"name": "/etc/mysql/my.cnf",
"sections": {
"mysqld": {
"bind-address": "0.0.0.0",
"collation-server": "utf8_general_ci",
"init-connect": "'SET NAMES utf8'",
"character-set-server": "utf8"
}
},
"require": [
{
"file": "mysql-conf-file"
}
]
}
]
}
}