updated provision state

This commit is contained in:
Paul 2022-12-24 17:51:22 +01:00
parent 2fa5c1fb6a
commit 67fddd1b1b
2 changed files with 11 additions and 14 deletions

View File

@ -1,6 +1,5 @@
--- ---
specs: specs:
default:
enabled: true enabled: true
type: none type: none
entity: none entity: none

View File

@ -14,12 +14,10 @@ schedule_saltutil_clear_cache:
- days: 7 - days: 7
- run_on_start: false - run_on_start: false
{%- if specs.default.items()|length > 0 and salt['grains.get']('id') in specs.keys() %} {% for key, value in specs.items() %}
{% for key, value in specs.default.items() %} grains-{{ key }}:
{{ key }}:
grains.present: grains.present:
- name: {{ key }} - name: {{ key }}
- value: {% if specs[salt['grains.get']('id')][key] is defined %}{{ specs[salt['grains.get']('id')][key] }}{% else %}{{ value }}{% endif %} - value: {{ value }}
- force: true - force: true
{% endfor %} {% endfor %}
{%- endif %}