- From: DV <
>
- To: "
" <
>
- Subject: [chef] gem sources chicken & egg problem
- Date: Wed, 8 Oct 2014 15:27:38 -0700
Hi guys,
Thought I'd get your advice on the following:
I have chef-client run fail on the initial (only) run due to host's default gem sources not having the version of gem chef-client is trying to install. To be more specific, it's passenger gem from passenger_apache2::source cookbook here:
gem_package "passenger" do
version node['passenger']['version']
end
The default gem sources on the host simply don't have passenger gem and/or its dependencies so of course it fails.
My goal is to make chef-client aware of an additional gem source at first run. So far I've tried the following:
execute 'add_rubygems.org_gemrepo' do
action :run
end
I see the code being executed on chef-client run, nevertheless, first chef-client run fails to find passenger gem. So there must be some caching going on that I need to override.
All further chef-client runs succeed, though.
So my question is, how can I make chef-cilent aware of additional gem sources on its very first run?
--
Best regards, Dmitriy V.
- [chef] gem sources chicken & egg problem, DV, 10/08/2014
Archive powered by MHonArc 2.6.16.