[chef] override_attributes confusion


Chronological Thread 
  • From: Benoit Caron < >
  • To:
  • Subject: [chef] override_attributes confusion
  • Date: Thu, 22 Sep 2011 15:33:28 -0400

Hello,

I'm a little confused with the usage of override_attributes in a role DSL file not taking effect.

I have this in my role file (ruby-DSL-style):

override_attributes "apache2" => { "listen_ports" => [ "80" ], "max_children" => "50" }

I can see these configs taking effect in the WebUI (or knife node show nodename -a apache2), but the ports.conf file still show configs for 443, even after deleting the file before a chef-client runs to make sure it's re-rewritten.

Is there something I need to do in my cookbook recipes to activate that? For now, I'm only doing the include_recipe and subsequent web_app calls.

Thanks for any tips

Benoit



Archive powered by MHonArc 2.6.16.

§