Install Salt-minion on REHL5

Source: Internet
Author: User
Tags gpg saltstack

Install Salt-minion on REHL5

This article applies to rhel5.4, 6.4, 7. Take el5.4 for example only.

1 Online installation method 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/, save the following:

Epel.repoepel-testing.reposaltstack-salt-el5-epel-5.repo

2 The following main description of the offline installation method:

The main reason is that the server cannot sisu the network, so it should be installed with RPM package. Install RPM packages offline.

The first is to install the Downloadonly plugin:

# yum Install Yum-downloadonly

Then copy the repo file from 1 to the/etc/yum.repos.d/below:

Epel.repoepel-testing.reposaltstack-salt-el5-epel-5.repo

To download the installation package:

# yum install-y--downloadonly--downloaddir=/root/salt salt-minion

All the offline installation packages are available under/root/salt. Copy these packages to other rhel5.4 machines and use the RPM installation.

# RPM-IVH *.rpm# Service salt-minion status|restart|stop

Appendix 1:epel.repo

[Email protected] salt]# Cat/etc/yum.repos.d/epel.repo [Epel]name=extra Packages for Enterprise Linux 5-$basearchmirro Rlist=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

[[email protected] 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.F edoraproject.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

[Email protected] 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


Install Salt-minion on REHL5

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.