[chef] Re: Re: guards for include_recipe


Chronological Thread 
  • From: Felix Gläske < >
  • To:
  • Subject: [chef] Re: Re: guards for include_recipe
  • Date: Thu, 16 Oct 2014 19:15:03 +0200

I already thought about the same way, but this feels somehow to hacky/not right to me.
I think the right approach would be to convert it to a LWRP, as To msuggested

" type="cite">
" photoname="Nguyen, Dang" src="jpgLjgttSTHZS.jpg" name="postbox-contact.jpg" height="25px" width="25px">
16 Oct 2014 16:52
Would something like this work for you?

require "net/http²
url = "URI.parse(³http://www.google.com/²)
req = Net::HTTP.new(url.host, url.port)
res = req.request_head(url.path)

include_recipe ³my_stuff² if res.code == ³200"




Archive powered by MHonArc 2.6.16.

§