summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-11-15 08:47:04 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-11-15 08:47:16 +0100
commit75842cbbaeb8a2b3750581fb429e4a23b7cf9dd2 (patch)
tree21d14fa7656a589e233cfb8a75cda165780e6f10
parent97a92d27c308e9b9230c9d1227410e97aa41b764 (diff)
downloadstick-stable.tar.gz
Add maipo 16.1 versionstable
-rw-r--r--vms/autoinstall/maipo-161.cfg51
-rwxr-xr-xvms/bin/setup-kolab-vm9
2 files changed, 60 insertions, 0 deletions
diff --git a/vms/autoinstall/maipo-161.cfg b/vms/autoinstall/maipo-161.cfg
new file mode 100644
index 0000000..c65fd6e
--- /dev/null
+++ b/vms/autoinstall/maipo-161.cfg
@@ -0,0 +1,51 @@
+lang en_US.UTF-8
+keyboard us
+timezone --utc Europe/Zurich
+text
+skipx
+auth --useshadow --enablemd5
+selinux --permissive
+firewall --enabled
+firstboot --disabled
+zerombr
+clearpart --all --initlabel
+autopart
+rootpw --plaintext Welcome2KolabSystems
+bootloader --location=mbr
+services --enabled=NetworkManager --disabled=network
+
+network --hostname=kolab.example.org
+
+reboot
+
+repo --name=epel --baseurl=http://download.fedoraproject.org/pub/epel/7/x86_64/
+repo --name=updates --baseurl=http://mirror.kolabsys.com/distr/centos/7/updates/x86_64/
+
+%packages
+epel-release
+vim-enhanced
+%end
+
+%post
+# Set the default runlevel to 3
+# https://bugzilla.redhat.com/show_bug.cgi?id=440058
+sed -i -r -e 's/^id:[0-6]:initdefault:$/id:3:initdefault:/g' /etc/inittab
+
+# Insert SSH key
+mkdir -p /root/.ssh/
+cat >/root/.ssh/authorized_keys <<EOF
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDrZ7CFynnbWFx8hqLvZP/TfROONbQy6VLu1lFHcc4Rk5vnlW4E5nIMmiQrhkp8iSNjy3PNQUIIQ1WbJfu5cUJx+sd+18b7lDz9SHeraNVAPu9s5vhSm0LiEIZa218H2IffaMKhNVgrvXhezIXLIL9imNRtpZ0HfnnSKSdyfrbE6lTCQ41H2PvMxsBZaXM5928GGt+A1LiLgYbtgIipJlNi94Elbt0Oj4qFIQ7payA4joWP4cfTLFfCVrTrryYTdoDDq0wI1N4LFBGuVA3cC/FJAbwYHhe6jQB+AG2P/y+O11xBwRGnQRLTgdVe15Jyl13yl+wwiX6KEqWJSsKi+s1KiKJn8VDc76I5f8iWp1Iwa4zR8I5KRxSp68wbOMVJjr/hbTdPfQQr2628HR99jFgFPdWZEY08o82vV4YcjtIeIqIgdGpRAkle11plmgj7wtS8DpxXCa5qj9HXpRzYPOd9lL2u0NSFMSMCigxskG62Lzui8GBSZZA5rjD444hTbdZPaWGEaV07taI7mHlmYYCvWNQpe3BMI2434UXYaYKIvEBv0CSwrjB0/D0dNWlJ4goj6VkdUyeYdQQ5NH9CmgVIagL2xQzfA9uu4BVBFA6LTlzRsrRJ2JXQAioOYqm7kP7FLIyH8y2QSQokMEDqcmjtxDfaH+7ULz63YNRYo5sGgw== kanarip@kanarip.ch
+EOF
+chmod 700 /root/.ssh
+chmod 600 /root/.ssh/authorized_keys
+
+cat > /etc/yum.repos.d/kolab-16-koji.repo << EOF
+[kolab-16-koji]
+name=Kolab 16 Packages Directory from Koji (CentOS_7)
+baseurl=http://koji.kolabsys.com/static-repos/feature-el7-kolab-16-development-build/latest/\$basearch/
+gpgcheck=0
+enabled=1
+EOF
+
+rpm --import https://ssl.kolabsys.com/maipo.asc
+%end
diff --git a/vms/bin/setup-kolab-vm b/vms/bin/setup-kolab-vm
index 1d79b82..3a7023e 100755
--- a/vms/bin/setup-kolab-vm
+++ b/vms/bin/setup-kolab-vm
@@ -75,6 +75,11 @@ while [ $# -gt 0 ]; do
shift
;;
+ 161)
+ ver="161"
+ shift
+ ;;
+
winterfell)
ver="winterfell"
shift
@@ -375,6 +380,10 @@ elif [ "${ver}" == "160" ]; then
if [ ! -f "${TMPDIR:-/tmp}/stick.git/vms/autoinstall/${dist}-${ver}-${suffix}.cfg" ]; then
extra_opts=$(echo ${extra_opts} | sed -e "s/\-${suffix}.cfg/\-empty.cfg/g")
fi
+elif [ "${ver}" == "161" ]; then
+ if [ ! -f "${TMPDIR:-/tmp}/stick.git/vms/autoinstall/${dist}-${ver}-${suffix}.cfg" ]; then
+ extra_opts=$(echo ${extra_opts} | sed -e "s/\-${suffix}.cfg/\-empty.cfg/g")
+ fi
fi
sed -i -r \