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
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'typhoeus' | |
| 100000.times do |t| | |
| Thread.new do | |
| puts "requesting - #{t}" | |
| @req = Typhoeus::Request.new("http://#{ARGV[0]}:#{ARGV[1]}", | |
| :method => :post, |
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
| {:vb {:provider "virtualbox" | |
| :images {:ubuntu-10-10 {:description "Ubuntu 10.10 64bit" | |
| :uuid "ea8d17cd-d532-4ce4-82de-d201d773f9d1" | |
| :os-family :ubuntu | |
| :os-version "10.10" | |
| :os-type-id "Ubuntu" | |
| :os-64-bit true | |
| :sudo-password "superduper" | |
| :no-sudo false | |
| :username "user" |
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
| (ns letterleaf-provision.core | |
| (:use [clojure.tools.cli]) | |
| (:require [pallet.core :as core] | |
| [pallet.compute :as compute] | |
| [pallet.phase :as phase] | |
| [pallet.crate.java :as java] | |
| [pallet.crate.automated-admin-user :as automated-admin-user])) | |
| (defn service [provider] | |
| (compute/service provider)) |
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
| 09:52:56.252 [main] INFO pallet.compute.vmfest - No :default-bridged-interface defined. Will chose from these options: en1: AirPort | |
| 09:52:56.255 [main] INFO pallet.compute.vmfest - No Local Interface defined. Using vboxnet0 | |
| 09:52:56.271 [main] INFO pallet.compute.vmfest - Loaded images: (:ubuntu-10-10-64bit-server :ubuntu-10-10) | |
| 09:52:56.272 [main] INFO pallet.compute.vmfest - Using 'local' networking via interface 'vboxnet0' as defaults for new machines | |
| 09:52:56.331 [main] DEBUG pallet.compute.vmfest - loaded model :micro = {:cpu-count 1, :storage [{:devices [nil nil nil nil], :name "IDE Controller", :bus :ide}], :boot-mount-point ["IDE Controller" 0], :memory-size 512} | |
| 09:52:56.332 [main] DEBUG pallet.compute.vmfest - loaded model :small = {:cpu-count 1, :storage [{:devices [nil nil nil nil], :name "IDE Controller", :bus :ide}], :boot-mount-point ["IDE Controller" 0], :memory-size 1024} | |
| 09:52:56.332 [main] DEBUG pallet.compute.vmfest - loaded model :medium = {:cpu-count 2, :storage [{:devices [nil nil n |
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
| letterleaf-provision.core=> (change 1 :vb) | |
| 12:47:26.987 [Thread-2] INFO pallet.compute.vmfest - No :default-bridged-interface defined. Will chose from these options: en1: AirPort | |
| 12:47:26.987 [Thread-2] INFO pallet.compute.vmfest - No Local Interface defined. Using vboxnet0 | |
| 12:47:26.987 [Thread-2] INFO pallet.compute.vmfest - Loaded images: (:ubuntu-10-10-64bit-server :ubuntu-10-10) | |
| 12:47:26.987 [Thread-2] INFO pallet.compute.vmfest - Using 'local' networking via interface 'vboxnet0' as defaults for new machines | |
| 12:47:26.988 [Thread-2] DEBUG pallet.compute.vmfest - loaded model :micro = {:cpu-count 1, :storage [{:devices [nil nil nil nil], :name "IDE Controller", :bus :ide}], :boot-mount-point ["IDE Controller" 0], :memory-size 512} | |
| 12:47:26.988 [Thread-2] DEBUG pallet.compute.vmfest - loaded model :small = {:cpu-count 1, :storage [{:devices [nil nil nil nil], :name "IDE Controller", :bus :ide}], :boot-mount-point ["IDE Controller" 0], :memory-size 1024} | |
| 12:47:26.988 [Thread-2] DEBUG pallet.compute.vmfest |
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
| user@192.168.56.105's password: | |
| Linux ubuntu 2.6.35-22-server #35-Ubuntu SMP Sat Oct 16 22:02:33 UTC 2010 x86_64 GNU/Linux | |
| Ubuntu 10.10 | |
| Welcome to the Ubuntu Server! | |
| * Documentation: http://www.ubuntu.com/server/doc | |
| System information as of Sat Mar 31 10:59:28 PDT 2012 | |
| System load: 0.0 Processes: 71 |
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 'rubygems' | |
| require 'wirble' | |
| #require 'interactive_editor' | |
| Wirble.init | |
| Wirble.colorize | |
| if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER') | |
| require 'logger' | |
| RAILS_DEFAULT_LOGGER = Logger.new(STDOUT) | |
| end |
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
| remote-file tmp-dir/nginx-0.7.65.tar.gz... | |
| md5sum: tmp-dir/nginx-0.7.65.tar.gz: No such file or directory | |
| tmp-dir/nginx-0.7.65.tar.gz.new: No such file or directory | |
| mv: cannot stat `tmp-dir/nginx-0.7.65.tar.gz.new': No such file or directory | |
| mv: cannot stat `tmp-dir/nginx-0.7.65.tar.gz.new': No such file or directory |
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
| 09:25:54.391 [clojure-agent-send-off-pool-0] INFO pallet.execute - Output: 192.168.56.106 | |
| - retrieves files from the web | |
| i whiptail - Displays user-friendly dialog boxes from s | |
| i whois - an intelligent whois client | |
| i A x-ttcidfont-conf - TrueType and CID fonts configuration for X | |
| i A x11-common - X Window System (X.Org) infrastructure | |
| i A x11proto-core-dev - X11 core wire protocol and auxiliary heade | |
| i A x11proto-input-dev - X11 Input extension wire protocol | |
| i A x11proto-kb-dev - X11 XKB extension wire protocol | |
| i A xauth - X authentication utility |
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
| (def cassandra-conf "conf/cassandra/cassandra.yaml") | |
| (def cassandra-yaml-defaults | |
| {:cluster-name "My Cluster" | |
| :initial-token "0" | |
| :partitioner :random | |
| :data-file-directories ["/var/lib/cassandra/data"] | |
| :commit-log-dir "/var/lib/cassandra/commitlog" | |
| :saved-caches-dir "/var/lib/cassandra/saved_caches" | |
| :seeds ["127.0.0.1"] |