Closed paulrolandw closed 6 years ago
Can you please provide output of salt 'yourhost' state.show_sls zabbix.mysql.conf,zabbix.mysql.conf --out=yaml
. Also salt 'youhost' pillar.get zabbix-mysql --out=yaml
will be useful too. Don't forget to clean sensitive data.
Actually if you want to connect to another host with running MySQL server you need to provide dbroot_user
dbroot_pass
, otherwise it will always connect to localhost
.
Hello I am closing this ticket simply due lack of time and I will not be updating/creating schema at the moment. dbroot user pass and host were defined.
Hi, having a bit of an issue here.
Apparently in mysql/conf.sls there is this: {% set settings = salt['pillar.get']('zabbix-mysql', {}) -%} Where dbhost etc is being configured.
I do have the pillar for zabbix.sls:
zabbix-mysql: dbhost: 192.168.1.99 dbname: zabbix dbuser: zabbix dbpass: sum_pass
Then the state file:
linux1:
However for some reasons this gets ignored, and fails with this: