Skip to content

Instantly share code, notes, and snippets.

View petems's full-sized avatar
🏠
Working from home

Peter Souter petems

🏠
Working from home
View GitHub Profile
@petems
petems / gist:8843433
Created February 6, 2014 12:42
Beaker stuff
RS_DESTROY=no RS_DEBUG=true bundle exec rspec spec/acceptance/
@petems
petems / gist:8888974
Created February 8, 2014 19:35
Kafo error
/opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/kafo-0.3.12/lib/kafo/puppet_module.rb:118:in `get_name': undefined method `gsub' for :log_dir:Symbol (NoMethodError)
from /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/kafo-0.3.12/lib/kafo/puppet_module.rb:16:in `initialize'
from /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/kafo-0.3.12/lib/kafo/configuration.rb:72:in `new'
from /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/kafo-0.3.12/lib/kafo/configuration.rb:72:in `block in modules'
from /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/kafo-0.3.12/lib/kafo/configuration.rb:72:in `map'
from /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/kafo-0.3.12/lib/kafo/configuration.rb:72:in `modules'
from /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/kafo-0.3.12/lib/kafo/kafo_configure.rb:156:in `modules'
from /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/kafo-0.3.12/lib/kafo/kafo_configure.rb:
@petems
petems / gist:8938318
Created February 11, 2014 16:28
Puppet-doc-lint output example
bundle exec bin/puppet-doc-lint ~/Projects/puppetlabs-firewall/
Class name was: firewall
File name /Users/peterso/Projects/puppetlabs-firewall//manifests/init.pp
Parameters found ["ensure"]
No documentation error:
Documented parameters found
Undocumented parameters found
Class name was: firewall::linux::archlinux
File name /Users/peterso/Projects/puppetlabs-firewall//manifests/linux/archlinux.pp
Parameters found ["ensure", "enable"]
@petems
petems / Gemfile
Last active August 29, 2015 13:56
Parse Puppet Rake file
source 'https://rubygems.org'
gem "puppet", "~> 3"
gem "highline"
gem "ruby-progressbar"
gem "rake"
@petems
petems / output
Last active August 29, 2015 13:56
Beaker output...
gems/beaker-1.6.2/lib/beaker/hypervisor/vagrant.rb:164:in `block (2 levels) in vagrant_cmd': Failed to exec 'vagrant destroy --force' (RuntimeError)
# Added logging...
/opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/beaker-d0a6d8646393/lib/beaker/hypervisor/vagrant.rb:167:in `block (2 levels) in vagrant_cmd': Failed to exec 'vagrant destroy --force'Stdout was 'Stderr was /opt/boxen/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.4.0.rc.1/lib/bundler/rubygems_integration.rb:238:in `block in replace_gem': vagrant is not part of the bundle. Add it to Gemfile. (Gem::LoadError) (RuntimeError)
export OS_AUTH_URL=https://lon.identity.api.rackspacecloud.com/v2.0/
export OS_VERSION=2.0
export OS_AUTH_SYSTEM=rackspace_uk
export OS_REGION_NAME=LON
export OS_SERVICE_NAME=cloudserversOpenStack
export OS_TENANT_NAME=#
export OS_USERNAME=#
export OS_PASSWORD=#
export OS_NO_CACHE=1
export OS_AUTH_URL OS_VERSION OS_AUTH_SYSTEM OS_REGION_NAME OS_SERVICE_NAME OS_TENANT_NAME OS_USERNAME OS_PASSWORD OS_NO_CACHE
@petems
petems / gist:8981223
Last active August 29, 2015 13:56
Get Nova working...

Instructions from rackspace failed with the following errors:

$ nova
ERROR: six
$ nova
ERROR: 'module' object has no attribute 'add_arg'
@petems
petems / Rakefile
Last active August 29, 2015 13:56
Parallel Tests
require 'parallel_tests'
require 'parallel_tests/cli'
require 'rspec/core/rake_task'
desc "Run rspec"
task :spec do
matched_files = FileList['**/*_spec.rb'].exclude(/vendor/)
cli_args = ['-t', 'rspec']
@petems
petems / gist:9091786
Created February 19, 2014 13:18
Vagrant error
undefined method `gsub' for nil:NilClass
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/util/shell_quote.rb:9:in `escape'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builtin/ssh_run.rb:37:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
/Users/inakiabt/.vagrant.d/gems/gems/vagrant-puppet-install-2.0.0/lib/vagrant-puppet-install/action/install_puppet.rb:40:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
/Users/inakiabt/.vagrant.d/gems/gems/vagrant-puppet-install-2.0.0/lib/vagrant-puppet-install/action/read_puppet_version.rb:40:in `call'
@petems
petems / gist:9276196
Created February 28, 2014 17:59
Rackspace Base Repo typo (Line 8)
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
## If the mirrorlist= does not work for you, as a fall back you can try the
remarked out baseurl= line instead.
#