Blame view
manifests/site.pp
1.46 KB
|
ce459a313
|
1 |
require boxen::environment |
|
d4af4bf81
|
2 3 |
require homebrew require gcc |
|
f5a10d9d8
|
4 |
|
|
ce459a313
|
5 6 7 8 |
Exec {
group => 'staff',
logoutput => on_failure,
user => $luser,
|
|
f5a10d9d8
|
9 |
|
|
ce459a313
|
10 11 |
path => [
"${boxen::config::home}/rbenv/shims",
|
|
eda66ae79
|
12 13 |
"${boxen::config::home}/rbenv/bin",
"${boxen::config::home}/rbenv/plugins/ruby-build/bin",
|
|
ce459a313
|
14 15 16 17 18 |
"${boxen::config::home}/homebrew/bin",
'/usr/bin',
'/bin',
'/usr/sbin',
'/sbin'
|
|
87bd13f8c
|
19 |
], |
|
f8640b770
|
20 21 |
environment => [
|
|
d4af4bf81
|
22 |
"HOMEBREW_CACHE=${homebrew::config::cachedir}",
|
|
f8640b770
|
23 24 |
"HOME=/Users/${::luser}"
]
|
|
ce459a313
|
25 |
} |
|
f5a10d9d8
|
26 |
|
|
ce459a313
|
27 28 29 30 |
File {
group => 'staff',
owner => $luser
}
|
|
f5a10d9d8
|
31 |
|
|
ce459a313
|
32 33 34 35 |
Package {
provider => homebrew,
require => Class['homebrew']
}
|
|
f5a10d9d8
|
36 |
|
|
ce459a313
|
37 38 39 40 41 42 43 |
Repository {
provider => git,
extra => [
'--recurse-submodules'
],
require => Class['git']
}
|
|
f5a10d9d8
|
44 |
|
|
ce459a313
|
45 46 47 |
Service {
provider => ghlaunchd
}
|
|
f5a10d9d8
|
48 |
|
|
d4af4bf81
|
49 |
Homebrew::Formula <| |> -> Package <| |> |
|
ce459a313
|
50 |
node default {
|
|
a88ba81d8
|
51 |
# core modules, needed for most things |
|
ee43dd9ea
|
52 |
include dnsmasq |
|
ce459a313
|
53 |
include git |
|
466279b7f
|
54 |
include hub |
|
64fe0a9d7
|
55 |
include nginx |
|
ba6fbc987
|
56 |
include nvm |
|
a88ba81d8
|
57 |
|
|
f570ecfc9
|
58 |
# fail if FDE is not enabled |
|
2ca5befc4
|
59 |
if $::root_encrypted == 'no' {
|
|
f570ecfc9
|
60 61 |
fail('Please enable full disk encryption and try again')
}
|
|
a88ba81d8
|
62 |
# node versions |
|
8bf478a01
|
63 |
include nodejs::0-4 |
|
a88ba81d8
|
64 65 |
include nodejs::0-6
include nodejs::0-8
|
|
e93eb3c83
|
66 67 |
# default ruby versions
|
|
a5db44c85
|
68 69 70 71 |
include ruby::1_8_7
include ruby::1_9_2
include ruby::1_9_3
include ruby::2_0_0
|
|
fa4648ddd
|
72 73 74 75 76 77 78 79 80 |
# common, useful packages
package {
[
'ack',
'findutils',
'gnu-tar'
]:
}
|
|
f8640b770
|
81 82 83 84 85 |
file { "${boxen::config::srcdir}/our-boxen":
ensure => link,
target => $boxen::config::repodir
}
|
|
ce459a313
|
86 |
} |