updating github enterprise support for 2fa

This commit is contained in:
Morgan Delagrange 2013-10-09 15:23:57 -05:00
commit cf69886ac9
43 changed files with 65 additions and 59 deletions

View file

@ -1,6 +1,6 @@
source "https://rubygems.org"
gem "boxen", "~> 1.4"
gem "boxen", "~> 2.0.0"
gem "open4", "~> 1.3"
group :development do

View file

@ -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

View file

@ -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"

View file

@ -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)

View file

@ -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!

View file

@ -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 {

View file

@ -8,10 +8,14 @@ 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',
require => File[$my]

View file

@ -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
# Bundle install unless we're already up to date.
/usr/bin/bundle install --binstubs bin --path .bundle --quiet "$@"

View file

@ -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") \

View file

@ -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}"

Binary file not shown.

Binary file not shown.

BIN
vendor/cache/boxen-2.0.0.gem vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
vendor/cache/faraday-0.8.8.gem vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
vendor/cache/librarian-puppet-0.9.10.gem vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
vendor/cache/octokit-2.0.0.gem vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
vendor/cache/puppet-3.2.4.gem vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
vendor/cache/rgen-0.6.6.gem vendored Normal file

Binary file not shown.

BIN
vendor/cache/sawyer-0.3.0.gem vendored Normal file

Binary file not shown.

BIN
vendor/cache/uri_template-0.5.3.gem vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.