Skip to content

Instantly share code, notes, and snippets.

View cheeseplus's full-sized avatar
🎯
Focusing

Seth Thomas cheeseplus

🎯
Focusing
View GitHub Profile
when "binary"
package package_name do
source "/tmp/riak_pkg/#{package_file}"
action :install
options = case node[:platform]
when "debian","ubuntu"
"--forceconfnew"
end
provider value_for_platform(
[ "ubuntu", "debian" ] => {"default" => Chef::Provider::Package::Dpkg},
case node[:riak][:package][:type]
when "binary"
package package_name do
source "/tmp/riak_pkg/#{package_file}"
action :install
options = case node[:platform]
when "debian","ubuntu"
"--force-confnew"
end
provider value_for_platform(
enerated at Mon Jul 02 18:25:43 +0000 2012
TypeError: superclass mismatch for class Tuple
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/riak-eds-chef-cookbook/libraries/riak_template_helper.rb:21
/opt/ruby/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/run_context.rb:82:in `load'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/run_context.rb:82:in `load_libraries'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/run_context.rb:120:in `call'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/run_context.rb:120:in `foreach_cookbook_load_segment'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/run_context.rb:119:in `each'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/run_context.rb:119:in `foreach_cookbook_load_segment'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/run_context.rb:117:in `each'
[Tue, 21 Aug 2012 16:08:04 +0000] INFO: *** Chef 0.10.10 ***
[Tue, 21 Aug 2012 16:08:04 +0000] INFO: Setting the run_list to ["recipe[riak]"] from JSON
[Tue, 21 Aug 2012 16:08:04 +0000] INFO: Run List is [recipe[riak]]
[Tue, 21 Aug 2012 16:08:04 +0000] INFO: Run List expands to [riak]
[Tue, 21 Aug 2012 16:08:04 +0000] INFO: Starting Chef Run for precise64
[Tue, 21 Aug 2012 16:08:04 +0000] INFO: Running start handlers
[Tue, 21 Aug 2012 16:08:04 +0000] INFO: Start handlers complete.
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/riak/recipes/config.rb:21: warning: Object#type is deprecated; use Object#class
[Tue, 21 Aug 2012 16:08:04 +0000] INFO: Processing package[libssl0.9.8] action install (riak::default line 46)
[Tue, 21 Aug 2012 16:08:09 +0000] INFO: package[libssl0.9.8] installed version 0.9.8o-7ubuntu3.1
if node[:riak][:package][:type].eql?("binary")
service "riak" do
supports :start => true, :stop => true, :restart => true
action [ :enable ]
subscribes :restart, resources(:file => [ "#{node[:riak][:package][:config_dir]}/app.config",
"#{node[:riak][:package][:config_dir]}/vm.args" ])
end
@cheeseplus
cheeseplus / gist:3638808
Created September 5, 2012 15:49
Vagrant file
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64"
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64"
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
#config.vm.box_url = "http://files.vagrantup.com/precise32.box"
#
# Cookbook Name:: txsilc
# Recipe:: default
require 'fileutils'
# check if symlink exists
ruby_block "symlink-wordpress" do
block do
FileUtils.rm_rf "/var/www" if File.exists? "/var/www"
@cheeseplus
cheeseplus / gist:4185617
Created December 1, 2012 22:26
polycount - stung by php
I have pasted your old console log below. You were booted into an older kernel, so hopefully grabbing the latest by rebooting will prevent this from reoccurring.
icmp: 208.118.230.104: Source Route Failed
icmp: 208.118.230.104: Source Route Failed
icmp: 208.118.230.104: Source Route Failed
php-cgi[1489] general protection ip:6d06e7 sp:7fff9c9357e0 error:0 in php5-cgi[400000+78b000]
php-cgi[23219] general protection ip:6d06e7 sp:7fff2595a160 error:0 in php5-cgi[400000+78b000]
php-cgi[18920] general protection ip:6d06e7 sp:7fff983dc140 error:0 in php5-cgi[400000+78b000]
php-cgi[28322] general protection ip:6d06e7 sp:7fffe5f03b50 error:0 in php5-cgi[400000+78b000]
iftop uses obsolete (PF_INET,SOCK_PACKET)