diff --git a/mirrorcache/repo.sls b/mirrorcache/repo.sls index 7997e67..b053d43 100644 --- a/mirrorcache/repo.sls +++ b/mirrorcache/repo.sls @@ -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: diff --git a/t/lib/repo.sls b/t/lib/repo.sls new file mode 100644 index 0000000..488e9c5 --- /dev/null +++ b/t/lib/repo.sls @@ -0,0 +1 @@ +mirrorcache_formula_enable_repository: True diff --git a/t/lib/top.sls b/t/lib/top.sls index 87eef51..e7c7388 100644 --- a/t/lib/top.sls +++ b/t/lib/top.sls @@ -3,6 +3,7 @@ {{ saltenv }}: "*": + - repo - testpreset {% if (salt['grains.has_value']('roles')) %} {% for role in roles %}