瀏覽代碼

Simplify pkgrepo logic, made possible by 3b265a544

master
Ivan Kadochnikov 8 年之前
父節點
當前提交
13ea551011
共有 2 個文件被更改,包括 2 次插入6 次删除
  1. +1
    -1
      salt/pkgrepo/absent.sls
  2. +1
    -5
      salt/pkgrepo/init.sls

+ 1
- 1
salt/pkgrepo/absent.sls 查看文件

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

+ 1
- 5
salt/pkgrepo/init.sls 查看文件

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

Loading…
取消
儲存