Install salt-minion ON REHL5

Source: Internet
Author: User
Tags saltstack

Install salt-minion ON REHL5
Install salt-minion ON REHL5

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.repoepel-testing.reposaltstack-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.repoepel-testing.reposaltstack-salt-el5-epel-5.repo

Download the installation package:

 

 

# yum install -y --downloadonly --downloaddir=/root/salt 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 - $basearchmirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearchfailovermethod=priorityenabled=1gpgcheck=0#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL[epel-debuginfo]name=Extra Packages for Enterprise Linux 5 - $basearch - Debugmirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearchfailovermethod=priorityenabled=0#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPELgpgcheck=0[epel-source]name=Extra Packages for Enterprise Linux 5 - $basearch - Sourcemirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearchfailovermethod=priorityenabled=0#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPELgpgcheck=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/$basearchmirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel5&arch=$basearchfailovermethod=priorityenabled=0gpgcheck=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/debugmirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=testing-debug-epel5&arch=$basearchfailovermethod=priorityenabled=0#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPELgpgcheck=0[epel-testing-source]name=Extra Packages for Enterprise Linux 5 - Testing - $basearch - Source#baseurl=http://download.fedoraproject.org/pub/epel/testing/5/SRPMSmirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=testing-source-epel5&arch=$basearchfailovermethod=priorityenabled=0#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPELgpgcheck=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 saltstackbaseurl=https://copr-be.cloud.fedoraproject.org/results/saltstack/salt-el5/epel-5-$basearch/skip_if_unavailable=Truegpgcheck=1gpgkey=https://copr-be.cloud.fedoraproject.org/results/saltstack/salt-el5/pubkey.gpgenabled=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.