my-boxen/manifests/site.pp

92 lines
1.6 KiB
ObjectPascal
Raw Normal View History

2012-10-03 18:30:37 -04:00
require boxen::environment
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-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-18 21:15:57 -04:00
environment => [
"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 => File["${boxen::config::bindir}/boxen-git-credential"],
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
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
include nginx
2012-10-04 00:23:28 -04:00
# fail if FDE is not enabled
2013-02-14 21:16:39 -05:00
if $::root_encrypted == 'no' {
fail('Please enable full disk encryption and try again')
}
2012-10-04 00:23:28 -04:00
# node versions
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
# 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
}