Skip to content

Instantly share code, notes, and snippets.

View webframp's full-sized avatar

Sean Escriva webframp

View GitHub Profile
I, [2012-04-24T23:11:46.256106 #5452] INFO -- : [validate] -- configuration valid -- running {"timestamp":"2012-04-24T23:11:46. %6N+0000","message":"[validate] -- configuration valid -- running","level
":"info"}
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/amqp-0.7.4/lib/amqp/client.rb:45:in `initialize': Could not connect to server 192.168.168.47:5671 (AMQP::Error)
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/amqp-0.7.4/lib/amqp/client.rb:109:in `call'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/amqp-0.7.4/lib/amqp/client.rb:109:in `unbind'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:942:in `call'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:942:in `run_deferred_callbacks'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:939:in `each'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/eventmachine-1.0.0.beta
template "#{node['apache']['dir']}/sites-available/nagios3.conf" do
source "apache2.conf.erb"
mode 0644
variables :public_domain => public_domain
if ::File.symlink?("#{node['apache']['dir']}/sites-enabled/nagios3.conf")
notifies :reload, "service[apache2]"
end
end
! first disable Keycap Picture insert mode
URxvt.iso14755: false
URxvt.iso14755_52: false
URxvt.background: black
URxvt.foreground: white
URxvt*font: xft:Inconsolata:pixelsize=16
!URxvt.font: xft:terminus:pixelsize=16
URxvt.perl-ext-common: default,url-select
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.urlLauncher: /usr/bin/conkeror
"languages": {
"ruby": {
"platform": "x86_64-linux",
"version": "1.9.3",
"release_date": "2011-10-30",
"target": "x86_64-pc-linux-gnu",
"target_cpu": "x86_64",
"target_vendor": "pc",
"target_os": "linux",
"host": "x86_64-pc-linux-gnu",
name "ubuntu_base"
description "base role for ubuntu servers"
run_list [
"recipe[apt]",
"recipe[sudo]",
"recipe[openssh]",
"recipe[openssh::firewall]",
"recipe[users::sysadmins]",
"recipe[zsh]",
apt_repository "rabbitmq" do
uri "http://www.rabbitmq.com/debian/"
distribution "testing"
components ["main"]
key "http://www.rabbitmq.com/rabbitmq-signing-key-public.asc"
action :add
notifies :run, resources(:execute => "apt-get-update"), :immediately
end
Chef::Log.info '** Patching deploy resource copy method to use rsync **'
class Chef::Provider::Deploy
def copy_cached_repo
FileUtils.mkdir_p(@new_resource.deploy_to + "/releases")
run_command(:command => "rsync -avC --exclude '.git*' #{::File.join(@new_resource.destination, ".")}/ #{release_path}")
Chef::Log.info "#{@new_resource} copied the cached checkout to #{release_path} using rsync"
release_created(release_path)
end
end
[Tue, 12 Jun 2012 21:23:08 +0000] DEBUG: NoMethodError: undefined method `[]' for nil:NilClass
/var/chef/cache/cookbooks/cloud/recipes/default.rb:43:in `block in from_file'
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/mixin/recipe_definition_dsl_core.rb:74:in `instance_eval'
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/mixin/recipe_definition_dsl_core.rb:74:in `method_missing'
/var/chef/cache/cookbooks/cloud/recipes/default.rb:40:in `from_file'
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/mixin/from_file.rb:30:in `instance_eval'
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/mixin/from_file.rb:30:in `from_file'
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/cookbook_version.rb:578:in `load_recipe'
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/mixin/language_include_recipe.rb:46:in `load_recipe'
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.10/lib/chef/mixin/lang
iptables -A INPUT -p tcp -s 184.106.28.0/24 -m hashlimit --hashlimit-above 20/day --hashlimit-name fubar -j DROP
user_keys = ""
search(:users, 'groups:sysadmin') do |u|
user_keys << u['ssh_keys']
end
file '/var/www/.ssh/authorized_keys' do
action :create
owner node[:nginx][:user]
mode 0400