瀏覽代碼

Get salt version from grains + fix state function name for groupinstall

tags/v0.55.0
Aline Freitas 9 年之前
父節點
當前提交
aa0314e90d
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      nginx/map.jinja
  2. +1
    -1
      nginx/source.sls

+ 1
- 1
nginx/map.jinja 查看文件

@@ -22,7 +22,7 @@
},
'RedHat': {
'apache_utils': 'httpd-tools',
'group_action': 'pkg.group_install',
'group_action': 'pkg.group_installed',
'group_pkg': 'Development Tools',
'libpcre_dev': 'pcre-devel',
'libssl_dev': 'openssl-devel',

+ 1
- 1
nginx/source.sls 查看文件

@@ -65,7 +65,7 @@ nginx_user:
- makedirs: True

get-build-tools:
{% if salt['pkg.version']('salt') < '2015.8.0' and grains['os_family'] == 'RedHat' %}
{% if grains['saltversion'] < '2015.8.0' and grains['os_family'] == 'RedHat' %}
module.run:
- name: pkg.group_install
- m_name: {{ nginx_map.group_pkg }}

Loading…
取消
儲存