[chef] Re: moneta breaking all deployments

Chronological Thread 
  • From: Maven User < >
  • To: chef < >
  • Subject: [chef] Re: moneta breaking all deployments
  • Date: Mon, 24 Dec 2012 12:10:37 -0500

Hi Josh -

We had issues with omnibus and posgresql - will this still be an issue with "chef-full" instead of the ubuntu one we've opted for?

Also, in my first recipe, I've done a gem_install/gem_uninstall (as per an earlier suggestion from another user). Won't this be enough for the short term?

On Mon, Dec 24, 2012 at 12:03 PM, Joshua Timberman < " target="_blank"> > wrote:

On 12/24/12 8:13 AM, "Maven User" < "> > wrote:

>Jesse- We're using Ubuntu 12.04:
>-d ubuntu12.04-gems
>How do I do what you're talking about - a custom bootstrap script?
>It's not clear how to specify the gem I'd like (or how I get this file on
>the the machine I'm bootsrapping)....

You copy the bootstrap template from the Chef gem directory on your local
workstation system to ~/.chef/bootstrap. The location depends on your
installation method on the local system. You can use the "gem which"
command. For example, in my rbenv installation of Chef:

% gem which chef/knife

There's a "knife/bootstrap" directory under lib/chef there. Under an
"omnibus" installation of Chef:

% /opt/chef/embedded/bin/gem which chef/knife

Copy the bootstrap template file from the knife/bootstrap directory, then,
modify it as you need. It's a shell script with some embedded Ruby for
helpers from knife and your knife.rb.

Alternately, you could try the 'chef-full' template, which is the default,
and it installs the Omnibus package of Chef, and shouldn't have this
problem at all since it is built with moneta 0.6.0.


Archive powered by MHonArc 2.6.16.