Skip to content

kwakwaversal/saltstack-formula-ndenv

Repository files navigation

saltstack-formula-ndenv Build Status

Install ndenv and Node http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

Description

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.

Available states

Basic pillar

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