mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Updated to current bootstrap-salt.sh version 2024-12-12, and removed shell scripts for RHEL5 & 6, long EOL
This commit is contained in:
parent
2db89637db
commit
3f0dd6b54f
5 changed files with 1734 additions and 3080 deletions
|
@ -1,27 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This legacy script pre-dates the salt-bootstrap project. In most cases, the
|
|
||||||
# bootstrap-salt.sh script is the recommended script for installing salt onto
|
|
||||||
# a new minion. However, that may not be appropriate for all situations. This
|
|
||||||
# script remains to help fill those needs, and to provide an example for users
|
|
||||||
# needing to write their own deploy scripts.
|
|
||||||
|
|
||||||
rpm -Uvh --force http://mirrors.kernel.org/fedora-epel/5/x86_64/epel-release-5-4.noarch.rpm
|
|
||||||
yum install -y salt-minion git
|
|
||||||
rm -rf /usr/lib/python2.6/site-packages/salt*
|
|
||||||
rm -rf /usr/bin/salt-*
|
|
||||||
mkdir -p /root/git
|
|
||||||
cd /root/git
|
|
||||||
git clone git://github.com/saltstack/salt.git
|
|
||||||
cd salt
|
|
||||||
python26 setup.py install
|
|
||||||
cd
|
|
||||||
mkdir -p /etc/salt/pki
|
|
||||||
echo '{{ vm['priv_key'] }}' > /etc/salt/pki/minion.pem
|
|
||||||
echo '{{ vm['pub_key'] }}' > /etc/salt/pki/minion.pub
|
|
||||||
cat > /etc/salt/minion <<EOF
|
|
||||||
{{minion}}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
/sbin/chkconfig salt-minion on
|
|
||||||
service salt-minion start
|
|
|
@ -1,19 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This legacy script pre-dates the salt-bootstrap project. In most cases, the
|
|
||||||
# bootstrap-salt.sh script is the recommended script for installing salt onto
|
|
||||||
# a new minion. However, that may not be appropriate for all situations. This
|
|
||||||
# script remains to help fill those needs, and to provide an example for users
|
|
||||||
# needing to write their own deploy scripts.
|
|
||||||
|
|
||||||
rpm -Uvh --force http://mirrors.kernel.org/fedora-epel/5/x86_64/epel-release-5-4.noarch.rpm
|
|
||||||
yum install -y salt-minion
|
|
||||||
mkdir -p /etc/salt/pki
|
|
||||||
echo '{{ vm['priv_key'] }}' > /etc/salt/pki/minion.pem
|
|
||||||
echo '{{ vm['pub_key'] }}' > /etc/salt/pki/minion.pub
|
|
||||||
cat > /etc/salt/minion <<EOF
|
|
||||||
{{minion}}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
/sbin/chkconfig salt-minion on
|
|
||||||
service salt-minion start
|
|
|
@ -1,27 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This legacy script pre-dates the salt-bootstrap project. In most cases, the
|
|
||||||
# bootstrap-salt.sh script is the recommended script for installing salt onto
|
|
||||||
# a new minion. However, that may not be appropriate for all situations. This
|
|
||||||
# script remains to help fill those needs, and to provide an example for users
|
|
||||||
# needing to write their own deploy scripts.
|
|
||||||
|
|
||||||
rpm -Uvh --force http://mirrors.kernel.org/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
|
|
||||||
yum -y install salt-minion git --enablerepo epel-testing
|
|
||||||
rm -rf /usr/lib/python/site-packages/salt*
|
|
||||||
rm -rf /usr/bin/salt-*
|
|
||||||
mkdir -p /root/git
|
|
||||||
cd /root/git
|
|
||||||
git clone git://github.com/saltstack/salt.git
|
|
||||||
cd salt
|
|
||||||
python setup.py install
|
|
||||||
cd
|
|
||||||
mkdir -p /etc/salt/pki
|
|
||||||
echo '{{ vm['priv_key'] }}' > /etc/salt/pki/minion.pem
|
|
||||||
echo '{{ vm['pub_key'] }}' > /etc/salt/pki/minion.pub
|
|
||||||
cat > /etc/salt/minion <<EOF
|
|
||||||
{{minion}}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
/sbin/chkconfig salt-minion on
|
|
||||||
service salt-minion start
|
|
|
@ -1,19 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This legacy script pre-dates the salt-bootstrap project. In most cases, the
|
|
||||||
# bootstrap-salt.sh script is the recommended script for installing salt onto
|
|
||||||
# a new minion. However, that may not be appropriate for all situations. This
|
|
||||||
# script remains to help fill those needs, and to provide an example for users
|
|
||||||
# needing to write their own deploy scripts.
|
|
||||||
|
|
||||||
rpm -Uvh --force http://mirrors.kernel.org/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
|
|
||||||
yum -y install salt-minion --enablerepo epel-testing
|
|
||||||
mkdir -p /etc/salt/pki
|
|
||||||
echo '{{ vm['priv_key'] }}' > /etc/salt/pki/minion.pem
|
|
||||||
echo '{{ vm['pub_key'] }}' > /etc/salt/pki/minion.pub
|
|
||||||
cat > /etc/salt/minion <<EOF
|
|
||||||
{{minion}}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
/sbin/chkconfig salt-minion on
|
|
||||||
service salt-minion start
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue