Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add proxmox-ve #1518

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function os_info() {
popos) INFO="Pop!_OS|-|https://pop.system76.com/|Operating system for STEM and creative professionals who use their computer as a tool to discover and create.";;
porteus) INFO="Porteus|-|http://www.porteus.org/|Complete linux operating system that is optimized to run from CD, USB flash drive, hard drive, or other bootable storage media.";;
primtux) INFO="PrimTux|-|https://primtux.fr/|A complete and customizable GNU/Linux operating system intended for primary school students and suitable even for older hardware.";;
proxmox-ve) INFO="Proxmox VE|-|https://proxmox.com/en/proxmox-virtual-environment/|Proxmox Virtual Environment is a complete, open-source server management platform for enterprise virtualization.";;
pureos) INFO="PureOS|-|https://www.pureos.net/|A fully free/libre and open source GNU/Linux operating system, endorsed by the Free Software Foundation.";;
reactos) INFO="ReactOS|-|https://reactos.org/|Imagine running your favorite Windows applications and drivers in an open-source environment you can trust.";;
rebornos) INFO="RebornOS|-|https://rebornos.org/|Aiming to make Arch Linux as user friendly as possible by providing interface solutions to things you normally have to do in a terminal.";;
Expand Down Expand Up @@ -461,6 +462,7 @@ function os_support() {
popos \
porteus \
primtux \
proxmox-ve \
pureos \
reactos \
rebornos \
Expand Down Expand Up @@ -934,6 +936,10 @@ function editions_primtux() {
echo 2022-10
}

function releases_proxmox-ve() {
echo $(web_pipe https://enterprise.proxmox.com/iso/ | grep proxmox-ve | grep -E -o '[0-9]+\.[0-9]+-[0-9]\.iso' | uniq | sort -ru | cut -d'.' -f 1-2)
}

function releases_pureos() {
web_pipe "https://www.pureos.net/download/" | grep -m 1 "downloads.puri" | cut -d '"' -f 2 | cut -d '-' -f 4
}
Expand Down Expand Up @@ -1464,6 +1470,10 @@ EOF
echo "cpu_cores=2" >> "${CONF_FILE}"
fi
;;
proxmox-ve)
echo "disk_size=\"20G\"" >> "${CONF_FILE}"
echo "ram=\"4G\"" >> "${CONF_FILE}"
;;
esac

if [ "${OS}" == "ubuntu" ] && [[ ${RELEASE} == *"daily"* ]]; then
Expand Down Expand Up @@ -2321,6 +2331,17 @@ function get_primtux() {
echo "${URL}/${ISO} ${HASH}"
}

function get_proxmox-ve() {
local HASH=""
local ISO=""
local URL=""
ISO="proxmox-ve_${RELEASE}.iso"
URL="https://enterprise.proxmox.com/iso"
HASH=$(web_pipe "${URL}/SHA256SUMS" | grep "${ISO}" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"

}

function get_pureos() {
local HASH=""
local ISO=""
Expand Down
Loading