scripts use to manage our multi-tenant proxmox cluster
create_organisation | ||
create_user | ||
create_vm | ||
delete_organisation | ||
delete_user | ||
delete_vm | ||
get_linklocal_for_vm | ||
manage_autostart | ||
README.md |
Proxmox Management
This repo contains script used to manage a multi-tenant proxmox environment for the Reudnetz w.V.. These scripts were created because ansible currently lacks modules to configure users and groups.
Please take note of all the orgas, users and vms you've created -- this collection does not keep track of that
Overview
We use users, groups, resource pools, and roles to build a multi-tenante proxmox instance.
The idea is that virtual machines/containers are created by an admin and moved into a resource pool that is
Requirements
-
zfs storage pool for customer compartments:
- change in
create_organisation
- change in
-
storage pool for customer vm disks:
zfs create rpool/customer-disks
pvesm add zfspool customer-disks --pool rpool/customer-disks --content images
- change in
create_vm
-
bridge for customer vms
- change in
create_vm
- needs to be tag aware
- vms tag there traffic with the vmid
- change in
Create a new VM
information you need to get beforehand from the custome:
- organisation
- username
step 1: create an organisation
- (if one does not already exist)
./create_organisation <name>
step 2: create the user account