saltstack初窥——halite安装

参考文档:https://github.com/saltstack/halite

####
升级salt版本

git clone -b develop https://github.com/saltstack/salt.git

cd salt && python2.6 setup.py install

salt-master –version

salt-master 0.17.0-1096-gc94f4bd

下载halite

git clone https://github.com/saltstack/halite

####
配置halite

创建登录halite的系统账号

useradd admin

echo admin|passwd –stdin admin
编辑/etc/salt/master,添加如下内容:

external_auth:
pam:
admin:

- .*
- '@runner'
- '@wheel'</pre>

注意:最后两行需要添加,否则会出现Error! Please Login! EauthAuthenticationError()的错。

重启salt-master服务

/etc/init.d/salt-master restart

启动halite

cd halite/halite

python2.6 server_bottle.py -d -C -l debug -s cherrypy (需要安装python-cherrypy包)

20131017_094820.078119 Bottle: Running web application server ‘cherrypy’ on 0.0.0.0:8080.

20131017_094820.078314 Bottle: CORS is disabled.

20131017_094820.078435 Bottle: TLS/SSL is disabled.

20131017_094820.078548 Bottle: Server options:

{}

20131017_094820.371404 Bottle: Running web application server ‘cherrypy’ on 0.0.0.0:8080.

20131017_094820.371630 Bottle: CORS is disabled.

20131017_094820.371768 Bottle: TLS/SSL is disabled.

20131017_094820.371906 Bottle: Server options:

{}

Bottle v0.12-dev server starting up (using CherryPyServer())…

Listening on http://0.0.0.0:8080/

Hit Ctrl-C to quit.

登录界面