点击这里获取免费大流量卡

CentOS

  1. ==下载官网源安装到本地==
    > https://repo.saltstack.com/index.html#rhel
rpm -e --nodeps python2-pycryptodomex
yum install python-crypto
yum install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm
  1. ==安装createrepo和yum-utils工具,主要用作下载官方的repo源对应的软件包和制作独立软件源仓库的命令。==
yum install createrepo yum-utils -y
yum repolist
  1. ==将salt-latest仓库里源对应的rpm软件包下载至/opt/yumsalt目录并做独立的仓库(再次更新源执行使用)==
mkdir /opt/yumsalt
cd /opt/yumsalt;rm -rf salt-latest
reposync -d -n -r salt-latest -p /opt/yumsalt/
createrepo /opt/yumsalt/salt-latest/
  1. ==做软连接到http目录==
ln -sv /opt/yumsalt/salt-latest/ /var/www/html/salt
  1. ==提供给局域网服务器使用==
    > vi /etc/yum.repos.d/salt-latest.repo
[salt-latest]
name=SaltStack Latest Release Channel for RHEL/Centos $releasever
baseurl=http://192.168.200.150/salt/
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/saltstack-signing-key 
rpm --import https://repo.saltstack.com/yum/redhat/7/x86_64/archive/2017.7.3/SALTSTACK-GPG-KEY.pub

Ubuntu

cd /opt/yumsalt/apt/
rsync -vaH --numeric-ids --delete --delete-after --delay-updates rsync://repo.saltstack.com/saltstack_pkgrepo_ubuntu/16.04/amd64/latest/ .
ln -s /opt/yumsalt/apt/ /var/www/html/apt-salt
vi /etc/apt/sources.list.d/saltstack.list
deb http://192.168.200.150/apt-salt xenial main

点击这里获取免费大流量卡

如果您喜欢本站,点击这儿可以捐赠本站
这些信息可能会帮助到你: 联系作者 | 报毒说明
修改版本软件,加群提示等均为修改者自留,非本站信息,注意鉴别