This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'veewee', :git => "[email protected]:jedi4ever/veewee.git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@compute:~# nova boot --image 81221706-5abd-4357-ad44-7c24d30caef5 --flavor 1 --key-name nova-key test --poll | |
+-------------------------------------+--------------------------------------+ | |
| Property | Value | | |
+-------------------------------------+--------------------------------------+ | |
| OS-DCF:diskConfig | MANUAL | | |
| OS-EXT-SRV-ATTR:host | None | | |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None | | |
| OS-EXT-SRV-ATTR:instance_name | instance-00000003 | | |
| OS-EXT-STS:power_state | 0 | | |
| OS-EXT-STS:task_state | scheduling | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shamim@ataxerxes:~ (ruby-1.9.3-p194)$ rvm gemset create foo | |
gemset created foo => /Users/ashamim/.rvm/gems/ruby-1.9.3-p194@foo | |
ashamim@ataxerxes:~ (ruby-1.9.3-p194)$ rvm gemset use foo | |
Using ruby-1.9.3-p194 with gemset foo | |
ashamim@ataxerxes:~ (ruby-1.9.3-p194@foo)$ gem list | |
*** LOCAL GEMS *** | |
bundler (1.3.5) | |
rake (0.8.7) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
recipe_path = ARGV[0] | |
if recipe_path.nil? | |
STDERR.puts "usage: chef-apply RECIPE_FILE" | |
exit 1 | |
end | |
recipe_path = File.expand_path(recipe_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script for placing sudoers.d files with syntax-checking | |
# Making a temporary file to contain the sudoers-changes to be pre-checked | |
TMP=$(mktemp -t vagrant_sudoers) | |
cat /etc/sudoers > $TMP | |
cat >> $TMP <<EOF | |
# Allow passwordless startup of Vagrant when using NFS. | |
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/su root -c echo '*' >> /etc/exports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fix_hosts() { sed -i -r "/^[^ \t]+[ \t]+(([^ \t]+[ \t]+)+$1([ \t]+[^ \t]+)*|([^ \t]+[ \t]+)*$2([ \t]+[^ \t]+)+)$/ s/^(.*)($1)(.*)$/\1\3/; /^[^ \t]+[ \t]+$ 1[ \t]*$/d" "$2"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class foo ( | |
$param1 = 'Hello World!' | |
) { | |
notice("${param1}") | |
} | |
class bar ( | |
$param1 = 'Hello World!' | |
) { | |
notice("${param1}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$version_real = $version ? { | |
undef => 'present', | |
default => $version, | |
} | |
package { 'foobarbaz': | |
ensure => $version_real, | |
require => [ | |
Package[$dependencies], | |
Package['sockjs-tornado'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There were warnings and/or errors while loading your Vagrantfile. | |
Your Vagrantfile was written for an earlier version of Vagrant, | |
and while Vagrant does the best it can to remain backwards | |
compatible, there are some cases where things have changed | |
significantly enough to warrant a message. These messages are | |
shown below. | |
Warnings: | |
* `config.vm.customize` calls are VirtualBox-specific. If you're | |
using any other provider, you'll have to find provider-specific configuration |