How to Update NodeJS with SaltStack Published Fri Feb 07 19:50:50 SAST 2014
You may have to deal with an ancient version of NodeJS (0.6.2) when using Vagrant to provision a clean precise64
box running Ubuntu 12.04 LTS.
Getting Saltstack to update NodeJS will result in hair loss and hurling of faeces unless you put the following in your node.sls
Salt State File:
nodejs:
pkgrepo:
- managed
- ppa: chris-lea/node.js
- require_in:
- pkg: nodejs
pkg:
- latest
and in top.sls:
base:
'*':
- node
This will update your Ubuntu VM to the latest NodeJS using SaltStack provisioning.