Skip to content

Instantly share code, notes, and snippets.

View tas50's full-sized avatar
🌪️
Producting. That's a thing right?

Tim Smith tas50

🌪️
Producting. That's a thing right?
View GitHub Profile
diff --git a/attributes/default.rb b/attributes/default.rb
index 09d1fc1..ee2e575 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -1,8 +1,8 @@
#
-# Cookbook Name:: build-essential
+# Cookbook:: build-essential
# Attributes:: default
#
MBP:~/dev/chef-cookbooks bundle exec rubocop . --config .rubocop.yml
Inspecting 3093 files
.C..CC..C...C......C......CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC..C..CC..C...C...C..CC.CCCCCC.....C.CCCCC...CC....CCC..C...C.............C.CC....................................CC.............C..CC.CC..C.CC.CCCCCCC..C..C.......................C.................C.......................C....C..C...C....C.CCC..C...C....C...C..C.....CCCC...........C...C....C..CC....CC...........................................C..CCCCC.C...CC............C........................C.....CC...C......CC.C.CWC..WCCCCCWWWWCC..........C............C..CC...C..C..CC.........CC...C..CC.C.CCCCC..C...........CC..CCC....CCCCCCCCCCCCCC.CCCC..C..CCCCCCCCCCC.CCCCCCCCCCCCCCCCCCC.CCCC..........C............C....C.C......C.CCCCC.CCCCC.CCCCCC.CCCCC.C........C...CCCCCC...................................................CC.C....CC..C.C....CCCCCCCCCCCCCCCCCCC...C...C................CC....CCCCCCC.....C..C.W..C..C............
MBP:~/dev/chef-cookbooks/chef-client (master) bundle exec rubocop -a .
Inspecting 40 files
....CCC.CCCC...C.C.C.C..................
Offenses:
attributes/default.rb:4:1: C: [Corrected] Properly format comment headers for YARD
# Cookbook Name:: chef-client
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
attributes/default.rb:7:1: C: [Corrected] Properly format comment headers for YARD
W: Size of file /var/lib/apt/lists/partial/packages.chef.io_current-apt_dists_precise_Release.gpg is not what the server reported 183 154
W: Size of file /var/lib/apt/lists/partial/packages.chef.io_current-apt_dists_precise_Release is not what the server reported 1841 154
W: Size of file /var/lib/apt/lists/partial/packages.chef.io_current-apt_dists_precise_main_binary-amd64_Packages is not what the server reported 18761 13468
W: Size of file /var/lib/apt/lists/partial/packages.chef.io_current-apt_dists_precise_main_binary-i386_Packages is not what the server reported 6128 154
31 files inspected, no offenses detected
/Users/tsmith/.rbenv/versions/2.3.1/bin/ruby -I/Users/tsmith/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-support-3.5.0/lib:/Users/tsmith/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.5.3/lib /Users/tsmith/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.5.3/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
Ignoring eventmachine-1.2.0.1 because its extensions are not built. Try: gem pristine eventmachine --version 1.2.0.1
An error occurred in a `before(:suite)` hook.
Failure/Error:
berksfile.sources.collect do |source|
Thread.new do
begin
Berkshelf.formatter.msg("Fetching cookbook index from #{source.uri}...")
Ohai.plugin(:Acme) do
provides 'acme'
depends 'hostname'
collect_data(:linux, :darwin, :freebsd) do
acme Mash.new
if fqdn.to_s.downcase.include?('acme.net')
# extract just the datacenter portion using our standard linux naming schema of vps-123.POP.acme.net. Handle PHX2 -> PHX also
acme[:pop] = fqdn.split('.')[-3].gsub(/[0-9]/, '').upcase
Installing dep_selector 1.0.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/tsmith/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/dep_selector-1.0.4/ext/dep_gecode
/Users/tsmith/.rbenv/versions/2.3.1/bin/ruby -r ./siteconf20160808-33838-aa0l0f.rb extconf.rb
Ignoring dep-selector-libgecode-1.3.1 because its extensions are not built. Try: gem pristine dep-selector-libgecode --version 1.3.1
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
MBP:~/dev/chef-cookbooks/sudo (testing_updates) kitchen verify create-ubuntu-1204
-----> Starting Kitchen (v1.10.2)
-----> Verifying <create-ubuntu-1204>...
Use `/Users/tsmith/dev/chef-cookbooks/sudo/test/integration/create` for testing
Target: ssh://[email protected]:2222
@tas50
tas50 / gist:818b13053902ca3929deb3a4c0962928
Created July 29, 2016 21:56
Update all your vagrant boxes at once
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Box type must be specified (virtualbox, vmware_desktop, parallels)"
exit 1
fi
# Find all boxes which have updates
AVAILABLE_UPDATES=`vagrant box outdated --global 2>/dev/null | grep outdated | tr -d "*'" | cut -d ' ' -f 2`
@tas50
tas50 / gist:a072a027a63ffad752ee7b5199c95875
Created July 19, 2016 02:11
Update all global vagrant boxes (useful for test kitchen)
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Box type must be specified (virtualbox, vmware_desktop, parallels)"
exit 1
fi
# Find all boxes which have updates
AVAILABLE_UPDATES=`vagrant box outdated --global 2>/dev/null | grep outdated | tr -d "*'" | cut -d ' ' -f 2`