Browse Source

Simplify pkgrepo logic, made possible by 3b265a544

tags/v0.57.0
Ivan Kadochnikov 8 years ago
parent
commit
13ea551011
2 changed files with 2 additions and 6 deletions
  1. +1
    -1
      salt/pkgrepo/absent.sls
  2. +1
    -5
      salt/pkgrepo/init.sls

+ 1
- 1
salt/pkgrepo/absent.sls View File

@@ -1,2 +1,2 @@
include:
- .{{ grains['os']|lower }}.absent
- .{{ grains['os_family']|lower }}.absent

+ 1
- 5
salt/pkgrepo/init.sls View File

@@ -1,6 +1,2 @@
{% set name = {
'RedHat': 'redhat',
'Debian': grains['os_family']|lower,
}.get(grains.os_family) %}
include:
- .{{ name }}
- .{{ grains['os_family']|lower }}

Loading…
Cancel
Save