Last active
October 15, 2019 23:32
-
-
Save hciudad/c590bd74095c8c4c231c to your computer and use it in GitHub Desktop.
Puppet manifest to install node and npm from nodesource, then gulp with npm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec { 'Add nodesource sources': | |
command => 'curl -sL https://deb.nodesource.com/setup | sudo bash -', | |
creates => '/etc/apt/sources.list.d/nodesource.list', | |
path => ['/usr/bin', '/bin', '/usr/sbin']; | |
} | |
package { 'nodejs': | |
ensure => 'present', | |
require => Exec['Add nodesource sources']; | |
} | |
exec { 'npm install --global gulp': | |
creates => '/usr/bin/gulp', | |
path => ['/usr/bin', '/bin', '/usr/sbin'], | |
require => Package['nodejs']; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment