Version information
Start using this module
Add this module to your Puppetfile:
mod 'willdurand-nodejs', '0.0.2'
Learn more about managing modules with a PuppetfileDocumentation
puppet-nodejs
This module allows to install Node.js and NPM.
Installation
This module doesn't have any hard dependencies but you need:
python
, g++
, make
, wget
and tar
installed.
Get the module:
git clone git://github.com/willdurand/puppet-nodejs.git modules/nodejs
Usage
Include the nodejs
class:
include nodejs
You can specify a Node.js version by specifing it:
class { 'nodejs':
version => 'v0.8.0',
}
You can install different versions of Node.js thanks to the nodejs::install
definition:
nodejs::install { 'v0.7.0':
version => 'v0.7.0',
}
By default, this module creates symlinks for each Node.js version installed into
/usr/local/bin
. You can change this behavior by using the target_dir
parameter.
Also, this module installs NPM by default. You can set the
with_npm
parameter to false
to not install it.
NPM Provider
This module adds a new provider: npm
. You can use it as usual:
package { 'bower':
provider => npm
}
Running the tests
Install the dependencies using Bundler:
BUNDLE_GEMFILE=.gemfile bundle install
Run the following command:
BUNDLE_GEMFILE=.gemfile bundle exec rake spec
License
puppet-nodejs is released under the MIT License. See the bundled LICENSE file for details.
Copyright (c) 2012-2013 William Durand <william.durand1@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.