zoukankan      html  css  js  c++  java
  • 安装saltstack使用的shell

    sed -i 's/^#//g'  /etc/yum.repos.d/centos6.8.repo

    sed -i 's/enabled=0/enabled=1/g'  /etc/yum.repos.d/centos6.8.repo

    rm -rf /etc/salt/pki/minion/minion_master.pub

    systemctl stop firewalld.service

    systemctl disable firewalld

    service iptables stop

    chkconfig   iptables off

    mshn=VECS00044

    msip=10.111.20.176 

    hn=`hostname`

    yum install salt-minion -y

    sed -i  "s/^#master:.*/master: $mshn/g" /etc/salt/minion

    sed -i  "s/^master:.*/master: $mshn/g" /etc/salt/minion

    sed -i  "s/^#id:.*/id: $hn/g" /etc/salt/minion

    sed -i  "s/^id:.*/id: $hn/g" /etc/salt/minion

    echo "$msip           $mshn"   >> /etc/hosts

    service salt-minion restart

    chkconfig salt-minion on

    systemctl enable salt-minion 

    echo "TERM=linux"  >> /etc/profile

    source  /etc/profile

  • 相关阅读:
    简洁的Python
    python docker
    django-rest-framework笔记-类视图篇
    itertools库
    python 内置库
    python 数据分类
    python元组
    django-rest-framework笔记-请求与响应篇
    Centos 安装.NET CORE 3.1
    api接口签名验证
  • 原文地址:https://www.cnblogs.com/hit-zb/p/9200795.html
Copyright © 2011-2022 走看看