ensure local hypervisor dir when new hypervisor key accepted. apply soc.dyanno.hypervisor when hypervisor key accepted

This commit is contained in:
Josh Patterson
2025-03-05 08:51:10 -05:00
parent 8047e196fe
commit 2c5861a0c2
5 changed files with 187 additions and 6 deletions
+1
View File
@@ -22,6 +22,7 @@ hypervisor_annotation:
- group: socore
- defaults:
HYPERVISORS: {{ HYPERVISORS }}
base_domain_ready: {{ salt['pillar.get']('base_domain_ready', False) }}
{% for role in HYPERVISORS %}
{% for hypervisor in HYPERVISORS[role].keys() %}
@@ -174,7 +174,11 @@ No Virtual Machines Found
{%- endif -%}
{%- do updated_elements.append(updated_field) -%}
{%- endfor -%}
{%- do updated_template.update({'uiElements': updated_elements}) -%}
{%- if base_domain_ready -%}
{%- do updated_template.update({'uiElements': updated_elements}) -%}
{%- else -%}
{%- do updated_template.pop('uiElements') -%}
{%- endif -%}
{%- do updated_template.update({
'title': hypervisor,
'description': update_description(