Browse Source

Salt: install Node.js 10.x in dev environment

merge-requests/70/head
Deimos 6 years ago
parent
commit
f9c6e22584
  1. 12
      salt/salt/nodejs.sls
  2. 1
      salt/salt/top.sls

12
salt/salt/nodejs.sls

@ -0,0 +1,12 @@
# Add the NodeSource repository and install Node.js 10.x
nodejs-pkgrepo:
pkgrepo.managed:
- name: deb https://deb.nodesource.com/node_10.x xenial main
- dist: xenial
- file: /etc/apt/sources.list.d/nodesource.list
- key_url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
- require_in:
- pkg: nodejs
pkg.installed:
- name: nodejs
- refresh: True

1
salt/salt/top.sls

@ -29,6 +29,7 @@ base:
- self-signed-cert
- development
- prometheus
- nodejs
'prod':
- nginx.shortener-config
- nginx.static-sites-config

Loading…
Cancel
Save