|
This article applies to rhel5.4, 6.4, 7. only el5.4 example.
1-line installation is very simple:
# Wget --no-check-certificate -O install_salt.sh https://bootstrap.saltstack.com
# Sh install_salt.sh -I
Above applies to el5, el6, el7 versions. Can be found in the following /etc/yum.repos.d/ pile repo, save a few below:
epel.repo
epel-testing.repo
saltstack-salt-el5-epel-5.repo
2 are mainly described below Offline installation:
Here is the main server can not go outside the network, so you want to use rpm package installation. Offline installation package rpm.
The first is to install downloadonly plug-in:
# Yum install yum-downloadonly
Then copy the files to the repo 1 /etc/yum.repos.d/ the following:
epel.repo
epel-testing.repo
saltstack-salt-el5-epel-5.repo
Download the installation package:
# Yum install -y --downloadonly --downloaddir = / root / salt salt-minion
In / root / salt obtained under a full offline installation package. Copy these packages to other rhel5.4 machine, you can use rpm 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
mirrorlist = http:? //mirrors.Fedoraproject.org/mirrorlist repo = 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
mirrorlist = http:? //mirrors.fedoraproject.org/mirrorlist repo = 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
mirrorlist = http:? //mirrors.fedoraproject.org/mirrorlist repo = 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
mirrorlist = http: //mirrors.fedoraproject.org/mirrorlist repo = 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
mirrorlist = http: //mirrors.fedoraproject.org/mirrorlist repo = 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
mirrorlist = http: //mirrors.fedoraproject.org/mirrorlist repo = 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 = https: //copr-be.cloud.fedoraproject.org/results/saltstack/salt-el5/epel-5-$basearch/
skip_if_unavailable = True
gpgcheck = 1
gpgkey = https: //copr-be.cloud.fedoraproject.org/results/saltstack/salt-el5/pubkey.gpg
enabled = 1 |
|
|
|