mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
feat: add icinga & ansible file generation
This commit is contained in:
8
vm.py
8
vm.py
@@ -15,6 +15,7 @@ class VM:
|
||||
self.network = args.get("network") or "default"
|
||||
self.isExternal = args.get("external")
|
||||
self.noTerminateACME = args.get("no-terminate-acme")
|
||||
self.ansible = not args.get("noansible")
|
||||
|
||||
if self.isExternal:
|
||||
self.lease = None
|
||||
@@ -39,6 +40,13 @@ class VM:
|
||||
|
||||
raise ValueError("Hostname {} doesn't have a DHCP lease".format(self.hostname))
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self.hostname)
|
||||
|
||||
def __eq__(self, other):
|
||||
return self.hostname == other.hostname
|
||||
|
||||
|
||||
def dumpStreamComponents(self):
|
||||
|
||||
# port forwarding components #
|
||||
|
||||
Reference in New Issue
Block a user