Verified Commit 1b95d566 authored by clayton craft's avatar clayton craft 🕺🏻

debian_installer: work around versioning issues with salt-minion and python-tornado

parent 567580d1
......@@ -63,6 +63,25 @@ Name=${name}
# python-tornado in testing is >=5, which is incompatible with salt-minion
cat > /etc/apt/apt.conf.d/99proxy << EOF
Acquire::http::Proxy ""; DIRECT;
apt install gpg -y
https_proxy=$proxy wget
apt-key add
# use 2017.7 repo because latest repo is 'too new' with salt on the master
echo "deb stretch main" > /etc/apt/sources.list.d/saltstack.list
http_proxy=$proxy wget
apt update
apt install gdebi-core -y
gdebi -n python-tornado_4.4.3-1_amd64.deb
apt install salt-minion salt-common -y
rm -f python-tornado_4.4.3-1_amd64.deb
unset proxy
# setup resolve for systemd-resolved
rm /etc/resolv.conf
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
......@@ -85,11 +85,10 @@ d-i pkgsel/update-policy select none
d-i grub-installer/only_debian boolean true
d-i grub-installer/bootdev string /dev/<disk>
# Install the salt-minion and avahi-daemon
# These are needed for salt to finish provisioning the system
# XXX: Tsocks is required here because it is currently only in debian stable
# and sid, but not testing for "reasons"
d-i pkgsel/include string salt-minion avahi-daemon
# Install avahi-daemon
# Note: Salt is not installed here because it is no longer in the debian repo..
# It will be installed in
d-i pkgsel/include string avahi-daemon
d-i preseed/late_command string \
cp /cdrom/ /target/; in-target ./
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment