pve1,2,8,9 are dead + pve fixups

This commit is contained in:
2025-08-13 22:06:49 +03:00
parent f017a25d9e
commit 16e12f10ab
4 changed files with 7 additions and 19 deletions

View File

@@ -38,14 +38,6 @@ all:
# https://wiki.k-space.ee/hosting/proxmox # https://wiki.k-space.ee/hosting/proxmox
proxmox: proxmox:
hosts: hosts:
pve1.proxmox.infra.k-space.ee:
ansible_host: 172.21.20.1
pve2.proxmox.infra.k-space.ee:
ansible_host: 172.21.20.2
pve8.proxmox.infra.k-space.ee:
ansible_host: 172.21.20.8
pve9.proxmox.infra.k-space.ee:
ansible_host: 172.21.20.9
pve90.proxmox.infra.k-space.ee: pve90.proxmox.infra.k-space.ee:
ansible_host: 172.21.20.90 ansible_host: 172.21.20.90
pve91.proxmox.infra.k-space.ee: pve91.proxmox.infra.k-space.ee:

View File

@@ -8,7 +8,7 @@ esac
source /root/telegram.env source /root/telegram.env
alias updl="rup && apt update -q && apt full-upgrade --download-only -y -qq && apt autoremove -y -qq" alias updl="`# rup &&` apt update -q && apt full-upgrade --download-only -y -qq && apt autoremove -y -qq"
#TODO: reinstate restic #TODO: reinstate restic
alias rup="restic -q -r local:/root/jc/restic/"$HOSTNAME" -p /root/jc/restic/passwd backup /etc ~/.bash_history && restic -q -r local:/root/jc/restic/"$HOSTNAME" -p /root/jc/restic/passwd forget --prune --keep-last 14 --keep-within 3m --keep-weekly 520" alias rup="restic -q -r local:/root/jc/restic/"$HOSTNAME" -p /root/jc/restic/passwd backup /etc ~/.bash_history && restic -q -r local:/root/jc/restic/"$HOSTNAME" -p /root/jc/restic/passwd forget --prune --keep-last 14 --keep-within 3m --keep-weekly 520"
#TODO: restic -p ~/jc/restic/passwd -r local:"??no more nas??/restic/$HOSTNAME" init #TODO: restic -p ~/jc/restic/passwd -r local:"??no more nas??/restic/$HOSTNAME" init
@@ -80,7 +80,7 @@ function _on {
} }
# shellcheck disable=SC2120 # shellcheck disable=SC2120
function off { function on {
if [[ "$#" -gt 0 ]]; then if [[ "$#" -gt 0 ]]; then
_on "$@" _on "$@"
return "$?" return "$?"

View File

@@ -11,8 +11,8 @@ if [[ "$#" -ne 2 ]]; then
fi fi
storage="$1" storage="$1"
vmid="$2" vmid="$2"
img=debian-12 img=debian-13
ident=d12.v2 ident=d13.v2
size=100G size=100G
# will error if vmid exists # will error if vmid exists
@@ -33,7 +33,7 @@ qm create "$vmid" \
# Whole script supposed to be replaced by self-service suite anyway. # Whole script supposed to be replaced by self-service suite anyway.
#TODO: virt-builder version is crap, replacing it with drop-in: #TODO: virt-builder version is crap, replacing it with drop-in:
wget 'https://cdimage.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.raw' -O "$img".img wget 'https://cdimage.debian.org/images/cloud/bookworm/latest/debian-13-genericcloud-amd64.raw' -O "$img".img
function cleanup { function cleanup {
rm "$img".img rm "$img".img

View File

@@ -19,13 +19,9 @@
ansible.builtin.systemd_service: ansible.builtin.systemd_service:
name: networking.service name: networking.service
state: reloaded state: reloaded
---
- name: PVE CEPH network configuration - name: PVE CEPH network configuration
hosts: hosts: proxmox
- pve90.proxmox.infra.k-space.ee
- pve91.proxmox.infra.k-space.ee
- pve92.proxmox.infra.k-space.ee
- pve93.proxmox.infra.k-space.ee
serial: 1 # one host at a time serial: 1 # one host at a time
tasks: tasks: