Skip to content

Commit

Permalink
Feature/proxmox implementation (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
otnxSl authored Jan 16, 2025
1 parent c134ca5 commit 771cb2b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions acquire/acquire.py
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,8 @@ class Boot(Module):
("glob", "/boot/grub*"),
("glob", "/boot/init*"),
("glob", "/boot/system*"),
# Proxmox specific file
("glob", "/boot/pve*"),
]


Expand Down Expand Up @@ -1410,6 +1412,10 @@ class Var(Module):
("dir", "/var/audit"),
("dir", "/var/cron"),
("dir", "/var/run"),
# Proxmox specific files
("dir", "/var/lib/pve-cluster"),
("dir", "/var/lib/pve-firewall"),
("dir", "/var/lib/pve-manager"),
# some OS-X specific files
("dir", "/private/var/at"),
("dir", "/private/var/db/diagnostics"),
Expand Down Expand Up @@ -2041,27 +2047,46 @@ class OSXProfile:
]


class ProxmoxProfile:
MINIMAL = [
Etc,
Boot,
Home,
SSH,
Var,
]
DEFAULT = MINIMAL
FULL = [
*DEFAULT,
History,
WebHosting,
]


PROFILES = {
"full": {
"windows": WindowsProfile.FULL,
"linux": LinuxProfile.FULL,
"bsd": BsdProfile.FULL,
"esxi": ESXiProfile.FULL,
"osx": OSXProfile.FULL,
"proxmox": ProxmoxProfile.FULL,
},
"default": {
"windows": WindowsProfile.DEFAULT,
"linux": LinuxProfile.DEFAULT,
"bsd": BsdProfile.DEFAULT,
"esxi": ESXiProfile.DEFAULT,
"osx": OSXProfile.DEFAULT,
"proxmox": ProxmoxProfile.DEFAULT,
},
"minimal": {
"windows": WindowsProfile.MINIMAL,
"linux": LinuxProfile.MINIMAL,
"bsd": BsdProfile.MINIMAL,
"esxi": ESXiProfile.MINIMAL,
"osx": OSXProfile.MINIMAL,
"proxmox": ProxmoxProfile.MINIMAL,
},
"none": None,
}
Expand Down Expand Up @@ -2090,13 +2115,15 @@ class VolatileProfile:
"bsd": [],
"esxi": [],
"osx": [],
"proxmox": [],
},
"extensive": {
"windows": VolatileProfile.DEFAULT,
"linux": VolatileProfile.EXTENSIVE,
"bsd": VolatileProfile.EXTENSIVE,
"esxi": VolatileProfile.EXTENSIVE,
"osx": [],
"proxmox": [],
},
"none": None,
}
Expand Down

0 comments on commit 771cb2b

Please sign in to comment.