File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 31
31
},
32
32
}, grain ='os' , merge =pillar_get ('node:lookup' )) %}
33
33
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' )) %}
35
35
{% set npm_requirement = npm_src_requirement %}
36
36
{% else %}
37
37
{% set npm_requirement = 'pkg: {0}' .format (node ['npm_pkg' ]) %}
Original file line number Diff line number Diff line change 1
1
{%- from " node/map.jinja" import node, npm_bin with context % }
2
2
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' ) % }
4
4
nodejs.ppa:
5
5
pkg.installed:
6
6
- name: apt- transport- https
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Ensure required packages are present:
16
16
pkg.installed:
17
17
- names: {{ from_src_requirements.pkgs| json }}
18
18
19
- {% if grains[' os ' ] in [' RedHat' , ' CentOS' ] % }
19
+ {% if grains[' os_family ' ] in [' RedHat' , ' CentOS' ] % }
20
20
Alternative checkinstall requirement:
21
21
pkg.installed:
22
22
- pkgs:
@@ -54,7 +54,7 @@ make-node:
54
54
- cwd: / usr/ src/ node- v{{ version }}
55
55
- name: make -- jobs= {{ make_jobs }}
56
56
57
- {% if grains[' os ' ] in [' RedHat' , ' CentOS' ] % }
57
+ {% if grains[' os_family ' ] in [' RedHat' , ' CentOS' ] % }
58
58
make- install- node:
59
59
cmd.run:
60
60
- cwd: / usr/ src/ node- v{{ version }}
You can’t perform that action at this time.
0 commit comments