This commit is contained in:
parent
b2d539a941
commit
565047baa9
@ -90,7 +90,7 @@ states
|
||||
├── rclone
|
||||
├── reactor
|
||||
├── redis
|
||||
├── repos
|
||||
├── repo
|
||||
├── rspamd
|
||||
├── rsync
|
||||
├── rsyslog
|
||||
|
2
states/repo/defaults.yaml
Normal file
2
states/repo/defaults.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
repo: {}
|
@ -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
5
states/repo/map.jinja
Normal 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) -%}
|
@ -1,2 +0,0 @@
|
||||
---
|
||||
repos: {}
|
@ -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) -%}
|
Loading…
Reference in New Issue
Block a user