2012-10-03 18:30:37 -04:00
|
|
|
require boxen::environment
|
|
|
|
require homebrew::repo
|
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",
|
|
|
|
"${boxen::config::home}/homebrew/bin",
|
|
|
|
'/usr/bin',
|
|
|
|
'/bin',
|
|
|
|
'/usr/sbin',
|
|
|
|
'/sbin'
|
|
|
|
]
|
|
|
|
}
|
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
|
|
|
|
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
|
2012-10-04 00:46:22 -04:00
|
|
|
include rbenv
|
2012-10-04 00:23:28 -04:00
|
|
|
|
2012-10-04 01:45:08 -04:00
|
|
|
# fail if FDE is not enabled
|
|
|
|
if $::root_encrypted == false {
|
|
|
|
fail('Please enable full disk encryption and try again')
|
|
|
|
}
|
|
|
|
|
2012-10-04 13:23:17 -04:00
|
|
|
repository { "${boxen::home}/repo":
|
|
|
|
ensure => present,
|
|
|
|
source => 'boxen/our-boxen'
|
|
|
|
}
|
|
|
|
|
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-03 18:30:37 -04:00
|
|
|
}
|