On Monday, April 23, 2012 at 10:02 PM, Joshua Timberman wrote:
Hello,On Mon, Apr 23, 2012 at 7:20 AM, Millisami < "> > wrote:So, how to pass the data_bag items to this refactored dsl of applicationcookbook?You can load the data bag item directly and then use values from it topopulate the parameters in the new application resource(s). Somethinglike this:app = data_bag_item(:apps, "my_app")application app['id'] dopath app['deploy_to']owner app['owner']group app['group']repository app['repository']reivision app['revision']migrate app['migrate']packages app['packages'].keysrails dodatabase dodatabase app['database']['name']username app['database']['username']password app['database']['password']endendend--Opscode, IncJoshua Timberman, Technical Program ManagerIRC, Skype, Twitter, Github: jtimberman
Archive powered by MHonArc 2.6.16.