Commit 447a60d2 authored by Rene Hadler's avatar Rene Hadler

Adding new Desktops

parent 3daf3ee4
[Autologin]
User=user
Session=plasma.desktop
......@@ -14,7 +14,7 @@ import subprocess
import requests
# Globale Variablen
VERSION = "0.9.0"
VERSION = "0.9.1"
TITLE = "iteas Proxmox Installer " + VERSION
CHECK_INTERNET_IP = "77.235.68.39"
VM_TEMPLATE_CIFS_SHARE = "//srv-backup01.iteas.at/archiv-replica"
......@@ -219,7 +219,7 @@ class Installer():
self.ENVIRONMENTS = {"stable": "Stabile Proxmox Enterprise Updates", "test": "Proxmox Testing Updates", "noupdate": "Keine Proxmox Updates"}
self.MONITORINGS = {"nagios": "Nagios NRPE", "checkmk": "CheckMK Agent"}
self.FILESYSTEMS = {"standard": "Standard (ext3/4, reiserfs, xfs)", "zfs": "ZFS"}
self.DESKTOPS = {"kein": "Nein", "plasma": "KDE5-Plasma", "i3": "i3-WM (testing)"}
self.DESKTOPS = {"kein": "Nein", "plasma": "KDE5-Plasma", "plasma-light": "KDE5-Plasma Light", "plasma-light-win": "KDE5-Plasma Light Windows Workstation", "i3": "i3-WM (testing)"}
self.VM_IMPORTS = {
"114": {"name": "ITEAS Managementserver", "template": False},
"139": {"name": "Windows 7 Pro", "template": True},
......@@ -837,7 +837,7 @@ class Installer():
file_append("/etc/nagios/nrpe.cfg", "command[check_openmanage]=/usr/lib/nagios/plugins/idrac_2.2rc4 -H 10.10.10.10 -v 2c -c public")
# Desktop Konfiguration
if self.desktop == "plasma":
if self.desktop == "plasma-light":
run_cmd('apt install -y lm-sensors curl nomachine firefox-esr firefox-esr-l10n-de virt-viewer kde-plasma-desktop qapt-deb-installer filelight khelpcenter mpv curl git')
run_cmd('wget -O /tmp/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz https://git.styrion.net/iteas/iteas-tools/raw/master/proxmox/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz')
run_cmd('rm -rf /etc/skel', argShell=True)
......@@ -846,6 +846,26 @@ class Installer():
run_cmd('rm /tmp/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz', argShell=True)
run_cmd('useradd iteasadm -c iteasadm -G dialout,cdrom,video,plugdev,games,sudo -m -s /bin/zsh -U -p \'$1$CvBQaSeR$0phJus.ly543oq2fKOtT40\'', argShell=True)
elif self.desktop == "plasma-light-win":
run_cmd('apt install -y lm-sensors curl nomachine firefox-esr firefox-esr-l10n-de virt-viewer kde-plasma-desktop qapt-deb-installer filelight khelpcenter mpv curl git')
run_cmd('wget -O /tmp/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz https://git.styrion.net/iteas/iteas-tools/raw/master/proxmox/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz')
run_cmd('rm -rf /etc/skel', argShell=True)
run_cmd('tar -xzf /tmp/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz -C /etc', argShell=True)
run_cmd('mv /etc/KDE_Plasma5_Default_Profile-master /etc/skel', argShell=True)
run_cmd('rm /tmp/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz', argShell=True)
run_cmd('useradd user -c user -G dialout,cdrom,video,plugdev,games -m -s /bin/zsh -U -p \'$1$CvBQaSeR$0phJus.ly543oq2fKOtT40\'', argShell=True)
run_cmd('wget -O /etc/sddm.conf https://git.styrion.net/iteas/iteas-tools/raw/master/proxmox/etc/sddm.conf-user-autologon')
run_cmd('useradd iteasadm -c iteasadm -G dialout,cdrom,video,plugdev,games,sudo -m -s /bin/zsh -U -p \'$1$CvBQaSeR$0phJus.ly543oq2fKOtT40\'', argShell=True)
elif self.desktop == "plasma":
run_cmd('apt install -y lm-sensors curl nomachine firefox-esr firefox-esr-l10n-de virt-viewer kde-plasma-desktop qapt-deb-installer filelight khelpcenter mpv curl git')
run_cmd('wget -O /tmp/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz https://git.styrion.net/iteas/iteas-tools/raw/master/proxmox/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz')
run_cmd('rm -rf /etc/skel', argShell=True)
run_cmd('tar -xzf /tmp/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz -C /etc', argShell=True)
run_cmd('mv /etc/KDE_Plasma5_Default_Profile-master /etc/skel', argShell=True)
run_cmd('rm /tmp/KDE_Plasma5_Default_Profile-Proxmox5.tar.gz', argShell=True)
run_cmd('cd /tmp && git clone https://gitlab+deploy-token-1:-9F-Ty1feEf-9sQy_if4@git.styrion.net/iteas/proxmox-workstation.git && rm -rf /home/user && cp -r proxmox-workstation /home/user && chown -R user:user /home/user', argShell=True)
elif self.desktop == "i3":
pass
......
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