Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

mbst/puppet-nvm_nodejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-nvm_nodejs

Localized installation of multiple versions of nodejs via NVM.

Tested to work on 64-bit:

  • AWS Linux
  • CentOS 6.x

Parameters

  • user : target user to install node into
  • version : must be the full version (format: x.x.x)
  • 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
  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 (install it beforehand, either manually or via puppet):

  • git
  • curl
  • make

About

installs multiple versions of nodejs via nvm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published