Blame view

manifests/site.pp 1.3 KB
ce459a313   Will Farrington   turn puppet fu ba...
1
2
  require boxen::environment
  require homebrew::repo
f5a10d9d8   Will Farrington   update default no...
3

ce459a313   Will Farrington   turn puppet fu ba...
4
5
6
7
  Exec {
    group       => 'staff',
    logoutput   => on_failure,
    user        => $luser,
f5a10d9d8   Will Farrington   update default no...
8

ce459a313   Will Farrington   turn puppet fu ba...
9
10
11
12
13
14
15
    path => [
      "${boxen::config::home}/rbenv/shims",
      "${boxen::config::home}/homebrew/bin",
      '/usr/bin',
      '/bin',
      '/usr/sbin',
      '/sbin'
87bd13f8c   Johan Haals   site.pp - Added m...
16
    ],
f8640b770   Will Farrington   backport a ton fr...
17
18
19
20
21
  
    environment => [
      "HOMEBREW_CACHE=${homebrew::cachedir}",
      "HOME=/Users/${::luser}"
    ]
ce459a313   Will Farrington   turn puppet fu ba...
22
  }
f5a10d9d8   Will Farrington   update default no...
23

ce459a313   Will Farrington   turn puppet fu ba...
24
25
26
27
  File {
    group => 'staff',
    owner => $luser
  }
f5a10d9d8   Will Farrington   update default no...
28

ce459a313   Will Farrington   turn puppet fu ba...
29
30
31
32
  Package {
    provider => homebrew,
    require  => Class['homebrew']
  }
f5a10d9d8   Will Farrington   update default no...
33

ce459a313   Will Farrington   turn puppet fu ba...
34
35
36
37
38
39
40
  Repository {
    provider => git,
    extra    => [
      '--recurse-submodules'
    ],
    require  => Class['git']
  }
f5a10d9d8   Will Farrington   update default no...
41

ce459a313   Will Farrington   turn puppet fu ba...
42
43
44
  Service {
    provider => ghlaunchd
  }
f5a10d9d8   Will Farrington   update default no...
45

ce459a313   Will Farrington   turn puppet fu ba...
46
  node default {
a88ba81d8   Will Farrington   include node 0.6 ...
47
    # core modules, needed for most things
ee43dd9ea   Will Farrington   enable dnsmasq by...
48
    include dnsmasq
ce459a313   Will Farrington   turn puppet fu ba...
49
    include git
466279b7f   Will Farrington   add hub and rbenv
50
    include hub
64fe0a9d7   Will Farrington   update tons of mo...
51
    include nginx
ba6fbc987   Will Farrington   update nvm and in...
52
    include nvm
fdb27960f   Will Farrington   Update template w...
53
    include ruby
a88ba81d8   Will Farrington   include node 0.6 ...
54

f570ecfc9   Will Farrington   fail if no FDE, t...
55
56
57
58
    # fail if FDE is not enabled
    if $::root_encrypted == false {
      fail('Please enable full disk encryption and try again')
    }
a88ba81d8   Will Farrington   include node 0.6 ...
59
    # node versions
8bf478a01   Will Farrington   enable all the ru...
60
    include nodejs::0-4
a88ba81d8   Will Farrington   include node 0.6 ...
61
62
    include nodejs::0-6
    include nodejs::0-8
e93eb3c83   Will Farrington   include ruby 1.9....
63
64
  
    # default ruby versions
8bf478a01   Will Farrington   enable all the ru...
65
66
67
    include ruby::1-8-7
    include ruby::1-9-2
    include ruby::1-9-3
fa4648ddd   Will Farrington   add some common p...
68
69
70
71
72
73
74
75
76
  
    # common, useful packages
    package {
      [
        'ack',
        'findutils',
        'gnu-tar'
      ]:
    }
f8640b770   Will Farrington   backport a ton fr...
77
78
79
80
81
  
    file { "${boxen::config::srcdir}/our-boxen":
      ensure => link,
      target => $boxen::config::repodir
    }
ce459a313   Will Farrington   turn puppet fu ba...
82
  }