proxmox_upgrade

proxmox-upgrade

This playbook automates the upgrade process for Proxmox Virtual Environment (PVE) and Proxmox Backup Server (PBS).

Currently following upgrade paths are supported:

  • Proxmox Virtual Environment version 7->8
  • Proxmox Backup Server version 2->3

This playbooks follows the instructions from the offical documentation:

This is a work in progress, if you find any bugs or problems please open a new issue.

details of PVE upgrade:

  • check prerequisites
  • create backup of important configuration files under /var/backups
  • install latest packages from current version
  • shutdown virtual maschines
  • Debian dist-upgrade
  • reboot

I highly recommend running the pve7to8 --full checklist tool first and fix all detected problems before upgrading.

You should also use it after the upgrade to verify that everything is ok.

details of PBS upgrade:

  • check prerequisites
  • create backup of important configuration files under /var/backups
  • install latest packages from current version
  • put datastores in read-only mode
  • Debian dist-upgrade
  • reboot
  • put datastores back in write mode
  • check needed services

playbook usage

  1. install this playbook via Ansible Galaxy
ansible-galaxy install marvhh.proxmox_upgrade
  1. create a playbook yaml file

example:

- name: Upgrade proxmox server
  become: true
  hosts: proxmox_server

  roles:
    - marvhh.proxmox_upgrade
  1. run ansible-playbook

Options

Following options are currently supported:

  • reboot: Choose if the reboot of the maschine should be done automatically
  • shutdown_vms: shutdown virtual maschines automatically
  • use_enterprise_repos: should the Proxmox enterprise repositories be used?

Author

Marvin Stark

About

automate Proxmox upgrade process

Install
ansible-galaxy install marvhh/proxmox-upgrade
GitHub repository
License
mit
Downloads
58
Owner
Nerd @compositiv - Helping our customers grow! ❤️ Open Source