nvm

Module to manage multiple nodejs versions per user using nvm

Karl Pietri

barnaclebob

9,585 downloads

9,366 latest version

2.5 quality score

Version information

  • 1.0.1 (latest)
  • 1.0.0
  • 0.1.0
released Oct 1st 2015
This version is compatible with:
  • Puppet Enterprise 3.2.x
  • Puppet 3.x
  • Debian
    ,
    RedHat
    ,
    Ubuntu

Start using this module

Documentation

barnaclebob/nvm — version 1.0.1 Oct 1st 2015

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with nvm
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

This module will install nvm and use it to install nodejs versions on a per user basis. This allows you to have multiple nvm installations per system such as using one user/nvm install per application running.

Usage

This module requires the user you want to install nvm for to already exist.

user{'bob':
  ensure     => present,
  managehome => true,
}

nvm{'bob':
  versions        => ["10.40", "stable", "12.6"]
  default_version => "stable"
}

Reference

Public Defines

Private defines

Define: nvm

Manages nvm for specified user.

Parameters (all optional)
  • versions: Specifies the versions of nodejs to install for this user. Valid options: an array of strings. Default: ['stable'].

  • default_version: Specifies the default version of nodejs that nvm will use. Valid options: a string from the versions parameter. Default: ['stable'].

  • nvm_version: Specifies the version of nvm to install. Valid options: a string. Default: '0.26.1'.

Limitations

Tested on:

  • Ubuntu 12.04
  • Ubuntu 14.04
  • Debian 6
  • Debian 7
  • Centos 6
  • Centos 7