diff --git a/nodejs/manifests/init.pp b/nodejs/manifests/init.pp new file mode 100644 index 0000000..41585e4 --- /dev/null +++ b/nodejs/manifests/init.pp @@ -0,0 +1,16 @@ +# Install Node.js +# +class nodejs { + + case $::operatingsystem { + "centos","redhat","fedora": { + package { "nodejs": + ensure => installed, + } + } + default: { + fail("nodejs not supported on ${::operatingsystem}") + } + } + +}