Update template with latest starter kit
This commit is contained in:
parent
fc70b4b0a7
commit
fdb27960fd
16 changed files with 95 additions and 18 deletions
|
@ -3,7 +3,7 @@ GEM
|
|||
specs:
|
||||
addressable (2.3.2)
|
||||
ansi (1.4.3)
|
||||
aws-sdk (1.6.9)
|
||||
aws-sdk (1.7.1)
|
||||
httparty (~> 0.7)
|
||||
json (~> 1.4)
|
||||
nokogiri (>= 1.4.4)
|
||||
|
|
|
@ -10,17 +10,16 @@
|
|||
# Core modules for a basic development environment.
|
||||
# You can replace some/most of those if you want, but it's not recommended.
|
||||
|
||||
mod "boxen", "0.0.28", :github_tarball => "boxen/puppet-boxen"
|
||||
mod "boxen", "0.1.8", :github_tarball => "boxen/puppet-boxen"
|
||||
mod "dnsmasq", "0.0.1", :github_tarball => "boxen/puppet-dnsmasq"
|
||||
mod "git", "0.0.3", :github_tarball => "boxen/puppet-git"
|
||||
mod "hub", "0.0.1", :github_tarball => "boxen/puppet-hub"
|
||||
mod "homebrew", "0.0.15", :github_tarball => "boxen/puppet-homebrew"
|
||||
mod "homebrew", "0.0.17", :github_tarball => "boxen/puppet-homebrew"
|
||||
mod "inifile", "0.0.1", :github_tarball => "boxen/puppet-inifile"
|
||||
mod "nginx", "0.0.2", :github_tarball => "boxen/puppet-nginx"
|
||||
mod "nodejs", "0.0.2", :github_tarball => "boxen/puppet-nodejs"
|
||||
mod "nvm", "0.0.5", :github_tarball => "boxen/puppet-nvm"
|
||||
mod "rbenv", "0.1.0", :github_tarball => "boxen/puppet-rbenv"
|
||||
mod "ruby", "0.2.0", :github_tarball => "boxen/puppet-ruby"
|
||||
mod "ruby", "0.4.0", :github_tarball => "boxen/puppet-ruby"
|
||||
mod "stdlib", "3.0.0", :github_tarball => "puppetlabs/puppetlabs-stdlib"
|
||||
mod "sudo", "0.0.1", :github_tarball => "boxen/puppet-sudo"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
GITHUBTARBALL
|
||||
remote: boxen/puppet-boxen
|
||||
specs:
|
||||
boxen (0.0.28)
|
||||
boxen (0.1.8)
|
||||
|
||||
GITHUBTARBALL
|
||||
remote: boxen/puppet-dnsmasq
|
||||
|
@ -16,7 +16,7 @@ GITHUBTARBALL
|
|||
GITHUBTARBALL
|
||||
remote: boxen/puppet-homebrew
|
||||
specs:
|
||||
homebrew (0.0.15)
|
||||
homebrew (0.0.17)
|
||||
|
||||
GITHUBTARBALL
|
||||
remote: boxen/puppet-hub
|
||||
|
@ -43,15 +43,10 @@ GITHUBTARBALL
|
|||
specs:
|
||||
nvm (0.0.5)
|
||||
|
||||
GITHUBTARBALL
|
||||
remote: boxen/puppet-rbenv
|
||||
specs:
|
||||
rbenv (0.1.0)
|
||||
|
||||
GITHUBTARBALL
|
||||
remote: boxen/puppet-ruby
|
||||
specs:
|
||||
ruby (0.2.0)
|
||||
ruby (0.4.0)
|
||||
|
||||
GITHUBTARBALL
|
||||
remote: boxen/puppet-sudo
|
||||
|
@ -64,17 +59,16 @@ GITHUBTARBALL
|
|||
stdlib (3.0.0)
|
||||
|
||||
DEPENDENCIES
|
||||
boxen (= 0.0.28)
|
||||
boxen (= 0.1.8)
|
||||
dnsmasq (= 0.0.1)
|
||||
git (= 0.0.3)
|
||||
homebrew (= 0.0.15)
|
||||
homebrew (= 0.0.17)
|
||||
hub (= 0.0.1)
|
||||
inifile (= 0.0.1)
|
||||
nginx (= 0.0.2)
|
||||
nodejs (= 0.0.2)
|
||||
nvm (= 0.0.5)
|
||||
rbenv (= 0.1.0)
|
||||
ruby (= 0.2.0)
|
||||
ruby (= 0.4.0)
|
||||
stdlib (= 3.0.0)
|
||||
sudo (= 0.0.1)
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ node default {
|
|||
include hub
|
||||
include nginx
|
||||
include nvm
|
||||
include rbenv
|
||||
include ruby
|
||||
|
||||
# fail if FDE is not enabled
|
||||
if $::root_encrypted == false {
|
||||
|
|
|
@ -32,6 +32,9 @@ unless ENV["BOXEN_NO_PULL"] || ARGV.include?("--no-pull")
|
|||
master = `git symbolic-ref HEAD`.chomp == "refs/heads/master"
|
||||
no_new_commits = system('git diff --exit-code --quiet origin/master master')
|
||||
|
||||
warn "Cannot auto-update due to unclean tree!" unless clean
|
||||
warn "Cannot auto-update due to unpushed commits on master!" unless no_new_commits
|
||||
|
||||
if clean && master && no_new_commits
|
||||
quietly = "> /dev/null 2>&1"
|
||||
fetch = "(git fetch origin #{quietly})"
|
||||
|
|
6
script/boxen-bootstrap
Executable file
6
script/boxen-bootstrap
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
# Make sure a project's deps are up-to-date.
|
||||
|
||||
if File.executable? "script/bootstrap"
|
||||
exec "script/bootstrap", *ARGV
|
||||
end
|
24
script/boxen-my-config
Executable file
24
script/boxen-my-config
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env ruby
|
||||
# Show the path to your manifest in Boxen, creating if necessary.
|
||||
|
||||
user = ENV["GH_LOGIN"]
|
||||
|
||||
unless user
|
||||
abort "GH_LOGIN is not defined. Please re-run Boxen."
|
||||
end
|
||||
|
||||
editor = ENV["VISUAL"] || ENV["EDITOR"]
|
||||
home = ENV["BOXEN_HOME"] + "/repo"
|
||||
user = user.downcase
|
||||
path = "#{home}/modules/people/manifests/#{user}.pp"
|
||||
|
||||
unless File.exist? path
|
||||
File.open path, "wb" do |f|
|
||||
f.puts "class people::#{user} {"
|
||||
f.puts "}"
|
||||
end
|
||||
end
|
||||
|
||||
exec(editor, path) if editor && system("tty -s")
|
||||
|
||||
puts path
|
51
script/nuke
Executable file
51
script/nuke
Executable file
|
@ -0,0 +1,51 @@
|
|||
#!/usr/bin/ruby
|
||||
|
||||
require "optparse"
|
||||
|
||||
unless ENV["USER"] == "root"
|
||||
exec "sudo", $0, *ARGV
|
||||
end
|
||||
|
||||
all = false
|
||||
force = false
|
||||
opt = false
|
||||
services = false
|
||||
|
||||
OptionParser.new do |o|
|
||||
o.banner = "Remove most traces of Boxen from your machine."
|
||||
|
||||
o.on("--all", "Remove everything possible.") { all = true }
|
||||
o.on("--force", "Actually do it.") { force = true }
|
||||
o.on("--help", "Show this help.") { abort o.to_s }
|
||||
o.on("--opt", "Remove /opt/boxen.") { opt = true }
|
||||
o.on("--services", "Remove and unload services.") { services = true }
|
||||
|
||||
o.parse!
|
||||
|
||||
abort o.to_s unless all || opt || services
|
||||
end
|
||||
|
||||
unless force
|
||||
warn "** I won't actually do anything unless you pass --force."
|
||||
end
|
||||
|
||||
if all || services
|
||||
boxen_services = []
|
||||
boxen_services << Dir["/Library/Launch*/com.boxen.*.plist"]
|
||||
|
||||
boxen_services.flatten.each do |plist|
|
||||
warn "-> Removing #{plist}."
|
||||
|
||||
if force
|
||||
system "launchctl", "unload", "-w", plist
|
||||
system "rm", "-f", plist
|
||||
end
|
||||
end
|
||||
|
||||
system "rm", "-f", "/etc/resolver/dev"
|
||||
end
|
||||
|
||||
if all || opt
|
||||
warn "-> Removing /opt/boxen."
|
||||
system "rm", "-rf", "/opt/boxen" if force
|
||||
end
|
BIN
vendor/cache/aws-sdk-1.6.9.gem
vendored
BIN
vendor/cache/aws-sdk-1.6.9.gem
vendored
Binary file not shown.
BIN
vendor/cache/aws-sdk-1.7.1.gem
vendored
Normal file
BIN
vendor/cache/aws-sdk-1.7.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-boxen-0.0.28.tar.gz
vendored
BIN
vendor/puppet/cache/boxen-puppet-boxen-0.0.28.tar.gz
vendored
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-boxen-0.1.8.tar.gz
vendored
Normal file
BIN
vendor/puppet/cache/boxen-puppet-boxen-0.1.8.tar.gz
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-homebrew-0.0.17.tar.gz
vendored
Normal file
BIN
vendor/puppet/cache/boxen-puppet-homebrew-0.0.17.tar.gz
vendored
Normal file
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-ruby-0.2.0.tar.gz
vendored
BIN
vendor/puppet/cache/boxen-puppet-ruby-0.2.0.tar.gz
vendored
Binary file not shown.
BIN
vendor/puppet/cache/boxen-puppet-ruby-0.4.0.tar.gz
vendored
Normal file
BIN
vendor/puppet/cache/boxen-puppet-ruby-0.4.0.tar.gz
vendored
Normal file
Binary file not shown.
Loading…
Reference in a new issue