On Monday, July 22, 2013 at 10:15 AM, Dorian Jaminais wrote:
default["myapp"]["truc"] = "YYY"default["myapp"]["conf"] = "XXX"default.rbFor this reason I'd like to define 'default' attributes in the default attribute file and then have one attribute file per part of my application. Atribute would be organized this way :Most of thetime the configuration of both will be identical but this may not be always true.I have an application split in two components, each requiring its configuration.Here is my use case :Ohai Chefs !Is there a way in an attribute file to reuse attributes from another file ?
part1.rb
default["myapp"]["part1"]["conf"] = "XXX1"
#default["myapp"]["part1"]["truc"] = "YYY" < I want it to default to this value when not explicitly set
part2.rb
default["myapp"]["part2"]["conf"] = "XXX2"
Is there a way to achieve this ?At the moment I am using global variable to pass information from one file to the other but this seams ugly to me.
Archive powered by MHonArc 2.6.16.