Forge Home

nvm_nodejs

Install localized, multiple versions of nodejs via NVM for CentOS/AWS Linux/Ubuntu

12,952 downloads

9,249 latest version

3.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.3.1 (latest)
  • 0.2.4
  • 0.2.3
  • 0.2.1
  • 0.2.0
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Jul 3rd 2015
This version is compatible with:
  • , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'proletaryo-nvm_nodejs', '0.3.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add proletaryo-nvm_nodejs
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install proletaryo-nvm_nodejs --version 0.3.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

proletaryo/nvm_nodejs — version 0.3.1 Jul 3rd 2015

puppet-nvm_nodejs

Localized installation of multiple versions of nodejs via NVM.

Tested to work on 64-bit:

  • AWS Linux
  • CentOS 6.x
  • Ubuntu 12.04

Parameters

  • user : target user to install node into
  • version : must be the full version (format: x.x.x)
  • manage_user : specify if the user resource should be created or not, defaults to false (format: boolean)
  • home : set the target home dir. defaults to /home/${user} if skipped

Usage

Basic:

class { 'nvm_nodejs':
  user    => 'prod',    # this will create /home/prod automatically
  manage_user => true,
  version => '0.8.22',
}

class { 'nvm_nodejs':
  user    => 'jenkins',
  version => '0.8.22',
  home    => '/var/tmp/jenkins',  # explicit home location
}

Paths and executables

Once the class was successfully declared, access these variables:

  • $nvm_nodejs::NODE_PATH : path to the bin directory
  • $nvm_nodejs::NODE_EXEC : full executable path of node engine
  • $nvm_nodejs::NPM_EXEC : full executable path of npm

Dependencies

This module relies on following packages to be installed via puppet:

  • git
  • curl
  • make