Skip to content

Instantly share code, notes, and snippets.

@groknaut
groknaut / knife-upload-output
Created November 17, 2015 03:41
knife upload 400 error
/opt/opscode/bin/knife upload /cookbooks -c /path/to/knife.rb --force -VV
INFO: Using configuration from /path/to/knife.rb
..snip for brevity
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: server: openresty/1.7.10.1
DEBUG: date: Mon, 16 Nov 2015 23:23:31 GMT
DEBUG: content-type: application/json
@groknaut
groknaut / gist:9959791
Created April 3, 2014 18:16
keybase ID
### Keybase proof
I hereby claim:
* I am groknaut on github.
* I am kallen (https://keybase.io/kallen) on keybase.
* I have a public key whose fingerprint is 49CD DA48 AB65 33AD 4C4B C714 AC51 0F0F 9B41 8A55
To claim this, I am signing this object:
@groknaut
groknaut / chef debug output
Created October 26, 2012 23:59
chef debug output
[Fri, 26 Oct 2012 23:31:45 +0000] DEBUG: Loading plugin linux::ssh_host_key
[Fri, 26 Oct 2012 23:31:45 +0000] DEBUG: Loading plugin linux::memory
[Fri, 26 Oct 2012 23:31:45 +0000] DEBUG: Loading plugin linux::filesystem
[Fri, 26 Oct 2012 23:31:46 +0000] DEBUG: Loading plugin linux::block_device
[Fri, 26 Oct 2012 23:31:46 +0000] DEBUG: Client key /etc/chef/client.pem is present - skipping registration
[Fri, 26 Oct 2012 23:31:46 +0000] DEBUG: Building node object for test-mobile.prod.gogiants.com
[Fri, 26 Oct 2012 23:31:46 +0000] DEBUG: Signing the request as test-mobile.prod.gogiants.com
[Fri, 26 Oct 2012 23:31:46 +0000] DEBUG: String to sign: 'Method:GET
Hashed Path:zpY0J2s6WR0OR3PupQBaoodN7rU=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
@groknaut
groknaut / gist:2999919
Created June 26, 2012 22:57
chef 10.12.0 can't find right_aws gem
[Tue, 26 Jun 2012 22:47:18 +0000] DEBUG: Loading Recipe aws via include_recipe
[Tue, 26 Jun 2012 22:47:18 +0000] DEBUG: Found recipe default in cookbook aws
[Tue, 26 Jun 2012 22:47:18 +0000] INFO: Processing gem_package[right_aws] action install (aws::default line 20)
[Tue, 26 Jun 2012 22:47:18 +0000] DEBUG: gem_package[right_aws] detected omnibus installation in /opt/chef/embedded/bin
[Tue, 26 Jun 2012 22:47:18 +0000] DEBUG: gem_package[right_aws] searching for 'gem' binary in path: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/ec2/bin:/opt/iam/bin:/home/ec2/bin:/root/bin:/opt/chef/embedded/bin:/opt/chef/embedded/bin
[Tue, 26 Jun 2012 22:47:18 +0000] DEBUG: gem_package[right_aws] using gem '/usr/bin/gem'
[Tue, 26 J
@groknaut
groknaut / gist:2871114
Created June 4, 2012 22:09
404 Net::HTTPServerException: cookbook_file
[Mon, 04 Jun 2012 21:04:36 +0000] INFO: Processing cookbook_file[/usr/local/bin/postfixstats.sh] action create (dynamically defined)
[Mon, 04 Jun 2012 21:04:36 +0000] INFO: Processing cookbook_file[/usr/local/bin/pflogsumm] action create (dynamically defined)
[Mon, 04 Jun 2012 21:04:36 +0000] INFO: Processing cookbook_file[/usr/local/bin/opschangelog.rb] action create (dynamically defined)
[Mon, 04 Jun 2012 21:04:36 +0000] INFO: Processing cookbook_file[/usr/local/bin/static-update.sh] action create (dynamically defined)
[Mon, 04 Jun 2012 21:04:36 +0000] INFO: Processing cookbook_file[/usr/local/bin/ec2-chef-ci] action create (dynamically defined)
[Mon, 04 Jun 2012 21:04:38 +0000] ERROR: cookbook_file[/usr/local/bin/ec2-chef-ci] (dynamically defined) has had an error
[Mon, 04 Jun 2012 21:04:38 +0000] ERROR: remote_directory[/usr/local/bin] (toolbin::default line 27) has had an error
[Mon, 04 Jun 2012 21:04:38 +0000] ERROR: remote_directory[/usr/local/bin] (/var/cache/chef/cookbooks/toolbin/recipes/default.rb:
@groknaut
groknaut / gist-gem-fail
Created June 3, 2012 07:52
gem_package install of gist fails during initial chef run
[Sun, 03 Jun 2012 06:58:43 +0000] DEBUG: Converging node chef-ci-webapp01c.dev.dohdeca.com
[Sun, 03 Jun 2012 06:58:43 +0000] DEBUG: Processing gem_package[pony] on chef-ci-webapp01c.dev.dohdeca.com
[Sun, 03 Jun 2012 06:58:43 +0000] INFO: Processing gem_package[pony] action nothing (chef_handler::default line 25)
[Sun, 03 Jun 2012 06:58:43 +0000] DEBUG: gem_package[pony] using gem from running ruby environment
[Sun, 03 Jun 2012 06:58:43 +0000] DEBUG: gem_package[pony] found installed gem pony version 1.4 matching pony (>= 0, runtime)
[Sun, 03 Jun 2012 06:58:43 +0000] DEBUG: Doing nothing for gem_package[pony]
[Sun, 03 Jun 2012 06:58:43 +0000] DEBUG: Processing gem_package[gist] on chef-ci-webapp01c.dev.dohdeca.com
[Sun, 03 Jun 2012 06:58:43 +0000] INFO: Processing gem_package[gist] action install (chef_handler::default line 35)
[Sun, 03 Jun 2012 06:58:43 +0000] DEBUG: gem_package[gist] using gem from running ruby environment
[Sun, 03 Jun 2012 06:58:43 +0000] DEBUG: gem_package[gist] no installed version found
@groknaut
groknaut / chef errors
Created February 24, 2012 22:21
odd errors after restoring couchdb onto new chef server
in the first try, this config is in client.rb:
chef_server_url "https://chef.venus.spergacula.com"
chef.venus.spergacula.com is a CNAME to cheftain04.
root@cheftain04:~# chef-client -l debug -L /var/log/chef/client.log
[snip]
[Fri, 24 Feb 2012 21:52:54 +0000] DEBUG: Processing cookbook_file[/etc/sudoers] on cheftain04.venus.spergacula.com
[Fri, 24 Feb 2012 21:52:54 +0000] INFO: Processing cookbook_file[/etc/sudoers] action create (users::user-file-dist line 6)
[Fri, 24 Feb 2012 21:52:54 +0000] DEBUG: Processing directory[/home/builder] on cheftain04.venus.spergacula.com
@groknaut
groknaut / client.frak.rb
Created January 20, 2012 18:54
chef client.rb to that grabs config from userdata
# credit to opscode:
# https://gist.github.com/319106
# credit to makuk66
#https://gist.github.com/1111078
@client_key_file="/etc/chef/client.pem"
@client_rb_std_filename = "/etc/chef/client.rb"
@client_rb_firstboot_filename = "/etc/chef/client.firstboot.rb"
def first_boot
require 'ohai'