本篇的目的是安装salt的图形操做界面halite。html
参考来自官方文档http://docs.saltstack.com/topics/tutorials/halite.htmlweb
第一步是使用pip安装halite及cherrypy。vim
而后修改/etc/salt/master配置文件。app
用vim搜索找到pam关键字,而后把之下的内容修改成:cors
注意里面的testuser部分须要填写为系统用户名称,halite使用的是操做系统的密码认证,固然也尅使用LDAP认证,我会在有时间有条件的时候写一篇配置文档出来。spa
配置好以后,到文档底部添加以下内容:操作系统
halite:debug
level: 'debug'code
server: 'cherrypy'server
host: '0.0.0.0'
port: '8080'
cors: False
tls: True
certpath: '/etc/pki/tls/certs/localhost.crt'
keypath: '/etc/pki/tls/certs/localhost.key'
pempath: '/etc/pki/tls/certs/localhost.pem'
添加完成以后,须要在操做系统执行如下命令:
salt-call tls.create_self_signed_cert tis
执行完成以后,就能够经过http去访问网址https://localhost:8080/app/查看halite界面了。