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 /usr/lib/ruby/1.8/openssl/cipher.rb:22
centos1 :
centos1 Cipher is not a module
centos1 (
centos1 TypeError
centos1 )
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require'
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
centos1 from /usr/lib/ruby/1.8/openssl.rb:20
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require'
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
centos1 from /usr/lib/ruby/1.8/net/https.rb:102
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require'
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
centos1 from /usr/lib64/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/rest.rb:23
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require'
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
centos1 from /usr/lib64/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/search/query.rb:21
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require'
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
centos1 from /usr/lib64/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/mixin/language.rb:19
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require'
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
centos1 from /usr/lib64/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource.rb:22
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require'
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
centos1 from /usr/lib64/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource/file.rb:19
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require'
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
centos1 from /usr/lib64/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/provider/file.rb:21
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require'
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
centos1 from /usr/lib64/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/provider/cookbook_file.rb:20
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require'
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
centos1 from /usr/lib64/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/providers.rb:20
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require'
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
centos1 from /usr/lib64/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef.rb:25
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require'
centos1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
centos1 from /usr/lib64/ruby/gems/1.8/gems/chef-0.10.8/bin/chef-client:23
centos1 from /usr/bin/chef-client:19:in `load'
centos1 from /usr/bin/chef-client:19