Skip to content

Commit ad7f639

Browse files
authored
Merge pull request #1 from myoung34/master
Use `os_family` instead of `os` for better deritivate catching
2 parents ac6258b + 35bb070 commit ad7f639

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

node/map.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
}, grain='os', merge=pillar_get('node:lookup')) %}
3333

34-
{% if pillar_get('node:install_from_source') or (grains['os'] == 'Debian' and grains['osrelease']|float < 8 and not pillar_get('node:install_from_ppa')) %}
34+
{% if pillar_get('node:install_from_source') or (grains['os_family'] == 'Debian' and grains['osrelease']|float < 8 and not pillar_get('node:install_from_ppa')) %}
3535
{% set npm_requirement = npm_src_requirement %}
3636
{% else %}
3737
{% set npm_requirement = 'pkg: {0}'.format(node['npm_pkg']) %}

node/pkg.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{%- from "node/map.jinja" import node, npm_bin with context %}
22
3-
{%- if grains['os'] in ['Ubuntu', 'Debian'] and salt['pillar.get']('node:install_from_ppa') %}
3+
{%- if grains['os_family'] in ['Ubuntu', 'Debian'] and salt['pillar.get']('node:install_from_ppa') %}
44
nodejs.ppa:
55
pkg.installed:
66
- name: apt-transport-https

node/source.sls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Ensure required packages are present:
1616
pkg.installed:
1717
- names: {{ from_src_requirements.pkgs|json }}
1818
19-
{% if grains['os'] in ['RedHat', 'CentOS'] %}
19+
{% if grains['os_family'] in ['RedHat', 'CentOS'] %}
2020
Alternative checkinstall requirement:
2121
pkg.installed:
2222
- pkgs:
@@ -54,7 +54,7 @@ make-node:
5454
- cwd: /usr/src/node-v{{ version }}
5555
- name: make --jobs={{ make_jobs }}
5656
57-
{% if grains['os'] in ['RedHat', 'CentOS'] %}
57+
{% if grains['os_family'] in ['RedHat', 'CentOS'] %}
5858
make-install-node:
5959
cmd.run:
6060
- cwd: /usr/src/node-v{{ version }}

0 commit comments

Comments
 (0)