popularity question answers views user  
1
Getting started with chef-solo

I have it working to the extent that I can get the example resolver recipe affecting resolv.conf on my Ubuntu server.

http://wiki.opscode.com/display/chef/Chef+Solo

Now I’m not sure how to find the attributes to put in my json file for other recipes. Take an iptables recipe for example, there are a couple of templates included and I’m not sure how to use them or where to find the attributes available. I hope I am using the right language. Thanks in advance.

more →
0 633  
0
Install Oracle Server 11g using Chef - User is not a member of the choosen OS groups

Hi,
my task is to install Oracle server 11g using Chef cookbooks. Im able to prepare the environment as recomanded on Oracle sites, but when I run Chef execute resource “./runInstaller -silent -responseFile <responseFile>” as a oracle user, the installer yells that “User is not a member of the choosen OS groups [dba, dba]”.
But he is for sure, command groups oracle gives: “oracle : dba, root”

I also try to execute command “whoami” just before the install oracle command, but it produces correct results.

When I run the install command by hand from ssh command line, it finishes correctly, the server is installed.

Oracle installer runs the java, is it possible that running java inside the execute command does not respect the desired user choosen by the Chef resource? resource:

execute "installOracleServer" do
  cwd node[:oracle][:server_install_dir]
  command "./runInstaller -silent -waitforcompletion -debug -responseFile " + node[:oracle]["server_response_file"]
  user "oracle"
  action :run
  #notifies :delete, "directory[deleteInstallFiles]"
  ignore_failure true
end

The target system: Linux RHEL5.5

more →
3 696  
0
chef-solo cannot connect to s3.amazonaws.com

I tried to execute the following command:
chef-solo -c /etc/chef/solo.rb -j /etc/chef/node.json -r https://s3.amazonaws.com/opscode-community/cookbook_versions/tarballs/194/original/java.tar.gz

and I get the following error: /usr/lib/ruby/1.8/net/http.rb:560:in `initialize': Connection refused – connect(2) (Errno::ECONNREFUSED)

Does this mean that my firewall is not allowing the connection?

more →
1 95  
0
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:

“run_list”: [

"recipe[runit]",
"recipe[nginx::source]" ]

Nginx configuration:

“nginx”: {

"install_method": "source",
"default_site_enabled": "false",
"user" : "www-data",
"source": {
  "modules": ["http_gzip_static_module","http_ssl_module"]
},
"version": "1.3.15"   }

I’m running

chef-solo -c /tmp/chef-solo/solo.rb -j /tmp/chef-solo/nodes/node.json

from the terminal.

This is the error stack trace: https://gist.github.com/anonymous/8fe2dfe655ce0a3d51e0

I’ll appreciate any thoughts.

Thanks.

more →
0 80