[chef] What does this `force` option does that is in the apps databag?


Chronological Thread 
  • From: Sachin Sagar Rai < >
  • To: chef < >
  • Subject: [chef] What does this `force` option does that is in the apps databag?
  • Date: Sat, 17 Mar 2012 21:05:10 +0545

Hi chefians!

In the standard application cookbook's rails recipe, the following is defined.

    deploy_revision app['id'] do
      revision app['revision'][node.chef_environment]
      repository app['repository']
      ......
      action app['force'][node.chef_environment] ? :force_deploy : :deploy
      ssh_wrapper "#{app['deploy_to']}/deploy-ssh-wrapper" if app['deploy_key']
      shallow_clone true
      ......
    end
    
And this values are passed from the apps databag:

    ....
    "force": {
      "production": false, "development": true, "test": false
    },
    ....
    
@sean_horn from Opscode said: `force` feeds into the chef_deploy resource.

But I was not clear enough.

Can someone explain with a use case what does that `feeds into the chef_deploy resource` means?

And what does that `shallow_clone true` does in the above defined `deploy_revision app['id'] do.....` mean?

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




Archive powered by MHonArc 2.6.16.

§