Skip to content
Snippets Groups Projects
Commit 09438d30 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Switch to new template to deploy VM in proxmox

dns parameter removed (retrieved dynamically by the playbook)

JIRA INFRA-651 #action In Progress
parent fc7ac34a
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,7 @@ CSENTRY_ENVIRONMENT = "staging" ...@@ -82,7 +82,7 @@ CSENTRY_ENVIRONMENT = "staging"
AWX_URL = "https://torn.tn.esss.lu.se" AWX_URL = "https://torn.tn.esss.lu.se"
# AWX job templates # AWX job templates
AWX_CORE_SERVICES_UPDATE = "ics-ans-core @ DHCP test" AWX_CORE_SERVICES_UPDATE = "ics-ans-core @ DHCP test"
AWX_CREATE_VM = "ics-ans-deploy-proxmox-vm" AWX_CREATE_VM = "deploy-vm-in-proxmox"
AWX_CREATE_VIOC = "ics-ans-deploy-vioc" AWX_CREATE_VIOC = "ics-ans-deploy-vioc"
AWX_ZTP_CONFIGURATION = "ics-ans-ztp" AWX_ZTP_CONFIGURATION = "ics-ans-ztp"
...@@ -91,7 +91,6 @@ AWX_VM_CREATION_ENABLED = False ...@@ -91,7 +91,6 @@ AWX_VM_CREATION_ENABLED = False
VM_CORES_CHOICES = [1, 2, 4, 6, 8, 24] VM_CORES_CHOICES = [1, 2, 4, 6, 8, 24]
VM_MEMORY_CHOICES = [2, 4, 8, 16, 32, 128] VM_MEMORY_CHOICES = [2, 4, 8, 16, 32, 128]
VM_DEFAULT_DNS = "172.16.6.21"
VIOC_CORES_CHOICES = [1, 3, 6] VIOC_CORES_CHOICES = [1, 3, 6]
VIOC_MEMORY_CHOICES = [2, 4, 8] VIOC_MEMORY_CHOICES = [2, 4, 8]
......
...@@ -102,7 +102,6 @@ def trigger_vm_creation(name, interface, memory, cores): ...@@ -102,7 +102,6 @@ def trigger_vm_creation(name, interface, memory, cores):
[ [
f"ip_address={interface.ip}", f"ip_address={interface.ip}",
f"domain={interface.network.domain.name}", f"domain={interface.network.domain.name}",
f'dns={current_app.config["VM_DEFAULT_DNS"]}',
f"netmask={interface.network.netmask}", f"netmask={interface.network.netmask}",
f"gateway={interface.network.gateway}", f"gateway={interface.network.gateway}",
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment