updated repo state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2024-02-24 15:23:11 +01:00
parent b2d539a941
commit 565047baa9
8 changed files with 10 additions and 10 deletions

View File

@ -90,7 +90,7 @@ states
├── rclone
├── reactor
├── redis
├── repos
├── repo
├── rspamd
├── rsync
├── rsyslog

View File

@ -0,0 +1,2 @@
---
repo: {}

View File

@ -1,6 +1,6 @@
---
{%- from "repos/map.jinja" import repos with context %}
{%- for name,repo in repos.items() %}
{%- from "repo/map.jinja" import repo with context %}
{%- for name,repo in repo.items() %}
{%- if repo.enabled %}
{%- if repo.key_method is defined %}

5
states/repo/map.jinja Normal file
View File

@ -0,0 +1,5 @@
{%- import_yaml "repo/defaults.yaml" as default_settings -%}
{%- set defaults = salt['grains.filter_by'](default_settings, default='repo') -%}
{%- set repo = salt['pillar.get']('repo', default=defaults, merge=True) -%}

View File

@ -1,2 +0,0 @@
---
repos: {}

View File

@ -1,5 +0,0 @@
{%- import_yaml "repos/defaults.yaml" as default_settings -%}
{%- set defaults = salt['grains.filter_by'](default_settings, default='repos') -%}
{%- set repos = salt['pillar.get']('repos', default=defaults, merge=True) -%}