#salt dashboard
salt-dashboard is based on salt-client(so deploy this on salt master server),and use mysql returner as result backend
#requirement
pip install django mysql-python
#1:returner:
salt mysql returner
add time to salt_returns:
alter table salt_returns add time timestamp;
the auth sql like this:
grant all on salt.* to 'salt'@'localhost' identified by 'salt';
there is a bug when schedule use mysql return,fixed by this schedule return by mysql
##salt minion config:
vim /etc/salt/minion mysql.host: 'localhost' mysql.user: 'salt' mysql.pass: 'salt' mysql.db: 'salt' mysql.port: 3306
##salt-dashboard sync db
cd salt-dashboard/ python manage.py syncdb
#2:scheduler: [[
]] /srv/pillar/top.slsbase: "*": - schedule/srv/pillar/schedule.sls
schedule: highstate: function: state.highstate minutes: 30 returner: mysql
then waiting minions update scheduler info by himself or run this command:
salt '*' saltutil.refresh_pillar
#3:salt-dashboard this dashboard is based on django+bootstrap+amcharts
demo screen like this: here just on minion, so is seems very simple