updated provision state
This commit is contained in:
parent
2fa5c1fb6a
commit
67fddd1b1b
@ -1,11 +1,10 @@
|
|||||||
---
|
---
|
||||||
specs:
|
specs:
|
||||||
default:
|
enabled: true
|
||||||
enabled: true
|
type: none
|
||||||
type: none
|
entity: none
|
||||||
entity: none
|
country: none
|
||||||
country: none
|
location: none
|
||||||
location: none
|
cloud: false
|
||||||
cloud: false
|
container: false
|
||||||
container: false
|
sudo: true
|
||||||
sudo: true
|
|
||||||
|
@ -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 %}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user