paulbsd-salt/states/provision/init.sls

25 lines
666 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
2023-01-16 12:01:49 +01:00
{%- from "provision/map.jinja" import provision with context %}
2020-07-10 00:58:55 +02:00
{%- from "provision/map.jinja" import specs with context %}
schedule_highstate:
schedule.present:
- name: schedule_highstate
- function: state.highstate
2023-01-16 12:01:49 +01:00
- minutes: {{ provision.highstate_interval }}
2020-09-12 17:41:35 +02:00
- run_on_start: false
2020-07-10 00:58:55 +02:00
schedule_saltutil_clear_cache:
schedule.present:
- name: schedule_saltutil_clear_cache
- function: saltutil.clear_cache
2023-01-16 12:01:49 +01:00
- days: {{ provision.clear_cache_interval }}
2020-09-12 17:41:35 +02:00
- run_on_start: false
2020-07-10 00:58:55 +02:00
2022-12-24 17:51:22 +01:00
{% for key, value in specs.items() %}
grains-{{ key }}:
2020-07-10 00:58:55 +02:00
grains.present:
- name: {{ key }}
2022-12-24 17:51:22 +01:00
- value: {{ value }}
2020-09-12 17:41:35 +02:00
- force: true
2020-07-10 00:58:55 +02:00
{% endfor %}