Blame view

manifests/site.pp 1.2 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
16
17
    path => [
      "${boxen::config::home}/rbenv/shims",
      "${boxen::config::home}/homebrew/bin",
      '/usr/bin',
      '/bin',
      '/usr/sbin',
      '/sbin'
    ]
  }
f5a10d9d8   Will Farrington   update default no...
18

ce459a313   Will Farrington   turn puppet fu ba...
19
20
21
22
  File {
    group => 'staff',
    owner => $luser
  }
f5a10d9d8   Will Farrington   update default no...
23

ce459a313   Will Farrington   turn puppet fu ba...
24
25
26
27
  Package {
    provider => homebrew,
    require  => Class['homebrew']
  }
f5a10d9d8   Will Farrington   update default no...
28

ce459a313   Will Farrington   turn puppet fu ba...
29
30
31
32
33
34
35
  Repository {
    provider => git,
    extra    => [
      '--recurse-submodules'
    ],
    require  => Class['git']
  }
f5a10d9d8   Will Farrington   update default no...
36

ce459a313   Will Farrington   turn puppet fu ba...
37
38
39
  Service {
    provider => ghlaunchd
  }
f5a10d9d8   Will Farrington   update default no...
40

ce459a313   Will Farrington   turn puppet fu ba...
41
  node default {
a88ba81d8   Will Farrington   include node 0.6 ...
42
    # core modules, needed for most things
ee43dd9ea   Will Farrington   enable dnsmasq by...
43
    include dnsmasq
ce459a313   Will Farrington   turn puppet fu ba...
44
    include git
466279b7f   Will Farrington   add hub and rbenv
45
    include hub
64fe0a9d7   Will Farrington   update tons of mo...
46
    include nginx
ba6fbc987   Will Farrington   update nvm and in...
47
    include nvm
64fe0a9d7   Will Farrington   update tons of mo...
48
    include rbenv
a88ba81d8   Will Farrington   include node 0.6 ...
49

f570ecfc9   Will Farrington   fail if no FDE, t...
50
51
52
53
    # fail if FDE is not enabled
    if $::root_encrypted == false {
      fail('Please enable full disk encryption and try again')
    }
0cbf6a884   Will Farrington   ensure we clone o...
54
55
56
57
    repository { "${boxen::home}/repo":
      ensure => present,
      source => 'boxen/our-boxen'
    }
a88ba81d8   Will Farrington   include node 0.6 ...
58
    # node versions
8bf478a01   Will Farrington   enable all the ru...
59
    include nodejs::0-4
a88ba81d8   Will Farrington   include node 0.6 ...
60
61
    include nodejs::0-6
    include nodejs::0-8
e93eb3c83   Will Farrington   include ruby 1.9....
62
63
  
    # default ruby versions
8bf478a01   Will Farrington   enable all the ru...
64
65
66
    include ruby::1-8-7
    include ruby::1-9-2
    include ruby::1-9-3
fa4648ddd   Will Farrington   add some common p...
67
68
69
70
71
72
73
74
75
  
    # common, useful packages
    package {
      [
        'ack',
        'findutils',
        'gnu-tar'
      ]:
    }
ce459a313   Will Farrington   turn puppet fu ba...
76
  }