[chef] Avoiding CHEF-3694


Chronological Thread 
  • From: Alex Kiernan < >
  • To:
  • Subject: [chef] Avoiding CHEF-3694
  • Date: Mon, 10 Jun 2013 12:29:37 +0100

What's the right way to avoid CHEF-3694 for the simple case of prerequiste packages?

I'm about to build an oracle instantclient cookbook so I can fold it into the database cookbook, but I want chrpath installed so I can fix up the path in sqlplus.

I could do:

begin
  resources('package[chrpath]')
rescue Chef::Exceptions::ResourceNotFound
  package 'chrpath'
end

But it feels kinda ugly... am I missing something?

--
Alex Kiernan



Archive powered by MHonArc 2.6.16.

§