Skip to content

Commit

Permalink
Change of plans: enable repo only when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
eliroca committed May 17, 2024
1 parent 007a132 commit 4086887
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mirrorcache/repo.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- if not ('mirrorcache_formula_disable_repository' in pillar and pillar.mirrorcache_formula_disable_repository) -%}
{%- if 'mirrorcache_formula_enable_repository' in pillar and pillar.mirrorcache_formula_enable_repository -%}
{% set repourl = salt['pillar.get']('mirrorcache:repourl', 'http://download.opensuse.org/repositories/openSUSE:/infrastructure:/MirrorCache/$releasever/') %}
mc:
pkgrepo.managed:
Expand Down
1 change: 1 addition & 0 deletions t/lib/repo.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mirrorcache_formula_enable_repository: True
1 change: 1 addition & 0 deletions t/lib/top.sls
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

{{ saltenv }}:
"*":
- repo
- testpreset
{% if (salt['grains.has_value']('roles')) %}
{% for role in roles %}
Expand Down

0 comments on commit 4086887

Please sign in to comment.