Fetching attributes recipes and roles of a cookbook
I am trying to fetch all the attributes,recipes roles of a cookbook,
Thrift cookbook refers to an outdated version and path of thrift
The thrift cookbook defaults to 0.6.0, and to the tds.net apache mirror. In the apache master and mirrors 0.6.0 and 0.6.1 are no longer on the servers. Those versions are distributed via archive.apache.org. On archive.apache.org the path to the thrift director is different.
I needed to do this:
Chef client 11.4.0 error
Hi. Recently installed Chef 11.0.4 and i’m trying to get role listing with command ‘knife role list’. Sometimes it works bur sometimes i get error
$ knife -v Chef: 11.4.0
$ chef-client -v Chef: 11.4.0
$ knife role list /var/lib/gems/1.8/gems/chef-11.4.0/lib/chef/knife/cookbook_upload.rb:25: superclass mismatch for class CookbookUpload (TypeError)
I have no idea what that means. Need help. Thanks.
TypeError - can't convert nil into String
I am on Ubuntu 11.04 running chef 0.10.8. While trying to install vmware’s cloud-foundry using chef cookbooks, one particular cookbook whose link is shown below, makes chef to throw the exception TypeError – can’t convert nil into String :
The full stack trace of the exception is shown below. Please how do i resolve, TypeError – can’t convert nil into String.
Re-raising exception: TypeError – can’t convert nil into String /home/dav29/cloudfoundry/vcap/dev_setup/cookbooks/ccdb/attributes/default.rb:6:in `join'
The abridged stacktrace is below. pls how can i resolve this.
$ bin/vcap_dev_setup Checking web connectivity. /home/dav29/.rbenv/shims/chef-solo
Reading package lists… Done Reading package lists… Building dependency tree… Reading state information… Cloning into ‘vcap’… remote: Counting objects: 5651, done. Resolving deltas: 100% (3017/3017), done. Submodule ‘java’ (https://github.com/cloudfoundry/vcap-java.git) registered for path ‘java’ Submodule ‘services’ (https://github.com/cloudfoundry/vcap-services.git) registered for path ‘services’ Submodule ‘tests’ (https://github.com/cloudfoundry/vcap-tests.git) registered for path ‘tests’ remote: Counting objects: 1496, done. remote: Compressing objects: 100% (643/643), done. Cloning into ‘tests’…
Installing deployment devbox, cloudfoundry home dir is /home/dav29/cloudfoundry [Tue, 10 Jan 2012 15:55:11 +0000] INFO: Chef 0.10.8 [Tue, 10 Jan 2012 15:55:24 +0000] DEBUG: Platform is ubuntu version 11.04
[Tue, 10 Jan 2012 15:55:24 +0000] INFO: Run List expands to [deployment, essentials, ruby, nats_server, cloudfoundry, nginx, router, postgresql, ccdb, ruby::ruby18, cloud_controller, health_manager, dea, redis, redis::node, mysql, mysql::node, mongodb, mongodb::node, neo4j, neo4j::node, redis::gateway, mysql::gateway, mongodb::gateway, neo4j::gateway]
[Tue, 10 Jan 2012 15:55:24 +0000] DEBUG: No chefignore file found at /home/dav29/cloudfoundry/vcap/dev_setup/cookbooks/chefignore no files will be ignored [Tue, 10 Jan 2012 15:55:25 +0000] DEBUG: Loading cookbook cloudfoundry’s library file: /home/dav29/cloudfoundry/vcap/dev_setup/cookbooks/cloudfoundry/libraries/cloudfoundry.rb
[Tue, 10 Jan 2012 15:55:25 +0000] DEBUG: Node dav.localdomain loading cookbook ccdb’s attribute file /home/dav29/cloudfoundry/vcap/dev_setup/cookbooks/ccdb/attributes/default.rb
[Tue, 10 Jan 2012 15:55:25 +0000] ERROR: Running exception handlers
[Tue, 10 Jan 2012 15:55:25 +0000] ERROR: Exception handlers complete
[Tue, 10 Jan 2012 15:55:25 +0000] DEBUG: Re-raising exception: TypeError – can’t convert nil into String
Include recipes on definitions
I’m new on chef and have spent some days reading documentation. And saw some examples where on a Definition there is an include_recipe “somename” sentence.
On the doc, cant uderstand 100% the Definitions and utility, can someone bring me some light on this?
Can't Bootstrap CentOS 5.4 ???
I am a noob….
I have been able to successfully bootstrap (add node) for both ubuntu 10.04 & oel5.4, but have had trouble with CentOS 5.4
For ubuntu I used: knife bootstrap <IP> -u <user> -P <password> —sudo
For oel: knife bootstrap <IP> -u root -P <password> -d centos5-gems
I tried the oel command on centos but I get an error:
centos1 Cipher is not a module
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
Cannot find a resource for runit_service on ubuntu version 12.04
I’m trying to install nginx on an amazon ec2 instance but I’m receiving an “Cannot find a resource for runit_service on ubuntu version 12.04” error.
What’s strange is that I am able to configure nginx in a virtual machine node managed by vagrant (running $ vagrant provision node_name).
My run list:
from the terminal.
This is the error stack trace: https://gist.github.com/anonymous/8fe2dfe655ce0a3d51e0
I’ll appreciate any thoughts.
How to manage client configuration for multiple organizations
When using hosted chef with multiple organizations (where organization is the right way to differentiate projects as opposed to setting environments) what is the best approach for managing the client configuration files?
I have separate organizations, each with their own validation key, and generated knife.rb configuration. On my workstations I have separate chef repos and chef client configuration directories for each organization.
But, how do I best manage
I was thinking that I could create separate
Anyone have other suggestions on how to work with multiple orgs?
Overriding variables twice
I’m having an issue where I run the following opscode cookbooks but I’m overriding the java “install_flavor” to use “oracle”.
The initial java recipe installs oracle version of java however, tomcat also includes java which for some reason runs and installs and openjdk regardless of the following override.
Am I doing something wrong?
Thanks for your help, Joe
redisio client recipe - role search
Hey there, I’m using a community recipe with the name redisio and it actually works very well.
I want to integrate a client recipe in the cookbook. This client recipe should search for a role named redismaster an use the IP address (or put it into a variable named @master_redis) for the redis-config file of the client. –> Usually not a big deal but I don’t know how to handle it here
PS I prepared something and I think I can use this lines in the template erb file
<% @master_redis.each do |system| –%>
<% end –%>