First create a Vagrantfile:
vagrant init precise64
Then add the following to the new Vagrantfile:
config.vm.provision :shell, :inline => <<-EOT
First create a Vagrantfile:
vagrant init precise64
Then add the following to the new Vagrantfile:
config.vm.provision :shell, :inline => <<-EOT
[2013-11-18T02:52:53+00:00] INFO: Forking chef instance to converge...
[2013-11-18T02:52:53+00:00] INFO: *** Chef 11.8.0 ***
[2013-11-18T02:52:53+00:00] INFO: Chef-client pid: 2516
[2013-11-18T02:52:53+00:00] INFO: Setting the run_list to ["recipe[resolver]", "recipe[deploy-drupal::dependencies]", "recipe[deploy-drupal::apc]", "recipe[deploy-drupal::download_drupal]", "recipe[deploy-drupal::install]"] from JSON
[2013-11-18T02:52:53+00:00] INFO: Run List is [recipe[resolver], recipe[deploy-drupal::dependencies], recipe[deploy-drupal::apc], recipe[deploy-drupal::download_drupal], recipe[deploy-drupal::install]]
[2013-11-18T02:52:53+00:00] INFO: Run List expands to [resolver, deploy-drupal::dependencies, deploy-drupal::apc, deploy-drupal::download_drupal, deploy-drupal::install]
[2013-11-18T02:52:53+00:00] INFO: Starting Chef Run for chefsolo2.clusterfoundry.com
[2013-11-18T02:52:53+00:00] INFO: Running start handlers
[2013-11-18T02:52:53+00:00] INFO: Start handlers complete.
Go here to export playlists: http://groovebackup.com/ | |
Each playlist will look like this: | |
``` | |
"SongName","ArtistName","AlbumName" | |
"Oxford Comma","Vampire Weekend","Vampire Weekend" | |
"Le Vent Nous Portera","Noir Désir","Radio Bemba Sound System" | |
"Na neh na","Vaya Con Dios","Top 2000" | |
"Discordance","Paris Combo","Motifs" |
#!/usr/bin/ruby | |
require 'socket' | |
port = 2008 | |
puts "Starting up server. You can connect by running 'nc localhost #{port}'." | |
server = TCPServer.new(port) |
Downloaded Windows XP / IE8 image from http://www.modern.ie/en-us/virtualization-tools
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE8_XP/IE8.XP.For.MacVirtualBox.ova"
#!/bin/sh | |
set -e | |
# | |
# This script is meant for quick & easy install via: | |
# 'curl -sL https://get.docker.io/ | sh' | |
# or: | |
# 'wget -qO- https://get.docker.io/ | sh' | |
# | |
# | |
# Docker Maintainers: |
Signal.trap("INT") do | |
puts "Terminating..." | |
sleep 1 | |
exit 3 | |
end | |
(1..9).each do |i| | |
puts "Processing " + i.to_s | |
sleep 1 | |
end |
#! /bin/env ruby | |
=begin | |
Usage: ruby test-yaml-override.rb | |
Output: | |
--- | |
letters: | |
d: 4 | |
lettersOne: | |
a: 1 |
I have found that when running gem_package 'bundler'
from within a chef run started by gusteau, the gem is installed into the chef-omnnibus embedded environment instead of the system ruby environment. (Note that neither rbenv or rvm is involved).
Steps to reproduce are as follows.
First, create the directory gusteau_gem_path
containing .gusteau.yml
, Vagrantfile
, and site-cookbooks/test/recipes/default.rb
.
mkdir -p gusteau_gem_path/site-cookbooks/test/recipes
cd gusteau_gem_path
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/ | |
# generate server.xml with the following command: | |
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes | |
# run as follows: | |
# python simple-https-server.py | |
# then in your browser, visit: | |
# https://localhost:4443 | |
import BaseHTTPServer, SimpleHTTPServer | |
import ssl |