2012-10-03 18:30:37 -04:00
|
|
|
require boxen::environment
|
2013-02-12 19:41:56 -05:00
|
|
|
require homebrew
|
|
|
|
require gcc
|
2012-10-02 22:54:15 -04:00
|
|
|
|
2012-10-03 18:30:37 -04:00
|
|
|
Exec {
|
|
|
|
group => 'staff',
|
|
|
|
logoutput => on_failure,
|
2013-07-22 18:01:42 -04:00
|
|
|
user => $boxen_user,
|
2012-10-02 22:54:15 -04:00
|
|
|
|
2012-10-03 18:30:37 -04:00
|
|
|
path => [
|
|
|
|
"${boxen::config::home}/rbenv/shims",
|
2013-02-15 15:20:53 -05:00
|
|
|
"${boxen::config::home}/rbenv/bin",
|
|
|
|
"${boxen::config::home}/rbenv/plugins/ruby-build/bin",
|
2012-10-03 18:30:37 -04:00
|
|
|
"${boxen::config::home}/homebrew/bin",
|
|
|
|
'/usr/bin',
|
|
|
|
'/bin',
|
|
|
|
'/usr/sbin',
|
|
|
|
'/sbin'
|
2012-10-22 08:25:58 -04:00
|
|
|
],
|
2012-10-18 21:15:57 -04:00
|
|
|
|
|
|
|
environment => [
|
2013-02-12 19:41:56 -05:00
|
|
|
"HOMEBREW_CACHE=${homebrew::config::cachedir}",
|
2013-07-22 18:01:42 -04:00
|
|
|
"HOME=/Users/${::boxen_user}"
|
2012-10-18 21:15:57 -04:00
|
|
|
]
|
2012-10-03 18:30:37 -04:00
|
|
|
}
|
2012-10-02 22:54:15 -04:00
|
|
|
|
2012-10-03 18:30:37 -04:00
|
|
|
File {
|
|
|
|
group => 'staff',
|
2013-07-22 18:01:42 -04:00
|
|
|
owner => $boxen_user
|
2012-10-03 18:30:37 -04:00
|
|
|
}
|
2012-10-02 22:54:15 -04:00
|
|
|
|
2012-10-03 18:30:37 -04:00
|
|
|
Package {
|
|
|
|
provider => homebrew,
|
|
|
|
require => Class['homebrew']
|
|
|
|
}
|
2012-10-02 22:54:15 -04:00
|
|
|
|
2012-10-03 18:30:37 -04:00
|
|
|
Repository {
|
|
|
|
provider => git,
|
|
|
|
extra => [
|
|
|
|
'--recurse-submodules'
|
|
|
|
],
|
2013-07-14 13:49:12 -04:00
|
|
|
require => File["${boxen::config::bindir}/boxen-git-credential"],
|
2013-06-11 13:32:40 -04:00
|
|
|
config => {
|
|
|
|
'credential.helper' => "${boxen::config::bindir}/boxen-git-credential"
|
|
|
|
}
|
2012-10-03 18:30:37 -04:00
|
|
|
}
|
2012-10-02 22:54:15 -04:00
|
|
|
|
2012-10-03 18:30:37 -04:00
|
|
|
Service {
|
|
|
|
provider => ghlaunchd
|
|
|
|
}
|
2012-10-02 22:54:15 -04:00
|
|
|
|
2013-02-12 19:41:56 -05:00
|
|
|
Homebrew::Formula <| |> -> Package <| |>
|
|
|
|
|
2012-10-03 18:30:37 -04:00
|
|
|
node default {
|
2012-10-04 00:23:28 -04:00
|
|
|
# core modules, needed for most things
|
2012-10-04 01:32:59 -04:00
|
|
|
include dnsmasq
|
2012-10-03 18:30:37 -04:00
|
|
|
include git
|
2012-10-03 21:53:32 -04:00
|
|
|
include hub
|
2012-10-04 00:46:22 -04:00
|
|
|
include nginx
|
2012-10-04 00:23:28 -04:00
|
|
|
|
2012-10-04 01:45:08 -04:00
|
|
|
# fail if FDE is not enabled
|
2013-02-14 21:16:39 -05:00
|
|
|
if $::root_encrypted == 'no' {
|
2012-10-04 01:45:08 -04:00
|
|
|
fail('Please enable full disk encryption and try again')
|
|
|
|
}
|
|
|
|
|
2012-10-04 00:23:28 -04:00
|
|
|
# node versions
|
2013-05-01 17:08:16 -04:00
|
|
|
include nodejs::v0_4
|
|
|
|
include nodejs::v0_6
|
|
|
|
include nodejs::v0_8
|
|
|
|
include nodejs::v0_10
|
2012-10-04 00:23:42 -04:00
|
|
|
|
|
|
|
# default ruby versions
|
2013-03-06 00:49:31 -05:00
|
|
|
include ruby::1_8_7
|
|
|
|
include ruby::1_9_2
|
|
|
|
include ruby::1_9_3
|
|
|
|
include ruby::2_0_0
|
2012-10-04 01:42:43 -04:00
|
|
|
|
|
|
|
# common, useful packages
|
|
|
|
package {
|
|
|
|
[
|
|
|
|
'ack',
|
|
|
|
'findutils',
|
|
|
|
'gnu-tar'
|
|
|
|
]:
|
|
|
|
}
|
2012-10-18 21:15:57 -04:00
|
|
|
|
|
|
|
file { "${boxen::config::srcdir}/our-boxen":
|
|
|
|
ensure => link,
|
|
|
|
target => $boxen::config::repodir
|
|
|
|
}
|
2012-10-03 18:30:37 -04:00
|
|
|
}
|