Commit f8640b7709d0c9cb5591835907112abad484ec20
1 parent
1700876d9e
backport a ton from github
Showing 12 changed files with 18 additions and 8 deletions Inline Diff
- Gemfile.lock
- Puppetfile
- Puppetfile.lock
- manifests/site.pp
- vendor/cache/boxen-0.4.0.gem
- vendor/cache/boxen-0.4.1.gem
- vendor/cache/librarian-puppet-0.9.6.gem
- vendor/cache/librarian-puppet-0.9.7.gem
- vendor/puppet/cache/boxen-puppet-boxen-0.0.26.tar.gz
- vendor/puppet/cache/boxen-puppet-boxen-0.0.27.tar.gz
- vendor/puppet/cache/boxen-puppet-homebrew-0.0.14.tar.gz
- vendor/puppet/cache/boxen-puppet-homebrew-0.0.9.tar.gz
Gemfile.lock
GEM | 1 | 1 | GEM | |
remote: http://rubygems.org/ | 2 | 2 | remote: http://rubygems.org/ | |
specs: | 3 | 3 | specs: | |
addressable (2.3.2) | 4 | 4 | addressable (2.3.2) | |
ansi (1.4.3) | 5 | 5 | ansi (1.4.3) | |
aws-sdk (1.6.9) | 6 | 6 | aws-sdk (1.6.9) | |
httparty (~> 0.7) | 7 | 7 | httparty (~> 0.7) | |
json (~> 1.4) | 8 | 8 | json (~> 1.4) | |
nokogiri (>= 1.4.4) | 9 | 9 | nokogiri (>= 1.4.4) | |
uuidtools (~> 2.1) | 10 | 10 | uuidtools (~> 2.1) | |
boxen (0.4.0) | 11 | 11 | boxen (0.4.1) | |
ansi (~> 1.4) | 12 | 12 | ansi (~> 1.4) | |
hiera (~> 1.0.0) | 13 | 13 | hiera (~> 1.0.0) | |
highline (~> 1.6) | 14 | 14 | highline (~> 1.6) | |
json_pure (~> 1.7) | 15 | 15 | json_pure (~> 1.7) | |
librarian-puppet (~> 0.9) | 16 | 16 | librarian-puppet (~> 0.9) | |
octokit (~> 1.15) | 17 | 17 | octokit (~> 1.15) | |
puppet (~> 3.0) | 18 | 18 | puppet (~> 3.0) | |
facter (1.6.12) | 19 | 19 | facter (1.6.12) | |
faraday (0.8.4) | 20 | 20 | faraday (0.8.4) | |
multipart-post (~> 1.1) | 21 | 21 | multipart-post (~> 1.1) | |
faraday_middleware (0.8.8) | 22 | 22 | faraday_middleware (0.8.8) | |
faraday (>= 0.7.4, < 0.9) | 23 | 23 | faraday (>= 0.7.4, < 0.9) | |
hashie (1.2.0) | 24 | 24 | hashie (1.2.0) | |
hiera (1.0.0) | 25 | 25 | hiera (1.0.0) | |
highline (1.6.15) | 26 | 26 | highline (1.6.15) | |
httparty (0.9.0) | 27 | 27 | httparty (0.9.0) | |
multi_json (~> 1.0) | 28 | 28 | multi_json (~> 1.0) | |
multi_xml | 29 | 29 | multi_xml | |
json (1.7.5) | 30 | 30 | json (1.7.5) | |
json_pure (1.7.5) | 31 | 31 | json_pure (1.7.5) | |
librarian-puppet (0.9.6) | 32 | 32 | librarian-puppet (0.9.7) | |
json_pure | 33 | 33 | json_pure | |
puppet | 34 | 34 | puppet | |
thor (~> 0.15) | 35 | 35 | thor (~> 0.15) | |
multi_json (1.3.6) | 36 | 36 | multi_json (1.3.6) | |
multi_xml (0.5.1) | 37 | 37 | multi_xml (0.5.1) | |
multipart-post (1.1.5) | 38 | 38 | multipart-post (1.1.5) | |
nokogiri (1.5.5) | 39 | 39 | nokogiri (1.5.5) | |
octokit (1.15.1) | 40 | 40 | octokit (1.15.1) | |
addressable (~> 2.2) | 41 | 41 | addressable (~> 2.2) | |
faraday (~> 0.8) | 42 | 42 | faraday (~> 0.8) | |
faraday_middleware (~> 0.8) | 43 | 43 | faraday_middleware (~> 0.8) | |
hashie (~> 1.2) | 44 | 44 | hashie (~> 1.2) | |
multi_json (~> 1.3) | 45 | 45 | multi_json (~> 1.3) | |
puppet (3.0.0) | 46 | 46 | puppet (3.0.0) | |
facter (>= 1.6.11) | 47 | 47 | facter (>= 1.6.11) | |
hiera (>= 1.0.0rc) | 48 | 48 | hiera (>= 1.0.0rc) | |
thor (0.16.0) | 49 | 49 | thor (0.16.0) | |
uuidtools (2.1.3) | 50 | 50 | uuidtools (2.1.3) | |
51 | 51 | |||
PLATFORMS | 52 | 52 | PLATFORMS | |
ruby | 53 | 53 | ruby | |
54 | 54 | |||
DEPENDENCIES | 55 | 55 | DEPENDENCIES | |
aws-sdk | 56 | 56 | aws-sdk | |
boxen (~> 0.4) | 57 | 57 | boxen (~> 0.4) |
Puppetfile
# This file manages Puppet module dependencies. | 1 | 1 | # This file manages Puppet module dependencies. | |
# | 2 | 2 | # | |
# It works a lot like Bundler. We provide some core modules by | 3 | 3 | # It works a lot like Bundler. We provide some core modules by | |
# default. This ensures at least the ability to construct a basic | 4 | 4 | # default. This ensures at least the ability to construct a basic | |
# environment. | 5 | 5 | # environment. | |
6 | 6 | |||
# Includes many of our custom types and providers, as well as global | 7 | 7 | # Includes many of our custom types and providers, as well as global | |
# config. Required. | 8 | 8 | # config. Required. | |
9 | 9 | |||
# Core modules for a basic development environment. | 10 | 10 | # Core modules for a basic development environment. | |
# You can replace some/most of those if you want, but it's not recommended. | 11 | 11 | # You can replace some/most of those if you want, but it's not recommended. | |
12 | 12 | |||
mod "boxen", "0.0.26", :github_tarball => "boxen/puppet-boxen" | 13 | 13 | mod "boxen", "0.0.27", :github_tarball => "boxen/puppet-boxen" | |
mod "dnsmasq", "0.0.1", :github_tarball => "boxen/puppet-dnsmasq" | 14 | 14 | mod "dnsmasq", "0.0.1", :github_tarball => "boxen/puppet-dnsmasq" | |
mod "git", "0.0.2.4", :github_tarball => "boxen/puppet-git" | 15 | 15 | mod "git", "0.0.2.4", :github_tarball => "boxen/puppet-git" | |
mod "hub", "0.0.1", :github_tarball => "boxen/puppet-hub" | 16 | 16 | mod "hub", "0.0.1", :github_tarball => "boxen/puppet-hub" | |
mod "homebrew", "0.0.9", :github_tarball => "boxen/puppet-homebrew" | 17 | 17 | mod "homebrew", "0.0.14", :github_tarball => "boxen/puppet-homebrew" | |
mod "inifile", "0.0.1", :github_tarball => "boxen/puppet-inifile" | 18 | 18 | mod "inifile", "0.0.1", :github_tarball => "boxen/puppet-inifile" | |
mod "nginx", "0.0.2", :github_tarball => "boxen/puppet-nginx" | 19 | 19 | mod "nginx", "0.0.2", :github_tarball => "boxen/puppet-nginx" | |
mod "nodejs", "0.0.2", :github_tarball => "boxen/puppet-nodejs" | 20 | 20 | mod "nodejs", "0.0.2", :github_tarball => "boxen/puppet-nodejs" | |
mod "nvm", "0.0.5", :github_tarball => "boxen/puppet-nvm" | 21 | 21 | mod "nvm", "0.0.5", :github_tarball => "boxen/puppet-nvm" | |
mod "rbenv", "0.0.2", :github_tarball => "boxen/puppet-rbenv" | 22 | 22 | mod "rbenv", "0.0.2", :github_tarball => "boxen/puppet-rbenv" | |
mod "ruby", "0.0.9", :github_tarball => "boxen/puppet-ruby" | 23 | 23 | mod "ruby", "0.0.9", :github_tarball => "boxen/puppet-ruby" | |
mod "stdlib", "3.0.0", :github_tarball => "puppetlabs/puppetlabs-stdlib" | 24 | 24 | mod "stdlib", "3.0.0", :github_tarball => "puppetlabs/puppetlabs-stdlib" | |
mod "sudo", "0.0.1", :github_tarball => "boxen/puppet-sudo" | 25 | 25 | mod "sudo", "0.0.1", :github_tarball => "boxen/puppet-sudo" | |
26 | 26 |
Puppetfile.lock
GITHUBTARBALL | 1 | 1 | GITHUBTARBALL | |
remote: boxen/puppet-boxen | 2 | 2 | remote: boxen/puppet-boxen | |
specs: | 3 | 3 | specs: | |
boxen (0.0.26) | 4 | 4 | boxen (0.0.27) | |
5 | 5 | |||
GITHUBTARBALL | 6 | 6 | GITHUBTARBALL | |
remote: boxen/puppet-dnsmasq | 7 | 7 | remote: boxen/puppet-dnsmasq | |
specs: | 8 | 8 | specs: | |
dnsmasq (0.0.1) | 9 | 9 | dnsmasq (0.0.1) | |
10 | 10 | |||
GITHUBTARBALL | 11 | 11 | GITHUBTARBALL | |
remote: boxen/puppet-git | 12 | 12 | remote: boxen/puppet-git | |
specs: | 13 | 13 | specs: | |
git (0.0.2.4) | 14 | 14 | git (0.0.2.4) | |
15 | 15 | |||
GITHUBTARBALL | 16 | 16 | GITHUBTARBALL | |
remote: boxen/puppet-homebrew | 17 | 17 | remote: boxen/puppet-homebrew | |
specs: | 18 | 18 | specs: | |
homebrew (0.0.9) | 19 | 19 | homebrew (0.0.14) | |
20 | 20 | |||
GITHUBTARBALL | 21 | 21 | GITHUBTARBALL | |
remote: boxen/puppet-hub | 22 | 22 | remote: boxen/puppet-hub | |
specs: | 23 | 23 | specs: | |
hub (0.0.1) | 24 | 24 | hub (0.0.1) | |
25 | 25 | |||
GITHUBTARBALL | 26 | 26 | GITHUBTARBALL | |
remote: boxen/puppet-inifile | 27 | 27 | remote: boxen/puppet-inifile | |
specs: | 28 | 28 | specs: | |
inifile (0.0.1) | 29 | 29 | inifile (0.0.1) | |
30 | 30 | |||
GITHUBTARBALL | 31 | 31 | GITHUBTARBALL | |
remote: boxen/puppet-nginx | 32 | 32 | remote: boxen/puppet-nginx | |
specs: | 33 | 33 | specs: | |
nginx (0.0.2) | 34 | 34 | nginx (0.0.2) | |
35 | 35 | |||
GITHUBTARBALL | 36 | 36 | GITHUBTARBALL | |
remote: boxen/puppet-nodejs | 37 | 37 | remote: boxen/puppet-nodejs | |
specs: | 38 | 38 | specs: | |
nodejs (0.0.2) | 39 | 39 | nodejs (0.0.2) | |
40 | 40 | |||
GITHUBTARBALL | 41 | 41 | GITHUBTARBALL | |
remote: boxen/puppet-nvm | 42 | 42 | remote: boxen/puppet-nvm | |
specs: | 43 | 43 | specs: | |
nvm (0.0.5) | 44 | 44 | nvm (0.0.5) | |
45 | 45 | |||
GITHUBTARBALL | 46 | 46 | GITHUBTARBALL | |
remote: boxen/puppet-rbenv | 47 | 47 | remote: boxen/puppet-rbenv | |
specs: | 48 | 48 | specs: | |
rbenv (0.0.2) | 49 | 49 | rbenv (0.0.2) | |
50 | 50 | |||
GITHUBTARBALL | 51 | 51 | GITHUBTARBALL | |
remote: boxen/puppet-ruby | 52 | 52 | remote: boxen/puppet-ruby | |
specs: | 53 | 53 | specs: | |
ruby (0.0.9) | 54 | 54 | ruby (0.0.9) | |
55 | 55 | |||
GITHUBTARBALL | 56 | 56 | GITHUBTARBALL | |
remote: boxen/puppet-sudo | 57 | 57 | remote: boxen/puppet-sudo | |
specs: | 58 | 58 | specs: | |
sudo (0.0.1) | 59 | 59 | sudo (0.0.1) | |
60 | 60 | |||
GITHUBTARBALL | 61 | 61 | GITHUBTARBALL | |
remote: puppetlabs/puppetlabs-stdlib | 62 | 62 | remote: puppetlabs/puppetlabs-stdlib | |
specs: | 63 | 63 | specs: | |
stdlib (3.0.0) | 64 | 64 | stdlib (3.0.0) | |
65 | 65 | |||
DEPENDENCIES | 66 | 66 | DEPENDENCIES | |
boxen (= 0.0.26) | 67 | 67 | boxen (= 0.0.27) | |
dnsmasq (= 0.0.1) | 68 | 68 | dnsmasq (= 0.0.1) | |
git (= 0.0.2.4) | 69 | 69 | git (= 0.0.2.4) | |
homebrew (= 0.0.9) | 70 | 70 | homebrew (= 0.0.14) |
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 | ||||
18 | environment => [ | |||
19 | "HOMEBREW_CACHE=${homebrew::cachedir}", | |||
20 | "HOME=/Users/${::luser}" | |||
21 | ] | |||
} | 17 | 22 | } | |
18 | 23 | |||
File { | 19 | 24 | File { | |
group => 'staff', | 20 | 25 | group => 'staff', | |
owner => $luser | 21 | 26 | owner => $luser | |
} | 22 | 27 | } | |
23 | 28 | |||
Package { | 24 | 29 | Package { | |
provider => homebrew, | 25 | 30 | provider => homebrew, | |
require => Class['homebrew'] | 26 | 31 | require => Class['homebrew'] | |
} | 27 | 32 | } | |
28 | 33 | |||
Repository { | 29 | 34 | Repository { | |
provider => git, | 30 | 35 | provider => git, | |
extra => [ | 31 | 36 | extra => [ | |
'--recurse-submodules' | 32 | 37 | '--recurse-submodules' | |
], | 33 | 38 | ], | |
require => Class['git'] | 34 | 39 | require => Class['git'] | |
} | 35 | 40 | } | |
36 | 41 | |||
Service { | 37 | 42 | Service { | |
provider => ghlaunchd | 38 | 43 | provider => ghlaunchd | |
} | 39 | 44 | } | |
40 | 45 | |||
node default { | 41 | 46 | node default { | |
# core modules, needed for most things | 42 | 47 | # core modules, needed for most things | |
include dnsmasq | 43 | 48 | include dnsmasq | |
include git | 44 | 49 | include git | |
include hub | 45 | 50 | include hub | |
include nginx | 46 | 51 | include nginx | |
include nvm | 47 | 52 | include nvm | |
include rbenv | 48 | 53 | include rbenv | |
49 | 54 | |||
# fail if FDE is not enabled | 50 | 55 | # fail if FDE is not enabled | |
if $::root_encrypted == false { | 51 | 56 | if $::root_encrypted == false { | |
fail('Please enable full disk encryption and try again') | 52 | 57 | fail('Please enable full disk encryption and try again') | |
} | 53 | 58 | } | |
54 | 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 | |
include ruby::1-9-3 | 63 | 68 | include ruby::1-9-3 | |
64 | 69 | |||
# common, useful packages | 65 | 70 | # common, useful packages | |
package { | 66 | 71 | package { | |
[ | 67 | 72 | [ |
vendor/cache/boxen-0.4.0.gem
No preview for this file type
vendor/cache/boxen-0.4.1.gem
No preview for this file type
vendor/cache/librarian-puppet-0.9.6.gem
No preview for this file type
vendor/cache/librarian-puppet-0.9.7.gem
No preview for this file type
vendor/puppet/cache/boxen-puppet-boxen-0.0.26.tar.gz
No preview for this file type
vendor/puppet/cache/boxen-puppet-boxen-0.0.27.tar.gz
No preview for this file type
vendor/puppet/cache/boxen-puppet-homebrew-0.0.14.tar.gz
No preview for this file type
vendor/puppet/cache/boxen-puppet-homebrew-0.0.9.tar.gz
No preview for this file type