With Puppet:
puppet module install rtyler-jenkins
puppet apply -v -e "include jenkins"
| 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 |
| urlencode() { | |
| # urlencode <string> | |
| old_lc_collate=$LC_COLLATE | |
| LC_COLLATE=C | |
| local length="${#1}" | |
| for (( i = 0; i < length; i++ )); do | |
| local c="${1:$i:1}" | |
| case $c in |
| require 'rubygems' | |
| require 'rbvmomi' | |
| require 'pp' | |
| require 'alchemist' | |
| hyper = 'thunder03' | |
| vim = RbVmomi::VIM.connect :host => hyper, :user => 'root', :password => 'secret', :insecure => true | |
| # | |
| # get current time |
| Quick gist on getting vsphere and vcenter and fog/vsphere going | |
| # Things to download | |
| - Download free evaluation version of window 2008 | |
| - Download free evaluation of esxi v5 | |
| - Download free evaluation of esxi vsphere (control center) iso | |
| # Install esxi in vmware fusion | |
| 1)Install esxi in vmware (select vmware/esx as host) | |
| create a user root/pipopopo |
| class Cassandra < FPM::Cookery::Recipe | |
| name "cassandra" | |
| version "1.0.0" | |
| platforms [:centos, :rhel] do | |
| depends "java-1.6.0-openjdk" | |
| pre_install "pre-inst.sh" | |
| end | |
| platforms :debian do |
| # | |
| # Eric Lindvall <eric@5stops.com> | |
| # | |
| # 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: | |
| # |
| # Inspired by http://tomb.io/posts/hubot-ci-and-deploying/ | |
| # Its probably tightly bound to the xmpp adapter, and incorrect | |
| # in loads of ways, but its a start. | |
| # POST a json document to /message containing 'room' (the JID of the room | |
| # you want to talk to) and 'message' (the message you want to send) | |
| http = require "http" | |
| Robot = require '../src/robot' |
| * | |
| !/.gitignore | |
| !/*.xml | |
| !/nextBuildNumber | |
| !/jobs | |
| !/jobs/* | |
| !/jobs/*/*.xml | |
| /jobs/*/disk-usage.xml | |
| /jobs/*/builds |
| #!/bin/sh | |
| # | |
| # http://jbrazile.blogspot.com.es/2012/01/scripted-vmdkova-images-wboxgrinder-and.html | |
| # | |
| NAME=$1 | |
| OS=$2 | |
| IMAGE= | |
| SZMB=384 | |
| INSTDIR=/tmp/ova-gen/boxes | |
| BUILDDIR=/tmp/ova-gen/builds |