Skip to content

Commit

Permalink
Merge pull request #33 from cisco-open/template_cloudinit_fix_require…
Browse files Browse the repository at this point in the history
…ments

The template_cloudinit role requires different variables depending on the specific configurations
  • Loading branch information
ppiwowa-csco authored Dec 4, 2024
2 parents 3e0db90 + 218f14e commit 9f61e74
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions roles/common/defaults/required_vars_cloudinit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@

---

required_variables:
organization_name: "{{ organization_name }}"
admin_username: "{{ admin_username }}"
admin_password: "{{ admin_password }}"
vbond_transport_private_ip: "{{ vbond_transport_private_ip }}"
vbond_transport_public_ip: "{{ vbond_transport_public_ip }}"
required_variables: "{{ (required_variables_options['core']
| combine(required_variables_options['vbond'] if vbond_instances | default({}) else {})
| combine(required_variables_options['vmanage'] if vmanage_instances | default({}) else {})
| combine(required_variables_options['vsmart'] if vsmart_instances | default({}) else {})) }}"

required_variables_options:
core:
organization_name: "{{ organization_name }}"
admin_username: "{{ admin_username }}"
admin_password: "{{ admin_password }}"
vbond:
vbond_transport_private_ip: "{{ vbond_transport_private_ip }}"
vmanage:
vbond_transport_public_ip: "{{ vbond_transport_public_ip }}"
vsmart:
vbond_transport_public_ip: "{{ vbond_transport_public_ip }}"

0 comments on commit 9f61e74

Please sign in to comment.