summaryrefslogtreecommitdiff
path: root/provisioning/modules/pixelated/manifests/source/npm.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-02-10 09:31:02 +0100
committerDuda Dornelles <ddornell@thoughtworks.com>2015-02-12 11:31:03 -0200
commit6750381bbf99ce1cbe837eacac55a8e2801e7394 (patch)
treeb1c6dd4d20adb94fb66f5686a4bf5dfe4af3d488 /provisioning/modules/pixelated/manifests/source/npm.pp
parentd22425a6679d9ec793af7e9a89733484a0f9be2b (diff)
Use wheezy for vagrant source box #272
Diffstat (limited to 'provisioning/modules/pixelated/manifests/source/npm.pp')
-rw-r--r--provisioning/modules/pixelated/manifests/source/npm.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/provisioning/modules/pixelated/manifests/source/npm.pp b/provisioning/modules/pixelated/manifests/source/npm.pp
new file mode 100644
index 00000000..8926d6fd
--- /dev/null
+++ b/provisioning/modules/pixelated/manifests/source/npm.pp
@@ -0,0 +1,9 @@
+# installs npm from source
+class pixelated::source::npm {
+
+ exec { 'install_npm':
+ command => '/usr/bin/curl -s -L https://npmjs.org/install.sh | /bin/sh',
+ unless => '/usr/bin/test -e /usr/bin/npm',
+ require => Package['nodejs-legacy'];
+ }
+}