Blame view

manifests/site.pp 1.4 KB
3a47d364c   Jianwei Han   Remove caches for...
1
2
  require boxen::environment
  require homebrew
3a47d364c   Jianwei Han   Remove caches for...
3
4
5
6
7
8
9
10
11
12
  
  Exec {
    group       => 'staff',
    logoutput   => on_failure,
    user        => $boxen_user,
  
    path => [
      "${boxen::config::home}/rbenv/shims",
      "${boxen::config::home}/rbenv/bin",
      "${boxen::config::home}/rbenv/plugins/ruby-build/bin",
a2d6ec482   Jianwei Han   Fix problems for ...
13
      "/usr/local/bin",
3a47d364c   Jianwei Han   Remove caches for...
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
      '/usr/bin',
      '/bin',
      '/usr/sbin',
      '/sbin'
    ],
  
    environment => [
      "HOMEBREW_CACHE=${homebrew::config::cachedir}",
      "HOME=/Users/${::boxen_user}"
    ]
  }
  
  File {
    group => 'staff',
    owner => $boxen_user
  }
  
  Package {
    provider => homebrew,
    require  => Class['homebrew']
  }
  
  Repository {
    provider => git,
    extra    => [
      '--recurse-submodules'
    ],
    require  => File["${boxen::config::bindir}/boxen-git-credential"],
    config   => {
      'credential.helper' => "${boxen::config::bindir}/boxen-git-credential"
    }
  }
  
  Service {
    provider => ghlaunchd
  }
  
  Homebrew::Formula <| |> -> Package <| |>
  
  node default {
    # core modules, needed for most things
3a47d364c   Jianwei Han   Remove caches for...
55
56
    include git
    include hub
3a47d364c   Jianwei Han   Remove caches for...
57
58
59
60
61
62
63
64
65
66
67
68
  
    # fail if FDE is not enabled
    if $::root_encrypted == 'no' {
      fail('Please enable full disk encryption and try again')
    }
  
    # node versions
    include nodejs::v0_10
    include nodejs::global
  
    # default ruby versions
    ruby::version { '1.9.3': }
3a47d364c   Jianwei Han   Remove caches for...
69
70
    ruby::version { '2.1.2': }
    include ruby::global
3a47d364c   Jianwei Han   Remove caches for...
71
72
73
74
75
    file { "${boxen::config::srcdir}/our-boxen":
      ensure => link,
      target => $boxen::config::repodir
    }
  }