zoukankan      html  css  js  c++  java
  • saltstack安装配置(yum)

    主机规划:

    (主)master:192.168.25.130

    (从)minion:192.168.25.131     192.168.25.132

    1.yum安装:

    服务端:安装master

    yum -y install epel-release       #安装第三方epel的yum源,有许多的跟新包
    yum -y install salt-master salt-minion       #安装saltstack的master跟minion

    客户端:安装minion

    2.配置:主从都需要配置

    [root@localhost ~]# vim /etc/salt/minion     

    master: 192.168.25.130         #16行内容,去注释,指定主机的IP

    3.启动:

    主:

    [root@localhost ~]# systemctl start salt-master

    从:2台机器

    [root@localhost ~]# systemctl start salt-minion

     

    salt-key的基本命令:

    salt-key -L #检测当前server端所有minion端key的情况,三种:接收、等待接收和拒绝
    salt-key -a hostname #指定接收某台minion的key
    salt-key -A #接收Unaccepted Keys下所有的minion
    salt-key -d hostname #删除已经接收的机器中指定机器minion key (Accepted Keys:)
    salt-key -D #删除已经接收的所有机器(Accepted Keys:)

    验证server和minion的通信(server端进行):

    [root@localhost ~]# salt '*' test.ping
    192.168.25.132:
    True
    192.168.25.131:
    True

    可以发现,server端和minion端是可以正常通信的,至此,saltstack的master和minion正常安装以及配置完成 

  • 相关阅读:
    Event bubbling
    input/change event practice
    Form event
    Event_Object
    DOM_this keyword
    Random color generator exercise
    DOM_events_addEventListener
    Spring值SpEL
    Spring之使用外部属性文件
    Spring之Bean的作用域
  • 原文地址:https://www.cnblogs.com/byfboke/p/9183903.html
Copyright © 2011-2022 走看看