Skip to content

Instantly share code, notes, and snippets.

View specialkevin's full-sized avatar

Kevin Harriss specialkevin

View GitHub Profile
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
@specialkevin
specialkevin / gist:3092427
Created July 11, 2012 19:05
VagrantFile Template
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "lucid64"
config.vm.provision :chef_client do |chef|
chef.chef_server_url = "http://example.com"
chef.validation_key_path = "~/.chef/validation.pem"
chef.node_name = "example"
chef.add_role("example")
@specialkevin
specialkevin / gist:2252744
Created March 30, 2012 16:44
cookbook error
NoMethodError: undefined method `[]' for nil:NilClass
/srv/chef/file_store/cookbooks/nodejs/recipes/default.rb:30:in `from_file'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/cookbook_version.rb:578:in `load_recipe'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/run_context.rb:72:in `load'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/run_context.rb:69:in `each'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/run_context.rb:69:in `load'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/client.rb:195:in `setup_run_context'
@specialkevin
specialkevin / gist:1877558
Created February 21, 2012 17:29
openldap role
name "openldap"
description "Basic OpenLDAP Server"
run_list(
"recipe[openldap::server]"
)
override_attributes "openldap" => { "domain" => "ldap.simcoe.com", "basedn" => "dc=ldap,dc=simcoe,dc=com", "slapd_type" => "master" }
server {
listen 80;
server_name localhost;
location ~ /git(/.*) {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
fastcgi_param DOCUMENT_ROOT /srv/git;
fastcgi_param GIT_PROJECT_ROOT /srv/git;
fastcgi_param PATH_INFO $1;