ChefConf 2014 in San Francisco
Wednesday, April 16, 2014 at 14:20 (Ballroom A in Future Chef track)
ChefConf 2014 in San Francisco
Wednesday, April 16, 2014 at 14:20 (Ballroom A in Future Chef track)
#!/usr/bin/env bash | |
set -e | |
banner() { echo "-----> $*"; } | |
warn() { echo ">>>>>> $*"; } | |
DOCKER="${DOCKER:-docker}" | |
REF=HEAD | |
while [[ $# -gt 0 ]] ; do |
executor
in the code is a CommandExecutor
which sets up and reuses a remote shell session across calls and recyles it before the maxiumum commands-per-shell limit is reached.vanilla
object is a regular WinRM::WinRMWebService
instance which sets up and tears down a shell for every CMD and Powershell script invocation.powershell -encodedCommand <ENCODED_SCRIPT>
over CMD.If you're using ChefDK and find you can't wait for the next release to come out (which will out be shortly), you might want to give the chefdk-update-app project a spin to update test-kitchen (follow the setup instructions in the README).
Upgrade test-kitchen with the following for Unix-based workstations:
sudo -E ./bin/chefdk-update-app.sh test-kitchen -r v1.4.0
#!/usr/bin/env ruby | |
require "rubygems" | |
require "net/ldap" | |
require "csv" | |
unless ARGV[0] && ARGV[1] | |
puts "Usage: #{__FILE__} <username> <password>" | |
abort | |
end |
#!/usr/bin/env bash | |
# ## Installing RVM as a User | |
# | |
# bash < <( curl -s https://rvm.beginrescueend.com/install/rvm ) | |
# bash < <( curl -L http://bit.ly/rvm_sugar ) | |
# [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" | |
# | |
# ## Installing RVM System Wide (become the root user) | |
# |
#!/bin/bash | |
# | |
# Mac OS X 10.6 Bootstrapping | |
# turn on ssh | |
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist | |
# run software update and reboot | |
sudo softwareupdate --install --all | |
sudo shutdown -r now |
#!/usr/bin/env bash | |
# ## Installing MacVim on Mac OS X 10.5/10.6 | |
# | |
# bash < <(curl -L http://gist.github.com/raw/576195/macvim_install.sh) | |
# | |
case $(sw_vers -productVersion) in | |
10.5.*) | |
url="http://github.com/downloads/b4winckler/macvim/MacVim-7_3-53-ppc-i386-OSX10_5.tbz" |
#!/usr/bin/env bash | |
# install: | |
# bash < <(curl -L http://gist.github.com/raw/629402/moonshine_bootstrap.sh) | |
# | |
printf "===> Bootstrapping moonshine user: ${user} ...\n" | |
user=rails |
First you need to ensure that VirtualBox is installed. Current vagrant release is not working with VirtualBox 4.x, so get a previous 3.2.x version (currently 3.2.10 which updates to 3.2.12) from http://www.virtualbox.org/wiki/Download_Old_Builds_3_2.
Next install the vagrant gem and download the Ubuntu 10.10 32-bit vagrant box I built up:
gem install vagrant
vagrant box add maverick32 http://dl.dropbox.com/u/2297268/maverick32.box