Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does Centos install and deploy salt yum?

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

One installation of salt

1.1 install the specified version of salt

Resolve upstream errors in pycryptodome

Rpm-e-nodeps python2-pycryptodomex

Yum install python-crypto

Run the command to install the SaltStack repository and keys:

Rpm-- import https://repo.saltstack.com/yum/redhat/7/x86_64/archive/2016.11.10/SALTSTACK-GPG-KEY.pub

Configure salt yum Feed

More / etc/yum.repos.d/saltstack.repo

[saltstack-repo]

Name=SaltStack repo for RHEL/CentOS $releasever

Baseurl= https://repo.saltstack.com/yum/redhat/$releasever/$basearch/archive/2016.11.10

Enabled=1

Gpgcheck=1

Gpgkey= https://repo.saltstack.com/yum/redhat/$releasever/$basearch/archive/2016.11.10/SALTSTACK-GPG-KEY.pub

Clear the yum cache

Yum clean expire-cache

Install salt-master

Yum install salt-master

Start the salt service

Systemctl restart salt-master

View salt version

Salt-version

Salt November 10, 2016 (Carbon)

Configure boot boot

Systemctl list-unit-files | grep salt

Systemctl enable salt-master

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report