puppet/nodejs/manifests/init.pp
2012-07-17 16:40:41 +03:00

22 lines
594 B
Puppet

# 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}")
}
}
}