Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nodejs-deps:
- pkg.installed:
- - names:
- - g++
- - curl
- - libssl-dev
- - apache2-utils
- require:
- - pkg: git
- nodejs-source:
- git.latest:
- - target: /usr/src/nodejs
- - name: git://github.com/joyent/node.git
- nodejs-install:
- cmd.run:
- - cwd: /usr/src/nodejs
- - name: ./configure && make && make install
- - onlyif: if [ -z $(node --version) ]; then echo "should update"; else exit 1; fi;
- - require:
- - git: nodejs-source
- - pkg: nodejs-deps
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement