Skip to content

Instantly share code, notes, and snippets.

@jkrehm
Created June 4, 2013 15:12
Show Gist options
  • Save jkrehm/5706671 to your computer and use it in GitHub Desktop.
Save jkrehm/5706671 to your computer and use it in GitHub Desktop.
Example of Puppet script, specifically installing Node and some of its packages
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