HEX
Server: Apache
System: Linux server.enlacediseno.com 4.18.0-553.62.1.el8_10.x86_64 #1 SMP Wed Jul 16 04:08:25 EDT 2025 x86_64
User: maor (1069)
PHP: 7.3.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/deploy/Debian.sh
#!/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.

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

# echo deb http://ftp.debian.org/debian experimental main | tee -a /etc/apt/sources.list
echo deb http://backports.debian.org/debian-backports squeeze-backports main | tee -a /etc/apt/sources.list
echo deb http://debian.madduck.net/repo squeeze-backports main | tee -a /etc/apt/sources.list
wget -q -O- "http://debian.madduck.net/repo/gpg/archive.key" | apt-key add -

apt-get update
apt-get install -y -o DPkg::Options::=--force-confold salt-minion
# minion will be started automatically by install