Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
17
Merge Requests
1
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8a12676f
authored
Jul 02, 2017
by
Dóbé Péter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debian 9 npm/nodejs fix
parent
365c2a84
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
salt/manager/pipeline.sls
+27
-2
No files found.
salt/manager/pipeline.sls
View file @
8a12676f
{% if grains['os'] == 'Ubuntu' or grains['os'] == 'Debian' %}
{% if grains['os'] == 'Debian' and grains['oscodename'] == 'stretch' %}
{# Debian 9 stretch has no npm.
Using nodesource repo where nodejs package provides npm. #}
nodesource-repo:
pkgrepo.managed:
- humanname: Nodesource Repository
- name: deb http://deb.nodesource.com/node_6.x stretch main
- dist: stretch
- file: /etc/apt/sources.list.d/nodesource.list
# - key_url: 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
- keyid: '68576280'
- keyserver: keys.gnupg.net
- require-in:
- pkg: npm
- require:
- pkg: python-apt
python-apt:
pkg.installed
{% endif %}
{% if grains['os'] == 'Ubuntu' or ( grains['os'] == 'Debian' and grains['oscodename'] != 'stretch' ) %}
nodejs-legacy:
pkg.installed
{% endif %}
npm:
{% if grains['os'] == 'Ubuntu' or grains['os'] == 'Debian' %}
{% if grains['os'] == 'Debian' and grains['oscodename'] == 'stretch' %}
{# nodesource nodejs package has executables node, nodejs, npm #}
pkg.installed:
- name: nodejs
{% elif grains['os'] == 'Ubuntu' or grains['os'] == 'Debian' %}
pkg.installed:
- require:
- pkg: nodejs-legacy
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment