b05b5b0baf
This reverts commit40de1e40f3
, reversing changes made to206dee9965
. Reason: This make harder to override the global version if it is required for someone. See https://github.com/boxen/our-boxen/pull/311#issuecomment-19719152
91 lines
1.6 KiB
Puppet
91 lines
1.6 KiB
Puppet
require boxen::environment
|
|
require homebrew
|
|
require gcc
|
|
|
|
Exec {
|
|
group => 'staff',
|
|
logoutput => on_failure,
|
|
user => $luser,
|
|
|
|
path => [
|
|
"${boxen::config::home}/rbenv/shims",
|
|
"${boxen::config::home}/rbenv/bin",
|
|
"${boxen::config::home}/rbenv/plugins/ruby-build/bin",
|
|
"${boxen::config::home}/homebrew/bin",
|
|
'/usr/bin',
|
|
'/bin',
|
|
'/usr/sbin',
|
|
'/sbin'
|
|
],
|
|
|
|
environment => [
|
|
"HOMEBREW_CACHE=${homebrew::config::cachedir}",
|
|
"HOME=/Users/${::luser}"
|
|
]
|
|
}
|
|
|
|
File {
|
|
group => 'staff',
|
|
owner => $luser
|
|
}
|
|
|
|
Package {
|
|
provider => homebrew,
|
|
require => Class['homebrew']
|
|
}
|
|
|
|
Repository {
|
|
provider => git,
|
|
extra => [
|
|
'--recurse-submodules'
|
|
],
|
|
require => Class['git'],
|
|
config => {
|
|
'credential.helper' => "${boxen::config::bindir}/boxen-git-credential"
|
|
}
|
|
}
|
|
|
|
Service {
|
|
provider => ghlaunchd
|
|
}
|
|
|
|
Homebrew::Formula <| |> -> Package <| |>
|
|
|
|
node default {
|
|
# core modules, needed for most things
|
|
include dnsmasq
|
|
include git
|
|
include hub
|
|
include nginx
|
|
|
|
# fail if FDE is not enabled
|
|
if $::root_encrypted == 'no' {
|
|
fail('Please enable full disk encryption and try again')
|
|
}
|
|
|
|
# node versions
|
|
include nodejs::v0_4
|
|
include nodejs::v0_6
|
|
include nodejs::v0_8
|
|
include nodejs::v0_10
|
|
|
|
# default ruby versions
|
|
include ruby::1_8_7
|
|
include ruby::1_9_2
|
|
include ruby::1_9_3
|
|
include ruby::2_0_0
|
|
|
|
# common, useful packages
|
|
package {
|
|
[
|
|
'ack',
|
|
'findutils',
|
|
'gnu-tar'
|
|
]:
|
|
}
|
|
|
|
file { "${boxen::config::srcdir}/our-boxen":
|
|
ensure => link,
|
|
target => $boxen::config::repodir
|
|
}
|
|
}
|