This file contains hidden or 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
virt-install --accelerate -n guppy -r 512 --vcpus=1 \ | |
--disk pool=lvm,bus=virtio,size=35 --vnc --os-type linux --os-variant=rhel5 \ | |
--network=network:default -l http://192.168.122.1/os/CentOS/5.5/os/x86_64/ -x "ks=http://192.168.122.1/ks/ks.cfg" |
This file contains hidden or 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
%post | |
chvt 3 | |
echo "executing post install" | |
# | |
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm | |
yum install -y puppet | |
cat >/etc/sysconfig/puppet <<EOF | |
PUPPET_EXTRA_OPTS="--environment test" | |
EOF |
This file contains hidden or 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
# install a ubuntu VM booting direct from mirror. no media needed. | |
virt-install --accelerate -n ubuntu-dev01 -r 1024 --vcpus=1 --disk pool=lvm,bus=virtio,size=10 --vnc --os-type linux --os-variant=generic26 --network=bridge:br0 -l http://ubuntu.intergenia.de/ubuntu/dists/lucid/main/installer-amd64/ | |
# install a CentOS VM booting direct from mirror. no media needed. plus kickstart | |
virt-install --accelerate -n centos-dev01 -r 1024 --vcpus=1 --disk pool=lvm,bus=virtio,size=10 --vnc --os-type linux --os-variant=rhel5 --network=bridge:br0 -l http://192.168.1.250/os/centos/5.5/os/x86_64/ -x "ks=http://192.168.1.250/ks/centos-dev01.ks" |
This file contains hidden or 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
apt-get update | |
apt-get install build-essential subversion autotools-dev automake1.9 libtool autoconf libncurses-dev xsltproc quilt debhelper | |
cd /tmp | |
svn co http://www.varnish-cache.org/svn/tags/varnish-2.0.6 | |
cd varnish-2.0.6/varnish-cache | |
dpkg-buildpackage | |
cd .. | |
dpkg -i libvarnish1_2.0.6-2_amd64.deb varnish_2.0.6-2_amd64.deb |
This file contains hidden or 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
add the following to `sshd_config` | |
Subsystem sftp internal-sftp | |
Match User foo | |
ChrootDirectory /home/foo | |
AllowTCPForwarding no | |
X11Forwarding no | |
ForceCommand internal-sftp | |
This file contains hidden or 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
# Devops Challenge ! | |
## Teams are supplied | |
* a copy of [imdb.sql](http://www.webstepbook.com/supplements/databases/imdb.sql) | |
* 4 ec2 instances to use however they see fit (example - 1 x web, 1 x monitor/metrics/backups, 2 x db) | |
* set of cucumber tests describing the app they need to build | |
## Adjudicating panel get |
This file contains hidden or 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
# | |
# Eric Lindvall <[email protected]> | |
# | |
# Update the process name for the process you're running in. | |
# | |
# This will allow top, lsof, and killall to see the process as the | |
# name you specify. | |
# | |
# Just use: | |
# |
This file contains hidden or 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 Github | |
include HTTParty | |
base_uri 'https://api.github.com' | |
end | |
Github.post("/user/repos", :query => { | |
:access_token => @token | |
}, | |
:body => { | |
:name => name, |
This file contains hidden or 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
curl -XGET 'http://localhost:9200/graylog2/_search?pretty=true' -d ' | |
{ | |
"query" : { | |
"matchAll" : {} | |
} | |
}' |
This file contains hidden or 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 'xmlrpc/client' | |
# A useful helper for running Confluence XML-RPC from Ruby. Takes care of | |
# adding the token to each method call (so you can call server.getSpaces() | |
# instead of server.getSpaces(token)). Also takes care of re-logging in | |
# if your login times out. | |
# | |
# Usage: | |
# | |
# server = Confluence::Server.new :server => 'http://confluence02.lightningsoure.com' |
OlderNewer