Skip to content

Instantly share code, notes, and snippets.

@ilkkanisula
Last active December 27, 2015 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilkkanisula/7369980 to your computer and use it in GitHub Desktop.
Save ilkkanisula/7369980 to your computer and use it in GitHub Desktop.
nodenave:
pkg.installed:
- pkgs:
- build-essential
- libssl-dev
/usr/bin/nave.sh:
file.managed:
- user: root
- group: root
- mode: 755
- source: salt://nave.sh
nave-install:
cmd.run:
- name: nave.sh install 0.10.20
- watch:
- file: /usr/bin/nave.sh
nodefromsource:
pkg.installed:
- pkgs:
- build-essential
- libssl-dev
/tmp/node.tar.gz:
file.managed:
- source: http://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz
- source_hash: md5=774bc17875c042ac42ad2d96b9c96734
node-prepare:
cmd.wait:
- name: tar -zxf node.tar.gz
- cwd: /tmp
- watch:
- file: /tmp/node.tar.gz
node-config:
cmd.wait:
- name: ./configure --prefix=/
- cwd: /tmp/node-v0.10.21
- watch:
- cmd: node-prepare
node-compile:
cmd.wait:
- name: make install
- cwd: /tmp/node-v0.10.21
- watch:
- cmd: node-config
$ find /srv
/srv
/srv/salt
/srv/salt/npm.sls
/srv/salt/_modules
/srv/salt/_modules/npm.py
/srv/salt/top.sls
base:
'*':
- npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment