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,11 +1,10 @@
---
specs:
default:
enabled: true
type: none
entity: none
country: none
location: none
cloud: false
container: false
sudo: true
enabled: true
type: none
entity: none
country: none
location: none
cloud: false
container: false
sudo: true

View File

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