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
#! /usr/bin/env ruby | |
require 'rubygems' | |
require 'main' | |
require 'xmpp4r' | |
require File.dirname(__FILE__) + "/nagios_helpers" | |
class NoErrorsFoundInLogs < Exception; | |
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
#!/bin/bash | |
source /etc/profile | |
for ruby_package in ruby-ri-1.8.5 ruby-rdoc-1.8.5 ruby-irb-1.8.5 ruby-docs-1.8.5 ruby-tcltk-1.8.5 ruby-1.8.5 ruby-mode-1.8.5 rrdtool-ruby-1.2.27 ruby-devel-1.8.5.x86_64 ruby-devel-1.8.5.i386 ruby-libs-1.8.5.x86_64 ruby-libs-1.8.5.i386 | |
do | |
if rpm -q $ruby_package >/dev/null; then | |
echo $ruby_package | |
rpm -e $ruby_package; | |
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
#!/bin/bash | |
source /etc/profile | |
for ruby_package in ruby-ri-1.8.5 ruby-rdoc-1.8.5 ruby-irb-1.8.5 ruby-docs-1.8.5 ruby-tcltk-1.8.5 ruby-1.8.5 ruby-mode-1.8.5 rrdtool-ruby-1.2.27 ruby-devel-1.8.5.x86_64 ruby-devel-1.8.5.i386 ruby-libs-1.8.5.x86_64 ruby-libs-1.8.5.i386 | |
do | |
if rpm -q $ruby_package >/dev/null; then | |
echo $ruby_package | |
rpm -e $ruby_package; | |
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
require 'aws' | |
namespace :aws do | |
task :create_snapshot do | |
instances.each do |instance| | |
ec2 = ec2_connect | |
volume_ids = find_volume_ids_for_instance(instance) | |
if volume_ids | |
volume_ids.each do |volume_id| |
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
#!/bin/sh | |
yum install -y wget ntp | |
source "/var/spool/ec2/meta-data.sh" | |
echo "$EC2_LOCAL_IPV4 $HOST_NAME" >> /etc/hosts | |
hostname $HOST_NAME | |
echo "HOSTNAME=$HOST_NAME" >> /etc/sysconfig/network |
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 Task < Ohm::Model | |
include Comparable | |
attribute :url | |
attribute :eta | |
attribute :params | |
attribute :queue_name | |
index :url | |
index :eta |
NewerOlder