updated provision state
This commit is contained in:
parent
2fa5c1fb6a
commit
67fddd1b1b
@ -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
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user