Commit 0cbf6a884b1df5f83fa6f20244eb7cd8f2276ccb
1 parent
c46c7b5a60
ensure we clone our boxen repo into BOXEN_HOME/repo
Showing 1 changed file with 5 additions and 0 deletions Inline Diff
manifests/site.pp
| require boxen::environment | 1 | 1 | require boxen::environment | |
| require homebrew::repo | 2 | 2 | require homebrew::repo | |
| 3 | 3 | |||
| Exec { | 4 | 4 | Exec { | |
| group => 'staff', | 5 | 5 | group => 'staff', | |
| logoutput => on_failure, | 6 | 6 | logoutput => on_failure, | |
| user => $luser, | 7 | 7 | user => $luser, | |
| 8 | 8 | |||
| path => [ | 9 | 9 | path => [ | |
| "${boxen::config::home}/rbenv/shims", | 10 | 10 | "${boxen::config::home}/rbenv/shims", | |
| "${boxen::config::home}/homebrew/bin", | 11 | 11 | "${boxen::config::home}/homebrew/bin", | |
| '/usr/bin', | 12 | 12 | '/usr/bin', | |
| '/bin', | 13 | 13 | '/bin', | |
| '/usr/sbin', | 14 | 14 | '/usr/sbin', | |
| '/sbin' | 15 | 15 | '/sbin' | |
| ] | 16 | 16 | ] | |
| } | 17 | 17 | } | |
| 18 | 18 | |||
| File { | 19 | 19 | File { | |
| group => 'staff', | 20 | 20 | group => 'staff', | |
| owner => $luser | 21 | 21 | owner => $luser | |
| } | 22 | 22 | } | |
| 23 | 23 | |||
| Package { | 24 | 24 | Package { | |
| provider => homebrew, | 25 | 25 | provider => homebrew, | |
| require => Class['homebrew'] | 26 | 26 | require => Class['homebrew'] | |
| } | 27 | 27 | } | |
| 28 | 28 | |||
| Repository { | 29 | 29 | Repository { | |
| provider => git, | 30 | 30 | provider => git, | |
| extra => [ | 31 | 31 | extra => [ | |
| '--recurse-submodules' | 32 | 32 | '--recurse-submodules' | |
| ], | 33 | 33 | ], | |
| require => Class['git'] | 34 | 34 | require => Class['git'] | |
| } | 35 | 35 | } | |
| 36 | 36 | |||
| Service { | 37 | 37 | Service { | |
| provider => ghlaunchd | 38 | 38 | provider => ghlaunchd | |
| } | 39 | 39 | } | |
| 40 | 40 | |||
| node default { | 41 | 41 | node default { | |
| # core modules, needed for most things | 42 | 42 | # core modules, needed for most things | |
| include dnsmasq | 43 | 43 | include dnsmasq | |
| include git | 44 | 44 | include git | |
| include hub | 45 | 45 | include hub | |
| include nginx | 46 | 46 | include nginx | |
| include nvm | 47 | 47 | include nvm | |
| include rbenv | 48 | 48 | include rbenv | |
| 49 | 49 | |||
| # fail if FDE is not enabled | 50 | 50 | # fail if FDE is not enabled | |
| if $::root_encrypted == false { | 51 | 51 | if $::root_encrypted == false { | |
| fail('Please enable full disk encryption and try again') | 52 | 52 | fail('Please enable full disk encryption and try again') | |
| } | 53 | 53 | } | |
| 54 | 54 | |||
| 55 | repository { "${boxen::home}/repo": | |||
| 56 | ensure => present, | |||
| 57 | source => 'boxen/our-boxen' | |||
| 58 | } | |||
| 59 | ||||
| # node versions | 55 | 60 | # node versions | |
| include nodejs::0-4 | 56 | 61 | include nodejs::0-4 | |
| include nodejs::0-6 | 57 | 62 | include nodejs::0-6 | |
| include nodejs::0-8 | 58 | 63 | include nodejs::0-8 | |
| 59 | 64 | |||
| # default ruby versions | 60 | 65 | # default ruby versions | |
| include ruby::1-8-7 | 61 | 66 | include ruby::1-8-7 | |
| include ruby::1-9-2 | 62 | 67 | include ruby::1-9-2 |