[chef] Re: Re: Re: Re: Re: moneta breaking all deployments


Chronological Thread 
  • From: Erik Hollensbe < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: moneta breaking all deployments
  • Date: Mon, 24 Dec 2012 16:53:44 -0800

Shortest answer: use bundler.

Long answer: repackage chef to include all its dependencies.

Both solutions are not trivial and frequently not worth it.

-- 
Erik Hollensbe
Sent with Sparrow

On Monday, December 24, 2012 at 4:49 PM, Maven User wrote:

Josh and co - thanks for all the tips!

I upgraded each dependency to a particular version of postgres (2.1.0) and am no longer specifying the distribution - works perfectly!

How do I future proof myself?  I don't want to get sidelined in the future because some unrelated gem changes (and borks all my bootstrapping)?




On Mon, Dec 24, 2012 at 7:18 PM, Maven User < " target="_blank"> > wrote:
Crap - one sec - failed to upload my latest cookbook with pgswl version change...


On Mon, Dec 24, 2012 at 7:15 PM, Maven User < " target="_blank"> > wrote:
Crap - that's broken in a different way:

[Mon, 24 Dec 2012 16:12:30 -0800] INFO: Processing gem_package[pg] action install (postgresql::client line 40)
 [Mon, 24 Dec 2012 16:12:40 -0800] ERROR: gem_package[pg] (postgresql::client line 40) has had an error
[Mon, 24 Dec 2012 16:12:40 -0800] ERROR: gem_package[pg] (/var/chef/cache/cookbooks/postgresql/recipes/client.rb:40:in `from_file') had an error:
 gem_package[pg] (postgresql::client line 40) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
 ---- Begin output of /opt/chef/embedded/bin/gem install pg -q --no-rdoc --no-ri -v "0.14.1" ----
 STDOUT: Building native extensions.  This could take a while...
 STDERR: ERROR:  Error installing pg:
	ERROR: Failed to build gem native extension.

       /opt/chef/embedded/bin/ruby extconf.rb
 checking for pg_config... yes
 Using config values from /usr/bin/pg_config
 checking for libpq-fe.h... yes
 checking for libpq/libpq-fs.h... yes
 checking for pg_config_manual.h... yes
 checking for PQconnectdb() in -lpq... no
 checking for PQconnectdb() in -llibpq... no
 checking for PQconnectdb() in -lms/libpq... no
 Can't find the PostgreSQL client library (libpq)
 *** extconf.rb failed ***
 Could not create Makefile due to some reason, probably lack of
 necessary libraries and/or headers.  Check the mkmf.log file for more
 details.  You may need configuration options.


I'm struggling :-/

On Mon, Dec 24, 2012 at 12:28 PM, Joshua Timberman < " target="_blank"> > wrote:
On 12/24/12 10:20 AM, "Maven User" < " target="_blank"> > wrote:


>WOAH - ok - so before I start celebrating - do I need to specify -d
>chef-full or just nothing at all?

You don't need -d chef-full, it's the default.









Archive powered by MHonArc 2.6.16.

§