Browse Source

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

tags/v0.55.0
Aline Freitas 9 years ago
parent
commit
aa0314e90d
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      nginx/map.jinja
  2. +1
    -1
      nginx/source.sls

+ 1
- 1
nginx/map.jinja View File

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

+ 1
- 1
nginx/source.sls View File

- makedirs: True - makedirs: True


get-build-tools: 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: module.run:
- name: pkg.group_install - name: pkg.group_install
- m_name: {{ nginx_map.group_pkg }} - m_name: {{ nginx_map.group_pkg }}

Loading…
Cancel
Save