At the moment Chef seems (afaict, but I haven’t yet digested all the
spec’s and code) to accept only an exact match in the following:
“recipe[apache2]” in ~/chef-repo/roles/*
This then is used to load the ~/chef-repo/cookbook/apache2
Any chance of accepting RegExp, ala string?
loads the cookbook
Since folder names are being used to infer cookbook names, then in
case of a multiple match, the most recently changed folder is
The value returned by the regexp, apache2 in this case is the
’internal-name’ name used
So this would not need to be changed inside the cookbook:
Thoughts and comments on opening a feature request for this.
I acknowledge the downside that using the String regexp syntax makes
recipe look like it is a string rather than a hash/array - a small
price for the additional flexibility to brings?
πόλλ’ οἶδ ἀλώπηξ, ἀλλ’ ἐχῖνος ἓν μέγα
[The fox knows many things, but the hedgehog knows one big thing.]
Archilochus, Greek poet (c. 680 BC – c. 645 BC)