[chef] more readable/writtable attributes


Chronological Thread 
  • From: "Florian Hehlen" < >
  • To: < >
  • Subject: [chef] more readable/writtable attributes
  • Date: Fri, 23 Aug 2013 12:56:29 +0200

Hi,

 

Having worked with other bespoke deployment systems I really appreciate how attributes are neatly implemented in Chef. That said I find them really cumbersome to both read and write. At the moment I tend to write large blocks at the top of my recipes which look something like this:

 

foo =node['app']['foo']

bar =node['app']['bar']

baz =node['app']['bar'] + ‘/’ + node['app']['foo']

 

This works out fine but creates one level of indirection that I really wish I could avoid. Does anyone have any good coding practices or are there some tricks I am not aware of to have more writable/readable attributes?

 

Cheers,

florian



  • [chef] more readable/writtable attributes, Florian Hehlen, 08/23/2013

Archive powered by MHonArc 2.6.16.

§