Skip to content

Instantly share code, notes, and snippets.

@gianlucacandiotti
Last active August 29, 2015 14:21
Show Gist options
  • Save gianlucacandiotti/5f27913effde184ecd3d to your computer and use it in GitHub Desktop.
Save gianlucacandiotti/5f27913effde184ecd3d to your computer and use it in GitHub Desktop.
Basic default.pp configuration.
# Requires nodejs, stdlib, apt and wget modules.
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }
exec { 'apt-get update':
command => 'apt-get update',
timeout => 60,
tries => 3,
}
class { 'apt':
update => {
frequency => 'always',
},
}
$sysPackages = [ 'build-essential', 'git']
package { $sysPackages:
ensure => "installed",
require => Exec['apt-get update'],
}
class { 'nodejs':
version => 'stable',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment