셸 스 크 립 트 설치 salt

883 단어 saltshell
셸 스 크 립 트 설치 salt
#!/bin/bash
#2018/6/28
#  firewalld
systemctl stop firewalld
systemctl disable firewalld
#     iptables
yum -y install iptables-services
systemctl start iptables
systemctl enable iptables
# itadmin  root     
admin="itadmin  ALL=(ALL)  ALL
itadmin ALL=(ALL) NOPASSWD: ALL" echo -e $admin >> /etc/sudoers salt="[saltstack-repo]
name=SaltStack repo for Red Hat Enterprise Linux $releasever
baseurl=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest
enabled=1
gpgcheck=1
gpgkey=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest/SALTSTACK-GPG-KEY.pub
https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest/base/RPM-GPG-KEY-CentOS-7" echo -e $salt > /etc/yum.repos.d/saltstack.repo #yum install salt-master yum install salt-minion

좋은 웹페이지 즐겨찾기