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
|
|
|
|
- minutes: 30
|
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
|
2021-10-02 12:39:51 +02:00
|
|
|
- days: 7
|
2020-09-12 17:41:35 +02:00
|
|
|
- run_on_start: false
|
2020-07-10 00:58:55 +02:00
|
|
|
|
|
|
|
schedule_pkg_refresh:
|
|
|
|
schedule.absent:
|
|
|
|
- name: schedule_pkg_refresh
|
|
|
|
|
|
|
|
schedule_pkg_upgrade:
|
|
|
|
schedule.absent:
|
|
|
|
- name: schedule_pkg_upgrade
|
|
|
|
|
2021-08-03 17:44:57 +02:00
|
|
|
{%- if specs.default.items()|length > 0 and salt['grains.get']('id') in specs.keys() %}
|
2020-07-10 00:58:55 +02:00
|
|
|
{%- for key, value in specs.default.items() %}
|
|
|
|
{{ key }}:
|
|
|
|
grains.present:
|
|
|
|
- name: {{ key }}
|
|
|
|
- value: {% if specs[salt['grains.get']('id')][key] is defined %}{{ specs[salt['grains.get']('id')][key] }}{% else %}{{ value }}{% endif %}
|
2020-09-12 17:41:35 +02:00
|
|
|
- force: true
|
2020-07-10 00:58:55 +02:00
|
|
|
{% endfor %}
|
2021-08-03 17:44:57 +02:00
|
|
|
{%- endif %}
|