[chef] Re: Re: Case statement with wildcards?


Chronological Thread 
  • From: ItsMikeE < >
  • To:
  • Subject: [chef] Re: Re: Case statement with wildcards?
  • Date: Tue, 5 Jul 2011 00:41:58 -0700 (PDT)

Thanks for the response.

A better approach than mine, as it makes the attributes available to all.

Just for completeness I got the following to work:

xx = case node[:fqdn]
when /primary/
  print "in primary"
when /secondary/
  print "in secondary"
when /dmz/
  print "in dmz"
else
  print "unknown"
end


  • [chef] Re: Re: Case statement with wildcards?, ItsMikeE, 07/05/2011

Archive powered by MHonArc 2.6.16.

§