data_bag_item isn't available within the context of attribute files. You can load the data bag in your recipe (rescuing a missing one) and then fall back to default attributes using the OR operator. Otherwise, you can load the data bag and set node attributes based on the contents of it early on in the recipe and then use the attributes normally later in the run. Either way, you may be able to accomplish your goals in a cleaner way. Can you explain further why you're using data bags over just setting node attributes explicitly as part of the bootstrap or within environment files? Sent from my iPhone
|
Archive powered by MHonArc 2.6.16.