Skip to content

Instantly share code, notes, and snippets.

@ringods
Created May 6, 2011 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ringods/958560 to your computer and use it in GitHub Desktop.
Save ringods/958560 to your computer and use it in GitHub Desktop.
Sequence of knife cookbook site install
rdesmet@ringo-desktop:~/Projects/amplidata/infrastructure/chef-repo$ git branch -d chef-vendor-rabbitmq_chef
Deleted branch chef-vendor-rabbitmq_chef (was 4c29a13).
rdesmet@ringo-desktop:~/Projects/amplidata/infrastructure/chef-repo$ git push origin :chef-vendor-rabbitmq_chef
To git@github.com:amplidata/chef-repo.git
- [deleted] chef-vendor-rabbitmq_chef
rdesmet@ringo-desktop:~/Projects/amplidata/infrastructure/chef-repo$ knife cookbook site install rabbitmq -VV
DEBUG: Using configuration from /home/rdesmet/Projects/amplidata/infrastructure/chef-repo/.chef/knife.rb
Installing rabbitmq to /home/rdesmet/Projects/amplidata/infrastructure/chef-repo/.chef/../cookbooks
DEBUG: sh(git branch --no-color)
chef-vendor-apache2
chef-vendor-apt
chef-vendor-bluepill
chef-vendor-build-essential
chef-vendor-chef-server
chef-vendor-couchdb
chef-vendor-daemontools
chef-vendor-erlang
chef-vendor-gecode
chef-vendor-java
chef-vendor-openssl
chef-vendor-rabbitmq_chef
chef-vendor-runit
chef-vendor-ucspi-tcp
chef-vendor-xml
chef-vendor-zlib
* master
DEBUG: sh(git status --porcelain)
Checking out the master branch.
DEBUG: sh(git checkout master)
DEBUG: sh(git branch --no-color)
chef-vendor-apache2
chef-vendor-apt
chef-vendor-bluepill
chef-vendor-build-essential
chef-vendor-chef-server
chef-vendor-couchdb
chef-vendor-daemontools
chef-vendor-erlang
chef-vendor-gecode
chef-vendor-java
chef-vendor-openssl
chef-vendor-rabbitmq_chef
chef-vendor-runit
chef-vendor-ucspi-tcp
chef-vendor-xml
chef-vendor-zlib
* master
Pristine copy branch (chef-vendor-rabbitmq) exists, switching to it.
DEBUG: sh(git checkout chef-vendor-rabbitmq)
/home/rdesmet/.rvm/gems/ruby-1.9.2-p136@chef-0_10_0/gems/chef-0.10.0/lib/chef/shell_out.rb:207:in `invalid!': Expected process to exit 0, but it exited with 1 (Chef::Exceptions::ShellCommandFailed)
---- Begin output of git checkout chef-vendor-rabbitmq ----
STDOUT:
STDERR: error: pathspec 'cookbooks/chef-vendor-rabbitmq' did not match any file(s) known to git.
---- End output of git checkout chef-vendor-rabbitmq ----
Ran git checkout chef-vendor-rabbitmq returned 1
from /home/rdesmet/.rvm/gems/ruby-1.9.2-p136@chef-0_10_0/gems/chef-0.10.0/lib/chef/shell_out.rb:193:in `error!'
from /home/rdesmet/.rvm/gems/ruby-1.9.2-p136@chef-0_10_0/gems/chef-0.10.0/lib/chef/mixin/shell_out.rb:36:in `shell_out!'
from /home/rdesmet/.rvm/gems/ruby-1.9.2-p136@chef-0_10_0/gems/chef-0.10.0/lib/chef/knife/core/cookbook_scm_repo.rb:143:in `git'
from /home/rdesmet/.rvm/gems/ruby-1.9.2-p136@chef-0_10_0/gems/chef-0.10.0/lib/chef/knife/core/cookbook_scm_repo.rb:75:in `prepare_to_import'
from /home/rdesmet/.rvm/gems/ruby-1.9.2-p136@chef-0_10_0/gems/chef-0.10.0/lib/chef/knife/cookbook_site_install.rb:77:in `run'
from /home/rdesmet/.rvm/gems/ruby-1.9.2-p136@chef-0_10_0/gems/chef-0.10.0/lib/chef/knife.rb:391:in `run_with_pretty_exceptions'
from /home/rdesmet/.rvm/gems/ruby-1.9.2-p136@chef-0_10_0/gems/chef-0.10.0/lib/chef/knife.rb:166:in `run'
from /home/rdesmet/.rvm/gems/ruby-1.9.2-p136@chef-0_10_0/gems/chef-0.10.0/lib/chef/application/knife.rb:128:in `run'
from /home/rdesmet/.rvm/gems/ruby-1.9.2-p136@chef-0_10_0/gems/chef-0.10.0/bin/knife:25:in `<top (required)>'
from /home/rdesmet/.rvm/gems/ruby-1.9.2-p136@chef-0_10_0/bin/knife:19:in `load'
from /home/rdesmet/.rvm/gems/ruby-1.9.2-p136@chef-0_10_0/bin/knife:19:in `<main>'
rdesmet@ringo-desktop:~/Projects/amplidata/infrastructure/chef-repo$ knife cookbook site install rabbitmq -VV
DEBUG: Using configuration from /home/rdesmet/Projects/amplidata/infrastructure/chef-repo/.chef/knife.rb
Installing rabbitmq to /home/rdesmet/Projects/amplidata/infrastructure/chef-repo/.chef/../cookbooks
DEBUG: sh(git branch --no-color)
chef-vendor-apache2
chef-vendor-apt
chef-vendor-bluepill
chef-vendor-build-essential
chef-vendor-chef-server
chef-vendor-couchdb
chef-vendor-daemontools
chef-vendor-erlang
chef-vendor-gecode
chef-vendor-java
chef-vendor-openssl
chef-vendor-runit
chef-vendor-ucspi-tcp
chef-vendor-xml
chef-vendor-zlib
* master
DEBUG: sh(git status --porcelain)
Checking out the master branch.
DEBUG: sh(git checkout master)
DEBUG: sh(git branch --no-color)
chef-vendor-apache2
chef-vendor-apt
chef-vendor-bluepill
chef-vendor-build-essential
chef-vendor-chef-server
chef-vendor-couchdb
chef-vendor-daemontools
chef-vendor-erlang
chef-vendor-gecode
chef-vendor-java
chef-vendor-openssl
chef-vendor-runit
chef-vendor-ucspi-tcp
chef-vendor-xml
chef-vendor-zlib
* master
Creating pristine copy branch chef-vendor-rabbitmq
DEBUG: sh(git checkout -b chef-vendor-rabbitmq)
DEBUG: Sending HTTP Request via GET to cookbooks.opscode.com:80/api/v1/cookbooks/rabbitmq
DEBUG: Sending HTTP Request via GET to cookbooks.opscode.com:80/api/v1/cookbooks/rabbitmq/versions/1_0_0
Downloading rabbitmq from the cookbooks site at version 1.0.0 to /home/rdesmet/Projects/amplidata/infrastructure/chef-repo/.chef/../cookbooks/rabbitmq.tar.gz
DEBUG: Sending HTTP Request via GET to s3.amazonaws.com:80/opscode-community/cookbook_versions/tarballs/705/original/rabbitmq.tgz
DEBUG: Streaming download from http://s3.amazonaws.com/opscode-community/cookbook_versions/tarballs/705/original/rabbitmq.tgz?1304446090 to tempfile /tmp/chef-rest20110506-17127-1ab8qfe
Cookbook saved: /home/rdesmet/Projects/amplidata/infrastructure/chef-repo/.chef/../cookbooks/rabbitmq.tar.gz
Removing pre-existing version.
Uncompressing rabbitmq version /home/rdesmet/Projects/amplidata/infrastructure/chef-repo/.chef/../cookbooks.
DEBUG: sh(tar zxvf /home/rdesmet/Projects/amplidata/infrastructure/chef-repo/.chef/../cookbooks/rabbitmq.tar.gz)
rabbitmq/
rabbitmq/README
rabbitmq/attributes/
rabbitmq/metadata.json
rabbitmq/metadata.rb
rabbitmq/recipes/
rabbitmq/templates/
rabbitmq/templates/default/
rabbitmq/templates/default/doterlang.cookie.erb
rabbitmq/templates/default/rabbitmq.config.erb
rabbitmq/templates/default/rabbitmq_cluster.config.erb
rabbitmq/recipes/chef.rb
rabbitmq/recipes/cluster.rb
rabbitmq/recipes/default.rb
rabbitmq/attributes/default.rb
removing downloaded tarball
DEBUG: sh(rm /home/rdesmet/Projects/amplidata/infrastructure/chef-repo/.chef/../cookbooks/rabbitmq.tar.gz)
DEBUG: sh(git status --porcelain -- rabbitmq)
?? cookbooks/rabbitmq/
1 files updated, committing changes
DEBUG: sh(git add rabbitmq)
DEBUG: sh(git commit -m 'Import rabbitmq version 1.0.0' -- rabbitmq)
[chef-vendor-rabbitmq 5968bc0] Import rabbitmq version 1.0.0
10 files changed, 442 insertions(+), 0 deletions(-)
create mode 100644 cookbooks/rabbitmq/README
create mode 100644 cookbooks/rabbitmq/attributes/default.rb
create mode 100644 cookbooks/rabbitmq/metadata.json
create mode 100644 cookbooks/rabbitmq/metadata.rb
create mode 100644 cookbooks/rabbitmq/recipes/chef.rb
create mode 100644 cookbooks/rabbitmq/recipes/cluster.rb
create mode 100644 cookbooks/rabbitmq/recipes/default.rb
create mode 100644 cookbooks/rabbitmq/templates/default/doterlang.cookie.erb
create mode 100644 cookbooks/rabbitmq/templates/default/rabbitmq.config.erb
create mode 100644 cookbooks/rabbitmq/templates/default/rabbitmq_cluster.config.erb
Creating tag cookbook-site-imported-rabbitmq-1.0.0
DEBUG: sh(git tag -f cookbook-site-imported-rabbitmq-1.0.0)
Updated tag 'cookbook-site-imported-rabbitmq-1.0.0' (was 0000000)
Checking out the master branch.
DEBUG: sh(git checkout master)
Updating e1845f6..5968bc0
Fast-forward
cookbooks/rabbitmq/README | 27 +++
cookbooks/rabbitmq/attributes/default.rb | 12 ++
cookbooks/rabbitmq/metadata.json | 173 ++++++++++++++++++++
cookbooks/rabbitmq/metadata.rb | 62 +++++++
cookbooks/rabbitmq/recipes/chef.rb | 69 ++++++++
cookbooks/rabbitmq/recipes/cluster.rb | 35 ++++
cookbooks/rabbitmq/recipes/default.rb | 46 +++++
.../templates/default/doterlang.cookie.erb | 1 +
.../rabbitmq/templates/default/rabbitmq.config.erb | 12 ++
.../templates/default/rabbitmq_cluster.config.erb | 5 +
10 files changed, 442 insertions(+), 0 deletions(-)
create mode 100644 cookbooks/rabbitmq/README
create mode 100644 cookbooks/rabbitmq/attributes/default.rb
create mode 100644 cookbooks/rabbitmq/metadata.json
create mode 100644 cookbooks/rabbitmq/metadata.rb
create mode 100644 cookbooks/rabbitmq/recipes/chef.rb
create mode 100644 cookbooks/rabbitmq/recipes/cluster.rb
create mode 100644 cookbooks/rabbitmq/recipes/default.rb
create mode 100644 cookbooks/rabbitmq/templates/default/doterlang.cookie.erb
create mode 100644 cookbooks/rabbitmq/templates/default/rabbitmq.config.erb
create mode 100644 cookbooks/rabbitmq/templates/default/rabbitmq_cluster.config.erb
Cookbook rabbitmq version 1.0.0 successfully installed
rdesmet@ringo-desktop:~/Projects/amplidata/infrastructure/chef-repo$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment