Skip to content

halfss/salt-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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:

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.sls

base: "*": - 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

index minions execute

About

dashboard for saltstack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •