refacto: Partial rewrite to manage nodes

This commit is contained in:
2026-03-17 02:07:45 +01:00
parent 0d467d737d
commit c0e0bc169e
11 changed files with 330 additions and 217 deletions

View File

@@ -1,25 +1,39 @@
---
# vars file for proxmox
# Informations to connect to API
proxmox_api_host: ""
proxmox_api_user: ""
proxmox_api_token_id: ""
proxmox_api_token_secret: ""
proxmox_api_validate_certs: false
# Proxmox VE node
## Node
proxmox_node_interfaces: []
## Cluster
proxmox_cluster_name: ""
# proxmox_cluster_link0: ""
# proxmox_cluster_link1: ""
## Storage
proxmox_storage: []
# Images list to download
proxmox_images: []
# Example:
# - url: "https://cloud.debian.org/images/cloud/bookworm-backports/latest/debian-12-backports-genericcloud-amd64.qcow2"
# dest: /mnt/pve/pumbaa/disk_image/bookworm.qcow2
# Delegate tasks to Proxmox VE host (local API call !)
# Proxmox VE instance
## Delegate tasks to Proxmox VE host (local API call !)
proxmox_delegate_to: ""
# Informations to connect to API
proxmox_api_host: ""
proxmox_api_user: ""
proxmox_api_token_id: ""
proxmox_api_token_secret: ""
# Type of instance (ct or vm)
## Type of instance (ct or vm)
proxmox_instance_type: ""
# Instance configuration
## Instance configuration
proxmox_instance_node: ""
proxmox_instance_autostart: true
proxmox_instance_args: ""
@@ -60,23 +74,21 @@ proxmox_instance_cloudinit_nameservers: ""
proxmox_instance_cloudinit_searchdomains: null
proxmox_instance_cloudinit_sshkeys: ""
# HA configuration
## HA configuration
proxmox_instance_ha:
# Example:
# group: pve1
# max_restart: 3
# max_relocate: 2
# state: started
max_restart: 3
max_relocate: 2
state: started
# Configuration to wait SSH
## Configuration to wait SSH
proxmox_instance_ssh_ip: ""
proxmox_instance_ssh_port: ""
# Start instance after installation
## Start instance after installation
proxmox_start_instance: true
# Reboot instance when changed
## Reboot instance when changed
proxmox_reboot_instance: true
# Start qemu-guest-agent.service at the end
## Start qemu-guest-agent.service at the end
proxmox_start_agent: true