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,
|
|
|
|
user => $luser,
|
2012-10-02 22:54:15 -04:00
|
|
|
|
2012-10-03 18:30:37 -04:00
|
|
|
path => [
|
|
|
|
"${boxen::config::home}/rbenv/shims",
|
2013-02-12 19:41:56 -05:00
|
|
|
"${boxen::config::hime}/rbenv/bin",
|
|
|
|
"${boxen::config::hime}/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}",
|
2012-10-18 21:15:57 -04:00
|
|
|
"HOME=/Users/${::luser}"
|
|
|
|
]
|
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',
|
|
|
|
owner => $luser
|
|
|
|
}
|
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'
|
|
|
|
],
|
|
|
|
require => Class['git']
|
|
|
|
}
|
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:12:06 -04:00
|
|
|
include nvm
|
2013-01-08 23:03:34 -05:00
|
|
|
include ruby
|
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
|
2012-10-04 01:30:11 -04:00
|
|
|
include nodejs::0-4
|
2012-10-04 00:23:28 -04:00
|
|
|
include nodejs::0-6
|
|
|
|
include nodejs::0-8
|
2012-10-04 00:23:42 -04:00
|
|
|
|
|
|
|
# default ruby versions
|
2012-10-04 01:30:11 -04:00
|
|
|
include ruby::1-8-7
|
|
|
|
include ruby::1-9-2
|
|
|
|
include ruby::1-9-3
|
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
|
|
|
}
|