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
vagrant@maverick:~/rvm-packaging$ cat package-ruby.sh | |
#!/bin/bash | |
wantruby=$1 | |
if [ -z "$wantruby" ] ; then | |
echo "Usage: $0 <ruby>" | |
echo "Example: $0 jruby" | |
exit 1 | |
fi |
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
rm node-v0.4.5.tar.gz | |
rm -rf node-v0.4.5 | |
apt-get -y install wget | |
wget http://nodejs.org/dist/node-v0.4.5.tar.gz | |
tar -xzvf node-v0.4.5.tar.gz | |
cd node-v0.4.5 | |
./configure --prefix=/usr | |
rm -rf /tmp/node-v0.4.5.$$ | |
mkdir /tmp/node-v0.4.5.$$ | |
make install DESTDIR=/tmp/node-v0.4.5.$$ |
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
#run as administrator | |
#Create the certificate | |
http://www.jacco2.dds.nl/networking/certutil.html | |
[NewRequest] | |
Subject="CN=foo.example.com,C=GB" | |
KeyLength=2048 | |
MachineKeySet=TRUE |
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=2.2.5 | |
apt-get -y install wget | |
rm -rf redis-$VERSION | |
wget http://redis.googlecode.com/files/redis-2.2.5.tar.gz -O redis-$VERSION.tar.gz | |
tar -xzvf redis-$VERSION.tar.gz | |
cd redis-$VERSION | |
./configure --prefix=/usr | |
make | |
rm -rf /tmp/redis-$VERSION.$$ | |
mkdir /tmp/redis-$VERSION.$$ |
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
require 'vagrant' | |
env=Vagrant::Environment.new | |
env.vms[:admin].vm.name | |
505 VBoxManage snapshot villa-vagrant_1303902657 take sandbox | |
512 VBoxManage controlvm villa-vagrant_1303902657 poweroff | |
515 VBoxManage startvm villa-vagrant_1303902657 |
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
Veewee::Session.declare({ | |
:cpu_count => '1', :memory_size=> '768', | |
#Disk size needs to be 12Gig + | |
:disk_size => '15140', :disk_format => 'VDI', :hostiocache => 'off', :use_hw_virt_ext => 'on', | |
:os_type_id => 'OpenSolaris', | |
:iso_file => "sol-11-exp-201011-ai-x86.iso", | |
:iso_src => "", | |
:iso_md5 => "36527d4d49a645ef6f6d2677c8e0118c", | |
:iso_download_timeout => 1000, | |
:boot_wait => "10", :boot_cmd_sequence => [ |
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
# http://projects.puppetlabs.com/projects/1/wiki/Puppet_Solaris | |
# Add the opencsw package site | |
export PATH=/usr/bin/:/usr/sbin:$PATH | |
yes|/usr/sbin/pkgadd -d http://mirror.opencsw.org/opencsw/pkgutil-`uname -p`.pkg all | |
/opt/csw/bin/pkgutil -U | |
# We need some header stuff and so on to get gcc going |
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
falcon-pdb:veewee patrick$ vagrant basebox build mysolaris --force | |
Verifying the isofile sol-11-exp-201011-ai-x86.iso is ok. | |
Forcing build by destroying mysolaris machine | |
VBoxManage unregistervm 'mysolaris' --delete | |
Deleting vm mysolaris | |
Creating vm mysolaris : 768M - 1 CPU - OpenSolaris | |
Creating new harddrive of size 15140 | |
VBoxManage createhd --filename '/Users/patrick/VirtualBox VMs/mysolaris/mysolaris.vdi' --size '15140' --format vdi > /dev/null | |
Attaching disk: /Users/patrick/VirtualBox VMs/mysolaris/mysolaris.vdi |
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
>> aws_provider=Fog::Compute.new({ :region => "eu-west-1", :provider => "AWS"}) | |
-> instance (running) = i-c1ac2bb7 | |
>> ami=aws_provider.create_image("i-c1ac2bb7","name","description") | |
If not yet finished you might see | |
/Users/patrick/.rvm/gems/ruby-1.8.7-p330@mccloud/gems/excon-0.6.2/lib/excon/connection.rb:178:in `request': | |
InvalidAMIID.Unavailable => AMI 'ami-796d5b0d' is pending, and cannot be run (Fog::Service::Error) |
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
# -*- encoding: utf-8 -*- | |
Gem::Specification.new do |s| | |
s.name = "mcollective-client" | |
s.version = "1.0.2" | |
s.platform = Gem::Platform::RUBY | |
s.authors = ["RI Pienaar"] | |
s.email = ["ripienaar@puppetlabs.com"] | |
s.homepage = "https://github.com/puppetlabs/marionette-collective" | |
s.summary = %q{Mcollective client} | |
s.description = %q{Interact with mcollective} |