[chef] How to override_attribtes per environment in roles file?


Chronological Thread 
  • From: Sachin Sagar Rai < >
  • To: " " < >
  • Subject: [chef] How to override_attribtes per environment in roles file?
  • Date: Thu, 1 Nov 2012 14:28:27 +0545

Following is the role file named ftpserver at roles/ftpserver.rb

    override_attributes(
      :vsftpd => {
        :chroot_users => ["ftpuser"]
      }
    )

One way is to override it from the environments/some-env.rb file.

But I think to look its values later, I'll have to re-map opening individual env files.

It would be better if I could just add it in the roles file per env like env_run_list.

Is this already in chef or any plugins?


-------------------------------------------
@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.

§