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
package 'iptables' do | |
notifies :create, 'ruby_block[try_firewall_again]', :immediately | |
end | |
ruby_block 'try_firewall_again' do | |
block do | |
node.load_attribute_by_short_filename('default', 'firewall') | |
end | |
action :nothing | |
end |
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
kurt@boron:~/ops/kvmbuilder/trunk$ sudo ./kvmbuilder.sh -d -o -c /home/kurt/iodine.conf | |
Degugging is on! | |
Removing partitions from /dev/mapper/HW_RAID-iodine | |
Erasing Partition Map on LV /dev/mapper/HW_RAID-iodine | |
Removing the Logical Volume /dev/mapper/HW_RAID-iodine | |
Logical volume "iodine" successfully removed | |
Calling lvcreate -niodine -L4096 HW_RAID | |
Logical volume "iodine" created | |
Created LV iodine on HW_RAID of size 4096 | |
2011-03-03 18:16:05,898 DEBUG : ['dpkg', '--print-architecture'] |
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
kyoder@green 08 Nov 18:03:51 /tmp | |
$ mkdir git_repo_source | |
kyoder@green 08 Nov 18:03:56 /tmp | |
$ cd git_repo_source/ | |
kyoder@green 08 Nov 18:03:59 /tmp/git_repo_source | |
$ git init . | |
Initialized empty Git repository in /private/tmp/git_repo_source/.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
Process: Python [66419] | |
Path: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python | |
Identifier: org.python.python | |
Version: 2.7.2 (2.7.2) | |
Code Type: X86 (Native) | |
Parent Process: bash [5339] | |
Date/Time: 2012-01-07 09:18:22.658 -0500 | |
OS Version: Mac OS X 10.6.8 (10K549) | |
Report Version: 6 |
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 Chef | |
class Recipe | |
def lulz() | |
a_bare_var = nil | |
node[:a_node_attribute] = nil | |
ruby_block "doing_stuff" do | |
block do | |
a_bare_var = 'rotfl' | |
Chef::Log.info("inside, a_bare_var: #{a_bare_var.inspect}") |
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
$ knife ssh -x me -C 10 -G at.some.host '(lsb_id:Ubuntu) AND (fqdn:[a TO b])' 'sudo apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade' | |
WARNING: Failed to connect to -- IOError: closed stream | |
WARNING: Failed to connect to -- Net::SSH::Disconnect: connection closed by remote host |
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
$ knife search node 'fqdn:["" TO *]' -a hostname | |
ERROR: knife search failed: invalid search query: 'fqdn:["" TO *]' |
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
testing rabbitmq/recipes/default.rb: | |
33 log 'trying with cache_rebuild' do | |
34 level :info | |
35 end | |
36 apt_repository "rabbitmq" do | |
37 uri "http://www.rabbitmq.com/debian/" | |
38 distribution "testing" | |
39 components ["main"] | |
40 key "http://www.rabbitmq.com/rabbitmq-signing-key-public.asc" | |
41 not_if { node['rabbitmq']['use_distro_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
DAEMON_OPTS="-Xmx1024m -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:MaxPermSize=64M -XX:MaxPermSize=128M -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled" |
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
{ | |
"system" => %w/ | |
cpu-metrics | |
cpu-percentage-metrics | |
disk-capacity-metrics | |
disk-capacity-metrics | |
disk-metrics | |
interface-metrics | |
iostat-extended-metrics | |
iostat-metrics |