Chef read configuration from external file and use it in recipe


#1

Hi All,

a part of my app deployment requires to read a property file from perforce
file and then use different values for some processing inside my chef
recipe.

I can download the file and keep it somewhere on chef server, but how do i
pass this file to chef clients , as this file is needed to read the config
details .

I believe most of you have done something or the else like this,

Please advise.

Thanks
Manoj


#2

If it is static you can use templates. Look template resources in Chef
documentation. If you want I can send you an example later.
Em 29/10/2013 16:03, “Manoj Thakkar” manoj.thakkar@gmail.com escreveu:

Hi All,

a part of my app deployment requires to read a property file from perforce
file and then use different values for some processing inside my chef
recipe.

I can download the file and keep it somewhere on chef server, but how do i
pass this file to chef clients , as this file is needed to read the config
details .

I believe most of you have done something or the else like this,

Please advise.

Thanks
Manoj