[chef] How to discard the deploy_revision block to not execute in php application cookbook?


Chronological Thread 
  • From: Sachin Sagar Rai < >
  • To: chef < >
  • Subject: [chef] How to discard the deploy_revision block to not execute in php application cookbook?
  • Date: Wed, 18 Jan 2012 20:24:57 +0545

I'm following the Data Bag driven way for installing a wordpress app looking at the php-quick-start guide as reference.

So far I've been trying to understand the mapping between the data-bag items and the default attributes file of the cookbook.

On thing I'm stuck on is, I've setup the role for base, database_master, ...

The only difference is that I've been trying to install bare wordpress but using the php application recipe of opscode.

But at the last section of `cookbooks/application/recipes/php.rb`, it has a git version of deploying style as follows:

    ## Then, deploy
    deploy_revision app['id'] do
      revision app['revision'][node.chef_environment]
      repository app['repository']
      user app['owner']
      group app['group']
      ...
      ...
      
I've created my customized wordpress cookbook and when I run it, I don't want to run that `deploy_revision ...` block.

So, how can I avoid running that block from my cookbook? Something like overriding the `rake db:migrate` cmd of ActiveRecord with a blank rake task while using `Mongoid` rubygem wrapper for nosql db Mongodb?

-------------------------------------------
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.tumblr.com
Sent with Sparrow



  • [chef] How to discard the deploy_revision block to not execute in php application cookbook?, Sachin Sagar Rai, 01/18/2012

Archive powered by MHonArc 2.6.16.

§