Created
June 4, 2013 15:12
-
-
Save jkrehm/5706671 to your computer and use it in GitHub Desktop.
Example of Puppet script, specifically installing Node and some of its packages
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
class node_builder::build { | |
class { 'nodejs': | |
version => '0.10.5', | |
} | |
# Uses NPM provider from PuppetLabs Node.js project. | |
# https://github.com/puppetlabs/puppetlabs-nodejs | |
package { 'forever': | |
ensure => installed, | |
provider => 'npm', | |
require => Class['nodejs'], | |
} | |
package { 'grunt-cli': | |
ensure => installed, | |
provider => 'npm', | |
require => Class['nodejs'], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment