Skip to content

Instantly share code, notes, and snippets.

@dalssoft
Created January 24, 2014 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dalssoft/8605077 to your computer and use it in GitHub Desktop.
Save dalssoft/8605077 to your computer and use it in GitHub Desktop.
group { 'puppet':
ensure => present
} ->
exec { 'apt-get update':
command => '/usr/bin/apt-get update',
timeout => 0
} ->
package { ['python-software-properties']:
ensure => present
} ->
exec { 'add-repository nodejs':
command => '/usr/bin/add-apt-repository ppa:chris-lea/node.js',
unless => '/usr/bin/apt-key list | grep node'
} ->
exec { 'apt-get update2':
command => '/usr/bin/apt-get update',
timeout => 0
} ->
package { ['git', 'mysql-server', 'nodejs', 'figlet', 'libfontconfig1', 'graphicsmagick', 'curl', 'make', 'g++']:
ensure => present
} ->
exec { "install-coffee":
command => "/usr/bin/sudo /usr/bin/npm install -g coffee-script",
path => "/usr/local/bin",
unless => "/usr/bin/which coffee"
} ->
exec { "install-forever":
command => "/usr/bin/sudo /usr/bin/npm install -g forever",
path => "/usr/local/bin",
unless => "/usr/bin/which forever"
}
exec { "install-phantomjs":
command => "/usr/bin/sudo /usr/bin/npm install -g phantomjs",
path => "/usr/local/bin",
unless => "/usr/bin/which phantomjs"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment