Last active
August 29, 2015 14:21
-
-
Save gianlucacandiotti/5f27913effde184ecd3d to your computer and use it in GitHub Desktop.
Basic default.pp configuration.
This file contains hidden or 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
# 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