You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: Currently, any changes made in config.yaml in our GitHub repository also require manual updates in the Salt .sls files, leading to redundant work and potential inconsistencies.
possible solutions:
Automate the synchronization of config.yaml using a CI/CD pipeline. This can be set up so that any changes in the GitHub repository are automatically reflected in Salt Pillar or the .sls files, eliminating the need for manual updates.
Alternative Solutions:
Use Jinja templating in SaltStack to dynamically reference values from config.yaml. e.g.
{% set config = salt['pillar.get']('config') %}
entitlementcard:
projects:
{% for project in config.projects %}
{{ project.id }}:
print-office-domain: {{ project.id }}
{% for key, value in project.items() %}
{{ key }}: {{ value }}
{% endfor %}
{% endfor %}
Store config.yaml in Salt Pillar and reference it directly in Salt states.
Use external YAML file inclusion to pull config.yaml into Salt.
The text was updated successfully, but these errors were encountered:
Issue: Currently, any changes made in config.yaml in our GitHub repository also require manual updates in the Salt .sls files, leading to redundant work and potential inconsistencies.
possible solutions:
Alternative Solutions:
Store config.yaml in Salt Pillar and reference it directly in Salt states.
Use external YAML file inclusion to pull config.yaml into Salt.
The text was updated successfully, but these errors were encountered: