popularity question answers views user  
0
Change chef-client install directory

Hi ,
I would like to change the default installation directory of chef-client which is “/opt/chef/” by “/opt/chef/<version_number>/” is there a way to do that ?

I’m running on a SL6, I’ve tried the package installation which install it in “/opt/chef”, I’ve also tried the rubygem install (was new for me) and I think my ruby environment install it in “/usr/bin/ruby”

Can you specify your installation directory with the “HEAD” installation ? (answer myself HEAD install is like gem install)

Thanks in advance. regards.

more →
1 25  
0
install gcc 4.1.2

I am trying to install specifically gcc version 4.1.2 through recipe.

I tried package with version but it fails while bootstrap as it says version is expected to be String !

package “gcc” do action :install version :“4.1.2 20080704” end

Secondly I tried in attributes: default[‘gcc’][‘version’] = “4.1.2”

but looks like it have no effect (or this may not be right way!)

Please help me to install specific version of gcc through chef recipe.

more →
0 129  
0
Ubuntu 11.10 chef-server install

Hey all…

I’m trying to install chef-server on a brand-spanking new, stock install of Ubuntu 11.10 (i386), using this guide: http://wiki.opscode.com/display/chef/Installing+Chef+Server+on+Debian+or+Ubuntu+using+Packages

I’ve performed all items successfully through the “sudo apt-get upgrade” step.

Upon trying to “sudo apt-get install chef chef-server”, I get the following error:

ubuntu@ubuntu:/etc/couchdb$ sudo apt-get install chef chef-server Reading package lists… Done Building dependency tree
Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: chef : Depends: ohai (>= 0.6.0) but it is not going to be installed

    Depends: librestclient-ruby but it is not installable
    Depends: libbunny-ruby but it is not installable
    Depends: libnet-ssh-multi-ruby
    Depends: liberubis-ruby but it is not installable
    Depends: libmoneta-ruby but it is not installable
    Depends: libhighline-ruby but it is not installable
    Depends: libuuidtools-ruby but it is not installable
    Depends: rubygems but it is not installable

chef-server : Depends: chef-server-api (>= 0.10.8) but it is not going to be installed

           Depends: chef-server-webui (>= 0.10.8) but it is not going to be installed
           Depends: chef-solr (>= 0.10.8) but it is not going to be installed
           Depends: chef-expander (>= 0.10.8) but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

So, it appears that the packages are referring to broken dependencies…what am I missing here?

Thanks in advance.

Bryan

more →
1 600