diff --git a/Gemfile b/Gemfile index 213c967..9a3e0ed 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,6 @@ source "https://rubygems.org" -gem "boxen", "~> 1.4" +gem "boxen", "~> 2.0.0" gem "open4", "~> 1.3" group :development do diff --git a/Gemfile.lock b/Gemfile.lock index 22d75de..74ac587 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,59 +1,52 @@ GEM remote: https://rubygems.org/ specs: - addressable (2.3.5) ansi (1.4.3) aws-sdk (1.8.2) json (~> 1.4) nokogiri (>= 1.4.4) uuidtools (~> 2.1) - boxen (1.4.2) + boxen (2.0.0) ansi (~> 1.4) hiera (~> 1.0) highline (~> 1.6) json_pure (>= 1.7.7, < 2.0) librarian-puppet (~> 0.9.9) - octokit (~> 1.15) + octokit (~> 2.0.0) puppet (~> 3.0) builder (3.1.4) facter (1.7.2) - faraday (0.8.7) - multipart-post (~> 1.1) - faraday_middleware (0.9.0) - faraday (>= 0.7.4, < 0.9) - hashie (2.0.5) + faraday (0.8.8) + multipart-post (~> 1.2.0) hiera (1.2.1) json_pure highline (1.6.19) json (1.8.0) json_pure (1.8.0) - librarian-puppet (0.9.9) + librarian-puppet (0.9.10) json thor (~> 0.15) - multi_json (1.7.7) multipart-post (1.2.0) net-ssh (2.6.5) - netrc (0.7.7) nokogiri (1.5.6) - octokit (1.25.0) - addressable (~> 2.2) - faraday (~> 0.8) - faraday_middleware (~> 0.9) - hashie (~> 2.0) - multi_json (~> 1.3) - netrc (~> 0.7.7) + octokit (2.0.0) + sawyer (~> 0.3.0) open4 (1.3.0) - puppet (3.2.2) + puppet (3.2.4) facter (~> 1.6) hiera (~> 1.0) - rgen (~> 0.6) + rgen (~> 0.6.5) rbvmomi (1.6.0) builder nokogiri (>= 1.4.1) trollop - rgen (0.6.5) + rgen (0.6.6) + sawyer (0.3.0) + faraday (~> 0.8, < 0.10) + uri_template (~> 0.5.0) thor (0.18.1) trollop (2.0) + uri_template (0.5.3) uuidtools (2.1.3) PLATFORMS @@ -61,7 +54,7 @@ PLATFORMS DEPENDENCIES aws-sdk - boxen (~> 1.4) + boxen (~> 2.0.0) net-ssh open4 (~> 1.3) rbvmomi diff --git a/Puppetfile b/Puppetfile index 6284eb3..e1bdf63 100644 --- a/Puppetfile +++ b/Puppetfile @@ -13,7 +13,7 @@ end # Includes many of our custom types and providers, as well as global # config. Required. -github "boxen", "2.3.6" +github "boxen", "3.0.2" # Core modules for a basic development environment. You can replace # some/most of these if you want, but it's not recommended. @@ -21,15 +21,15 @@ github "boxen", "2.3.6" github "autoconf", "1.0.0" github "dnsmasq", "1.0.0" github "gcc", "2.0.1" -github "git", "1.2.4" -github "homebrew", "1.2.0" -github "hub", "1.0.0" -github "inifile", "0.9.0", :repo => "cprice404/puppetlabs-inifile" +github "git", "1.2.5" +github "homebrew", "1.4.1" +github "hub", "1.0.3" +github "inifile", "1.0.0", :repo => "puppetlabs/puppetlabs-inifile" github "nginx", "1.4.2" -github "nodejs", "3.2.7" +github "nodejs", "3.2.9" github "openssl", "1.0.0" github "repository", "2.2.0" -github "ruby", "6.1.1" +github "ruby", "6.3.4" github "stdlib", "4.1.0", :repo => "puppetlabs/puppetlabs-stdlib" github "sudo", "1.0.0" github "xquartz", "1.1.0" diff --git a/Puppetfile.lock b/Puppetfile.lock index 276177e..991470f 100644 --- a/Puppetfile.lock +++ b/Puppetfile.lock @@ -6,7 +6,7 @@ GITHUBTARBALL GITHUBTARBALL remote: boxen/puppet-boxen specs: - boxen (2.3.6) + boxen (3.0.2) GITHUBTARBALL remote: boxen/puppet-dnsmasq @@ -21,17 +21,17 @@ GITHUBTARBALL GITHUBTARBALL remote: boxen/puppet-git specs: - git (1.2.4) + git (1.2.5) GITHUBTARBALL remote: boxen/puppet-homebrew specs: - homebrew (1.2.0) + homebrew (1.4.1) GITHUBTARBALL remote: boxen/puppet-hub specs: - hub (1.0.0) + hub (1.0.3) GITHUBTARBALL remote: boxen/puppet-nginx @@ -41,7 +41,7 @@ GITHUBTARBALL GITHUBTARBALL remote: boxen/puppet-nodejs specs: - nodejs (3.2.7) + nodejs (3.2.9) GITHUBTARBALL remote: boxen/puppet-openssl @@ -56,7 +56,7 @@ GITHUBTARBALL GITHUBTARBALL remote: boxen/puppet-ruby specs: - ruby (6.1.1) + ruby (6.3.4) GITHUBTARBALL remote: boxen/puppet-sudo @@ -69,9 +69,9 @@ GITHUBTARBALL xquartz (1.1.0) GITHUBTARBALL - remote: cprice404/puppetlabs-inifile + remote: puppetlabs/puppetlabs-inifile specs: - inifile (0.9.0) + inifile (1.0.0) GITHUBTARBALL remote: puppetlabs/puppetlabs-stdlib @@ -80,18 +80,18 @@ GITHUBTARBALL DEPENDENCIES autoconf (= 1.0.0) - boxen (= 2.3.6) + boxen (= 3.0.2) dnsmasq (= 1.0.0) gcc (= 2.0.1) - git (= 1.2.4) - homebrew (= 1.2.0) - hub (= 1.0.0) - inifile (= 0.9.0) + git (= 1.2.5) + homebrew (= 1.4.1) + hub (= 1.0.3) + inifile (= 1.0.0) nginx (= 1.4.2) - nodejs (= 3.2.7) + nodejs (= 3.2.9) openssl (= 1.0.0) repository (= 2.2.0) - ruby (= 6.1.1) + ruby (= 6.3.4) stdlib (= 4.1.0) sudo (= 1.0.0) xquartz (= 1.1.0) diff --git a/README.md b/README.md index 43de271..d1956b0 100644 --- a/README.md +++ b/README.md @@ -261,8 +261,8 @@ It'll just be listed under the boxen org so folks can find it more easily. ## Integrating with Github Enterprise If you're using a Github Enterprise instance rather than github.com, -you will need to set the "BOXEN_GITHUB_ENTERPRISE_URL" and -"BOXEN_REPO_URL_TEMPLATE" variables in your +you will need to set the `BOXEN_GITHUB_ENTERPRISE_URL` and +`BOXEN_REPO_URL_TEMPLATE` variables in your [Boxen config](config/boxen.rb). ## Halp! diff --git a/manifests/site.pp b/manifests/site.pp index 20b79ea..411b7af 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -5,7 +5,7 @@ require gcc Exec { group => 'staff', logoutput => on_failure, - user => $luser, + user => $boxen_user, path => [ "${boxen::config::home}/rbenv/shims", @@ -20,13 +20,13 @@ Exec { environment => [ "HOMEBREW_CACHE=${homebrew::config::cachedir}", - "HOME=/Users/${::luser}" + "HOME=/Users/${::boxen_user}" ] } File { group => 'staff', - owner => $luser + owner => $boxen_user } Package { diff --git a/modules/people/README.md b/modules/people/README.md index 4afcedf..16f06be 100644 --- a/modules/people/README.md +++ b/modules/people/README.md @@ -8,9 +8,13 @@ class people::jbarnette { include emacs # requires emacs module in Puppetfile include sparrow # requires sparrow module in Puppetfile - $home = "/Users/${::luser}" + $home = "/Users/${::boxen_user}" $my = "${home}/my" $dotfiles = "${my}/dotfiles" + + file { $my: + ensure => directory + } repository { $dotfiles: source => 'jbarnette/dotfiles', diff --git a/script/bootstrap b/script/bootstrap index 284b273..e050227 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -15,7 +15,13 @@ set -e rm -rf .bundle/config rm -rf .librarian/puppet/config -# Bundle install unless we're already up to date. +# Put xcrun shim on PATH if on MoLo +set +e +OSX_VERSION_CHECK=`sw_vers | grep ProductVersion | cut -f 2 -d ':' | egrep '10\.8'` +if [ $? -eq 0 ]; then + export PATH=$(pwd)/vendor/shims:$PATH +fi +set -e -export PATH=$(pwd)/vendor/shims:$PATH +# Bundle install unless we're already up to date. /usr/bin/bundle install --binstubs bin --path .bundle --quiet "$@" diff --git a/script/boxen b/script/boxen index e856a7a..479dd0a 100755 --- a/script/boxen +++ b/script/boxen @@ -25,8 +25,9 @@ Dir.chdir Pathname.new(__FILE__).realpath + "../.." # Auto-update code. This is done as early as possible so that changes # to boxen support code or dependencies can be grabbed. - -unless ENV["BOXEN_NO_PULL"] || ARGV.include?("--no-pull") +NO_PULL_ARGS = %w[--no-pull -h -? --help] + [/-service/] +unless ENV["BOXEN_NO_PULL"] || + ARGV.any? { |arg| NO_PULL_ARGS.any? { |no| arg.match(no) } } quietly = "> /dev/null 2>&1" if system("which git > /dev/null") && File.directory?(".git") \ diff --git a/script/boxen-git-credential b/script/boxen-git-credential index 2382c7f..8ce8d80 100755 --- a/script/boxen-git-credential +++ b/script/boxen-git-credential @@ -25,9 +25,14 @@ require "boxen/config" config = Boxen::Config.load input = $stdin.read attrs = Hash[input.split($/).map { |l| l.split("=") }] +# find GitHub or GitHub Enterprise host ghhost = URI(config.ghurl).host -if command != "get" || attrs["host"] != ghhost +host_exp = Regexp.new "(^|\.)" + Regexp.escape(ghhost) +if command == "get" && host_exp.match(attrs["host"]) + puts "username=#{config.token}" + puts "password=x-oauth-basic" +else require "open4" fallback = ENV["BOXEN_GIT_CREDENTIAL_FALLBACK"] @@ -42,6 +47,3 @@ if command != "get" || attrs["host"] != ghhost exit status.exitstatus end - -puts "username=#{config.login}" -puts "password=#{config.password}" diff --git a/vendor/cache/addressable-2.3.5.gem b/vendor/cache/addressable-2.3.5.gem deleted file mode 100644 index 3e239f3..0000000 Binary files a/vendor/cache/addressable-2.3.5.gem and /dev/null differ diff --git a/vendor/cache/boxen-1.4.2.gem b/vendor/cache/boxen-1.4.2.gem deleted file mode 100644 index dd5b4fb..0000000 Binary files a/vendor/cache/boxen-1.4.2.gem and /dev/null differ diff --git a/vendor/cache/boxen-2.0.0.gem b/vendor/cache/boxen-2.0.0.gem new file mode 100644 index 0000000..5cb9b0d Binary files /dev/null and b/vendor/cache/boxen-2.0.0.gem differ diff --git a/vendor/cache/faraday-0.8.7.gem b/vendor/cache/faraday-0.8.7.gem deleted file mode 100644 index 9b10731..0000000 Binary files a/vendor/cache/faraday-0.8.7.gem and /dev/null differ diff --git a/vendor/cache/faraday-0.8.8.gem b/vendor/cache/faraday-0.8.8.gem new file mode 100644 index 0000000..18e2099 Binary files /dev/null and b/vendor/cache/faraday-0.8.8.gem differ diff --git a/vendor/cache/faraday_middleware-0.9.0.gem b/vendor/cache/faraday_middleware-0.9.0.gem deleted file mode 100644 index e911cb3..0000000 Binary files a/vendor/cache/faraday_middleware-0.9.0.gem and /dev/null differ diff --git a/vendor/cache/hashie-2.0.5.gem b/vendor/cache/hashie-2.0.5.gem deleted file mode 100644 index e58e9a5..0000000 Binary files a/vendor/cache/hashie-2.0.5.gem and /dev/null differ diff --git a/vendor/cache/librarian-puppet-0.9.10.gem b/vendor/cache/librarian-puppet-0.9.10.gem new file mode 100644 index 0000000..7fad480 Binary files /dev/null and b/vendor/cache/librarian-puppet-0.9.10.gem differ diff --git a/vendor/cache/librarian-puppet-0.9.9.gem b/vendor/cache/librarian-puppet-0.9.9.gem deleted file mode 100644 index a35b24c..0000000 Binary files a/vendor/cache/librarian-puppet-0.9.9.gem and /dev/null differ diff --git a/vendor/cache/multi_json-1.7.7.gem b/vendor/cache/multi_json-1.7.7.gem deleted file mode 100644 index ca25c16..0000000 Binary files a/vendor/cache/multi_json-1.7.7.gem and /dev/null differ diff --git a/vendor/cache/netrc-0.7.7.gem b/vendor/cache/netrc-0.7.7.gem deleted file mode 100644 index c99f913..0000000 Binary files a/vendor/cache/netrc-0.7.7.gem and /dev/null differ diff --git a/vendor/cache/octokit-1.25.0.gem b/vendor/cache/octokit-1.25.0.gem deleted file mode 100644 index d573350..0000000 Binary files a/vendor/cache/octokit-1.25.0.gem and /dev/null differ diff --git a/vendor/cache/octokit-2.0.0.gem b/vendor/cache/octokit-2.0.0.gem new file mode 100644 index 0000000..392ff07 Binary files /dev/null and b/vendor/cache/octokit-2.0.0.gem differ diff --git a/vendor/cache/puppet-3.2.2.gem b/vendor/cache/puppet-3.2.2.gem deleted file mode 100644 index 2db3701..0000000 Binary files a/vendor/cache/puppet-3.2.2.gem and /dev/null differ diff --git a/vendor/cache/puppet-3.2.4.gem b/vendor/cache/puppet-3.2.4.gem new file mode 100644 index 0000000..90c1e2b Binary files /dev/null and b/vendor/cache/puppet-3.2.4.gem differ diff --git a/vendor/cache/rgen-0.6.5.gem b/vendor/cache/rgen-0.6.5.gem deleted file mode 100644 index eecfec1..0000000 Binary files a/vendor/cache/rgen-0.6.5.gem and /dev/null differ diff --git a/vendor/cache/rgen-0.6.6.gem b/vendor/cache/rgen-0.6.6.gem new file mode 100644 index 0000000..0688104 Binary files /dev/null and b/vendor/cache/rgen-0.6.6.gem differ diff --git a/vendor/cache/sawyer-0.3.0.gem b/vendor/cache/sawyer-0.3.0.gem new file mode 100644 index 0000000..ab62e78 Binary files /dev/null and b/vendor/cache/sawyer-0.3.0.gem differ diff --git a/vendor/cache/uri_template-0.5.3.gem b/vendor/cache/uri_template-0.5.3.gem new file mode 100644 index 0000000..547d855 Binary files /dev/null and b/vendor/cache/uri_template-0.5.3.gem differ diff --git a/vendor/puppet/cache/boxen-puppet-boxen-2.3.6.tar.gz b/vendor/puppet/cache/boxen-puppet-boxen-2.3.6.tar.gz deleted file mode 100644 index 993f2f2..0000000 Binary files a/vendor/puppet/cache/boxen-puppet-boxen-2.3.6.tar.gz and /dev/null differ diff --git a/vendor/puppet/cache/boxen-puppet-boxen-3.0.2.tar.gz b/vendor/puppet/cache/boxen-puppet-boxen-3.0.2.tar.gz new file mode 100644 index 0000000..55e025f Binary files /dev/null and b/vendor/puppet/cache/boxen-puppet-boxen-3.0.2.tar.gz differ diff --git a/vendor/puppet/cache/boxen-puppet-git-1.2.4.tar.gz b/vendor/puppet/cache/boxen-puppet-git-1.2.4.tar.gz deleted file mode 100644 index 197fdc6..0000000 Binary files a/vendor/puppet/cache/boxen-puppet-git-1.2.4.tar.gz and /dev/null differ diff --git a/vendor/puppet/cache/boxen-puppet-git-1.2.5.tar.gz b/vendor/puppet/cache/boxen-puppet-git-1.2.5.tar.gz new file mode 100644 index 0000000..c5caab7 Binary files /dev/null and b/vendor/puppet/cache/boxen-puppet-git-1.2.5.tar.gz differ diff --git a/vendor/puppet/cache/boxen-puppet-homebrew-1.2.0.tar.gz b/vendor/puppet/cache/boxen-puppet-homebrew-1.2.0.tar.gz deleted file mode 100644 index 9ec3e58..0000000 Binary files a/vendor/puppet/cache/boxen-puppet-homebrew-1.2.0.tar.gz and /dev/null differ diff --git a/vendor/puppet/cache/boxen-puppet-homebrew-1.4.1.tar.gz b/vendor/puppet/cache/boxen-puppet-homebrew-1.4.1.tar.gz new file mode 100644 index 0000000..e361a59 Binary files /dev/null and b/vendor/puppet/cache/boxen-puppet-homebrew-1.4.1.tar.gz differ diff --git a/vendor/puppet/cache/boxen-puppet-hub-1.0.0.tar.gz b/vendor/puppet/cache/boxen-puppet-hub-1.0.0.tar.gz deleted file mode 100644 index 26cf708..0000000 Binary files a/vendor/puppet/cache/boxen-puppet-hub-1.0.0.tar.gz and /dev/null differ diff --git a/vendor/puppet/cache/boxen-puppet-hub-1.0.3.tar.gz b/vendor/puppet/cache/boxen-puppet-hub-1.0.3.tar.gz new file mode 100644 index 0000000..d7a9dd8 Binary files /dev/null and b/vendor/puppet/cache/boxen-puppet-hub-1.0.3.tar.gz differ diff --git a/vendor/puppet/cache/boxen-puppet-nodejs-3.2.7.tar.gz b/vendor/puppet/cache/boxen-puppet-nodejs-3.2.7.tar.gz deleted file mode 100644 index fc0cda9..0000000 Binary files a/vendor/puppet/cache/boxen-puppet-nodejs-3.2.7.tar.gz and /dev/null differ diff --git a/vendor/puppet/cache/boxen-puppet-nodejs-3.2.9.tar.gz b/vendor/puppet/cache/boxen-puppet-nodejs-3.2.9.tar.gz new file mode 100644 index 0000000..080d421 Binary files /dev/null and b/vendor/puppet/cache/boxen-puppet-nodejs-3.2.9.tar.gz differ diff --git a/vendor/puppet/cache/boxen-puppet-ruby-6.1.1.tar.gz b/vendor/puppet/cache/boxen-puppet-ruby-6.1.1.tar.gz deleted file mode 100644 index 65b2e9a..0000000 Binary files a/vendor/puppet/cache/boxen-puppet-ruby-6.1.1.tar.gz and /dev/null differ diff --git a/vendor/puppet/cache/boxen-puppet-ruby-6.3.4.tar.gz b/vendor/puppet/cache/boxen-puppet-ruby-6.3.4.tar.gz new file mode 100644 index 0000000..edc7836 Binary files /dev/null and b/vendor/puppet/cache/boxen-puppet-ruby-6.3.4.tar.gz differ diff --git a/vendor/puppet/cache/cprice404-puppetlabs-inifile-0.9.0.tar.gz b/vendor/puppet/cache/cprice404-puppetlabs-inifile-0.9.0.tar.gz deleted file mode 100644 index 7807bf4..0000000 Binary files a/vendor/puppet/cache/cprice404-puppetlabs-inifile-0.9.0.tar.gz and /dev/null differ diff --git a/vendor/puppet/cache/puppetlabs-puppetlabs-inifile-1.0.0.tar.gz b/vendor/puppet/cache/puppetlabs-puppetlabs-inifile-1.0.0.tar.gz new file mode 100644 index 0000000..b02576a Binary files /dev/null and b/vendor/puppet/cache/puppetlabs-puppetlabs-inifile-1.0.0.tar.gz differ