-
-
Save fdonzello/2e1fa38e9e7c0aa85aa4 to your computer and use it in GitHub Desktop.
install node.js from source with salt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nodejs-deps: | |
pkg.installed: | |
- names: | |
- g++ | |
- curl | |
- libssl-dev | |
- apache2-utils | |
- build-essentials | |
require: | |
- pkg: git | |
nodejs-source: | |
git.latest: | |
- target: /usr/src/nodejs | |
- name: git://github.com/joyent/node.git | |
- rev: v0.12.7-release | |
nodejs-install: | |
cmd.run: | |
- cwd: /usr/src/nodejs | |
- name: ./configure && make && make install | |
- onlyif: if [ -z $(node --version) ] || [ $(node --version) != "v0.12.7-release" ]; then echo "should update"; else exit 1; fi; | |
- require: | |
- git: nodejs-source | |
- pkg: nodejs-deps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment