zoukankan      html  css  js  c++  java
  • saltstack学习-8:web管理页面(halite)

    安装halite

     

    方法一:失败,待查原因

    1、安装并启动salt-api

    • yum install salt-api –y
    • service salt-api start
    • chkconfig salt-api on

    2、安装halite及其依赖文件

    • yum install python-pip –y
    • pip install --upgrade pip
    • pip install -U halite
    • pip install cherrypy
    • pip install paste
    • yum install python-devel gccy
    • pip install gevent
    • pip install pyopenssl
    • pip install tornado

    创建登录用户

    • useradd   salt
    • echo "salt" |passwd --stdin salt

    3、修改master配置文件

    方法二:

    #yum install git

    下载代码

    #cd /var/www

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

    生成index.html

    # cd halite/halite
    # ./genindex.py -C
    

    安装salt-api

    # yum install salt-api
    

    添加登陆用户

    # useradd salt
    # echo salt|passwd –stdin salt
    

    配置salt master文件

    配置salt的master文件,添加:

    rest_cherrypy:
     host: 0.0.0.0
     port: 8080
     debug: true
     static: /root/halite/halite
     app: /root/halite/halite/index.html
    
    external_auth:
       pam:
         salt:
    	 - .*
    	 - '@runner'
    	 - '@wheel'
    

    重启master;

    # /etc/init.d/salt-master restart
    

    启动 salt-api,启动web界面(两种启动方式)

    #cd /var/www/halite/halite
    (1)#nohup python2.6 server_bottle.py -d -C -l debug -s cherrypy &       #不使用nohup的话为前台运行

    (2)# salt-api –d   ---后台运行

    然后打开http://ip:8080/app,通过salt/salt登陆即可。

     

     

    官方安装教程:

    https://docs.saltstack.com/en/latest/topics/tutorials/halite.html

  • 相关阅读:
    朴素贝叶斯
    决策树算法
    devstack脚本安装Openstack总结(转载)
    squid重定向(python 代码)
    centos安装第三方源
    linux学习笔记之树目录和硬盘分区
    man指令
    关于hadoop学习常识
    Hadoop学习之环境搭建和解决方案
    多系统共存的一些想法
  • 原文地址:https://www.cnblogs.com/snailshadow/p/8215796.html
Copyright © 2011-2022 走看看