paulbsd-salt/states/provision/init.sls
Paul Lecuq 5f5f3945cd
Some checks failed
continuous-integration/drone/push Build is failing
updated provision state
2023-01-16 12:01:49 +01:00

25 lines
666 B
Plaintext

---
{%- from "provision/map.jinja" import provision with context %}
{%- from "provision/map.jinja" import specs with context %}
schedule_highstate:
schedule.present:
- name: schedule_highstate
- function: state.highstate
- minutes: {{ provision.highstate_interval }}
- run_on_start: false
schedule_saltutil_clear_cache:
schedule.present:
- name: schedule_saltutil_clear_cache
- function: saltutil.clear_cache
- days: {{ provision.clear_cache_interval }}
- run_on_start: false
{% for key, value in specs.items() %}
grains-{{ key }}:
grains.present:
- name: {{ key }}
- value: {{ value }}
- force: true
{% endfor %}