Skip to content

Instantly share code, notes, and snippets.

View cwjohnston's full-sized avatar

Cameron Johnston cwjohnston

  • Salt Lake City, UT
View GitHub Profile
@cwjohnston
cwjohnston / Gemfile
Last active August 29, 2015 14:08
How to Sparkle
gem 'knife-cloudformation', :git => 'https://github.com/heavywater/knife-cloudformation.git', :ref => 'feature/miasma'
gem 'miasma', :git => 'https://github.com/chrisroberts/miasma.git', :ref => 'develop'
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
.FFFF........................................................................................
================================================================================
Error executing action `run` on resource 'redisio_install[redis-servers]'
================================================================================
ArgumentError
-------------
You must supply a name when declaring a file resource
def lookup_resource(type, name, run_context)
begin
run_context.resource_collection.find("#{ type }[#{ name }]")
rescue ArgumentError => e
puts "You provided invalid arugments to resource_collection.find: #{ e }"
return nil
rescue RuntimeError => e
puts "The resources you searched for were not found: #{ e }"
return nil
end
---
driver:
name: vagrant
provider: vmware_fusion
use_vagrant_provision: true
require_chef_omnibus: latest
provisioner:
name: chef_solo
[2014-01-03T18:47:54+00:00] INFO: Creating virtualenv python_virtualenv[/opt/needle/haystack/shared/env] at /opt/needle/haystack/shared/env
================================================================================
Error executing action `run` on resource 'execute[virtualenv --python=python2.7 /opt/needle/haystack/shared/env]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---
driver_plugin: docker
platforms:
- name: ubuntu-12.04
run_list:
- recipe[apt]
@cwjohnston
cwjohnston / gist:7714122
Created November 30, 2013 01:12
vagabond init failure
Ensuring expected system state (creating required base containers)
- This can take a while on first run or new templates...
Expected process to exit with [0], but received '1'
---- Begin output of sudo bundle exec chef-solo -j /tmp/vagabond/solos/home/vagrant/.vagabond/dna.json -c /tmp/vagabond/solos/home/vagrant/.vagabond/solo.rb ----
STDOUT: * apt-cacher-ng is running
ls: cannot access /opt/chef*.deb: No such file or directory

================================================================================
Error executing action `create` on resource 'lxc_config[ubuntu_1204]'
================================================================================
#!/usr/bin/env ruby
require 'rubygems'
require 'fog'
ec2_public_hostname = `/usr/local/bin/ec2-metadata -p`
@domain = "<%= @dns_domain %>" + "."
@fqdn = "<%= node['fqdn'] %>" + "."
@record_target = ec2_public_hostname.split(' ')[1] + "."
@record_type = "CNAME"
================================================================================
Error executing action `create` on resource 'template[/etc/init.d/newrelic-plugin-agent]'
================================================================================
Chef::Mixin::Template::TemplateError
------------------------------------
undefined method ` ' for #<Chef::Mixin::Template::TemplateContext:0x00000002ccde98>