Commit 8f53cca9a7765fce45b86beb9de41a235192d2d5
1 parent
c2c3707e8d
fuck a color symlink
Showing 1 changed file with 1 additions and 7 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 | |||
| # Setup real clone of our-boxen and link into BOXEN_HOME | 55 | 55 | # Setup real clone of our-boxen and link into BOXEN_HOME | |
| repository { "${boxen::config::srcdir}/our-boxen": | 56 | 56 | repository { "${::boxen_home}/repo": | |
| ensure => present, | 57 | 57 | ensure => present, | |
| source => 'boxen/our-boxen' | 58 | 58 | source => 'boxen/our-boxen' | |
| } | 59 | |||
| 60 | ||||
| file { "${boxen::home}/repo": | 61 | |||
| ensure => link, | 62 | |||
| target => "${boxen::config::srcdir}/our-boxen", | 63 | |||
| require => Repository["${boxen::config::srcdir}/our-boxen"] | 64 | |||
| } | 65 | 59 | } | |
| 66 | 60 | |||
| # node versions | 67 | 61 | # node versions | |
| include nodejs::0-4 | 68 | 62 | include nodejs::0-4 | |
| include nodejs::0-6 | 69 | 63 | include nodejs::0-6 | |
| include nodejs::0-8 | 70 | 64 | include nodejs::0-8 | |
| 71 | 65 | |||
| # default ruby versions | 72 | 66 | # default ruby versions | |
| include ruby::1-8-7 | 73 | 67 | include ruby::1-8-7 |