Giter VIP home page Giter VIP logo

puppet-nodejs's Introduction

nodejs Puppet Module for Boxen

Build Status

Using nodenv for nodejs version management, automates installation and configuration of nodejs versions.

Usage

# include short version aliases
nodejs::version { 'v0.10': }

# install any arbitrary nodejs version
nodejs::version { 'v0.10.1': }

# set the global nodejs version
class { 'nodejs::global': version => 'v0.10.1' }

# install some npm modules
nodejs::module { 'bower':
  node_version => 'v0.10'
}

Hiera configuration

The following variables may be automatically overridden with Hiera:

---
# Version compile configuration, if not version is defined the default is false
# Yyou can define whether to compile from source or not based on long version
# and define short versions as a fallback if non long version is defined
"nodejs::version::compile":
  "v0.10": false
  "v0.4": true
  "v0.6.20" : true

# Version aliases, commonly used to bless a specific version
# Use the "deeper" merge strategy, as with nodejs::version::env
"nodejs::version::alias":
  "v0.10": "v0.10.31"
  "v0.8": "v0.8.26"
  "v0.6": "v0.6.20"
  "v0.4": "v0.4.10"

It is required that you include ripienaar/puppet-module-data in your boxen project, as this module now ships with many pre-defined versions and aliases in the data/ directory. With this module included, those definitions will be automatically loaded, but can be overridden easily in your own hierarchy.

You can also use JSON if your Hiera is configured for that.

Required Puppet Modules

puppet-nodejs's People

Contributors

wfarr avatar blackjid avatar mroth avatar rafaelfranca avatar ymendel avatar fromonesrc avatar dgoodlad avatar marr avatar xudejian avatar joeybaker avatar joeyvandijk avatar park9140 avatar jozefizso avatar tarebyte avatar max-mapper avatar rtgibbons avatar tombell avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.