Added nodejs module

This commit is contained in:
Ossi Salmi 2012-07-17 16:40:41 +03:00
parent 1d1d0845cb
commit 0b171dfb28

22
nodejs/manifests/init.pp Normal file
View file

@ -0,0 +1,22 @@
# Install node.js.
#
class nodejs {
case $::operatingsystem {
"centos": {
yum::repo { "nodejs":
mirrorlist => "http://nodejs.tchol.org/mirrors/nodejs-stable-el\$releasever",
gpgkey => "http://nodejs.tchol.org/stable/RPM-GPG-KEY-tchol",
}
package { [ "nodejs", "nodejs-compat-symlinks", "npm" ]:
ensure => installed,
require => Yum::Repo["nodejs"],
}
}
default: {
fail("nodejs not supported on ${::operatingsystem}")
}
}
}