Install salt-minion ON RHEL5

Source: Internet
Author: User
Tags gpg saltstack

Install salt-minion ON RHEL5

This article applies to rhel5.4, 6.4, and. el5.4 is used as an example.

1 online installation is extremely simple:

# Wget -- no-check-certificate-O install_salt.sh https://bootstrap.saltstack.com
# Sh install_salt.sh-I

The above applies to el5, el6, el7, and other versions. You can find a bunch of repo under/etc/yum. repos. d/and save the following:

Epel. repo
Epel-testing.repo
Saltstack-salt-el5-epel-5.repo

2 The following describes the offline installation method:
The main reason is that the server cannot be connected to the Internet. Therefore, the rpm package must be used for installation. Install the rpm package offline.

First, install the downloadonly plug-in:

# Yum install yum-downloadonly
Copy the repo file in 1 to/etc/yum. repos. d:

Epel. repo
Epel-testing.repo
Saltstack-salt-el5-epel-5.repo

Download the installation package:

# Yum install-y -- downloadonly -- downloaddir =/root/salt-minion
All offline installation packages are obtained under/root/salt. Copy these installation packages to other rhel5.4 machines and use rpm for installation.

# Rpm-ivh *. rpm
# Service salt-minion status | restart | stop

Appendix 1: epel. repo

[Root @ el5-test salt] # cat/etc/yum. repos. d/epel. repo
[Epel]
Name = Extra Packages for Enterprise Linux 5-$ basearch
Using list = http://mirrors.Fedoraproject.org/mirrorlist? Epel-5 & arch = $ basearch
Failovermethod = priority
Enabled = 1
Gpgcheck = 0
# Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

[Epel-debuginfo]
Name = Extra Packages for Enterprise Linux 5-$ basearch-Debug
Using list = http://mirrors.fedoraproject.org/mirrorlist? Epel-debug-5 & arch = $ basearch
Failovermethod = priority
Enabled = 0
# Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
Gpgcheck = 0

[Epel-source]
Name = Extra Packages for Enterprise Linux 5-$ basearch-Source
Using list = http://mirrors.fedoraproject.org/mirrorlist? Epel-source-5 & arch = $ basearch
Failovermethod = priority
Enabled = 0
# Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
Gpgcheck = 0

Appendix 2: epel-testing.repo

[Root @ el5-test salt] # cat/etc/yum. repos. d/epel-testing.repo
[Epel-testing]
Name = Extra Packages for Enterprise Linux 5-Testing-$ basearch
# Baseurl = http://download.fedoraproject.org/pub/epel/testing/5/?basearch
Using list = http://mirrors.fedoraproject.org/mirrorlist? Testing-epel5 & arch = $ basearch
Failovermethod = priority
Enabled = 0
Gpgcheck = 0
# Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

[Epel-testing-debuginfo]
Name = Extra Packages for Enterprise Linux 5-Testing-$ basearch-Debug
# Baseurl = http://download.fedoraproject.org/pub/epel/testing/5/?basearch/debug
Using list = http://mirrors.fedoraproject.org/mirrorlist? Testing-debug-epel5 & arch = $ basearch
Failovermethod = priority
Enabled = 0
# Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
Gpgcheck = 0

[Epel-testing-source]
Name = Extra Packages for Enterprise Linux 5-Testing-$ basearch-Source
# Baseurl = http://download.fedoraproject.org/pub/epel/testing/5/SRPMS
Using list = http://mirrors.fedoraproject.org/mirrorlist? Testing-source-epel5 & arch = $ basearch
Failovermethod = priority
Enabled = 0
# Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
Gpgcheck = 0

Appendix 3: saltstack-salt-el5-epel-5.repo

[Root @ el5-test salt] # cat/etc/yum. repos. d/saltstack-salt-el5-epel-5.repo
Saltstack-salt-el5
Name = Copr repo for salt-el5 owned by saltstack
Baseurl = Signature/
Skip_if_unavailable = True
Gpgcheck = 1
Gpgkey = https://copr-be.cloud.fedoraproject.org/results/saltstack/salt-el5/pubkey.gpg
Enabled = 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.