Install ndenv and Node http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
ndenv will be installed in ~/.ndenv. This is assumed when checking out the main repository, when checking out ndenv-related plugins, and conditional checks for certain states. It's not currently possible to change the default installation folder without updating the whole formula.
Below is a basic pillar for the user vagrant
. N.B., the user must exist on the
system you're salting.
ndenv:
# The version of node to be installed for all users. N.B., this can be
# overridden per user.
node:
packages: []
versions:
- 6.7.0
users:
vagrant:
user: vagrant
group: vagrant
node:
packages_install_options: --registry http://registry.npmjs.eu
packages:
- gulp
versions:
- 6.9.0