Forge Home

nodejs

Puppet module to install nodejs globally on Centos or Ubuntu Linux flavors.

6,704 downloads

6,214 latest version

5.0 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.1.4 (latest)
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released May 18th 2016
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 'ChrisTheShark-nodejs', '0.1.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ChrisTheShark-nodejs
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ChrisTheShark-nodejs --version 0.1.4

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

ChrisTheShark/nodejs — version 0.1.4 May 18th 2016

Table of Contents

  1. Overview
  2. Setup - The basics of getting started with nodejs
  3. Usage
  4. Limitations

Overview

The nodejs module installs a global Node.js package and the npm package provider in a directory of your choosing.

Setup

What nodejs affects:

  • the Node.js package
  • the npm package
  • globally installed npm packages
  • local npm packages installed in user-specified directories

Usage

To install Node.js and npm in '/usr/local/bin':

include nodejs

If you wish to install in an alternate location:

class { 'nodejs': path => ${path}, }

If you wish to install an alternate version:

class { 'nodejs': version => 'v4.6.2', }

Limitations

This module has received limited testing on:

  • CentOS/RHEL 6/7
  • Ubuntu 14.04/15.10