- From: "Van Fossan,Randy" <
>
- To: <
>
- Subject: [chef] RE: Re: Most efficient way to handle text in config files (without a template)
- Date: Fri, 27 Jan 2012 13:15:12 -0500
I'll look into using include(s). I am not sure if I can though.
-----Original Message-----
From: Jake Vanderdray
[mailto:
Sent: Friday, January 27, 2012 9:58 AM
To:
Subject: [chef] Re: Most efficient way to handle text in config files
(without a template)
Does this config file allow you to do includes? If you can separate the chef
values into a separate file and include that, you'll be able to use a
template and that's a lot easier/cleaner.
Jake.
On Thu, Jan 26, 2012 at 3:01 PM, Van Fossan,Randy
<
>
wrote:
>
Anyone know the best way (most efficient) to handle text entries in
>
files without using Templates? Ensuring multiple entries exist in a
>
file from a cookbook (array) attribute. If they are overwritten,
>
they would be re-added.
>
>
>
>
I know how to do this with perl and bash, but it would be a little
>
more resource intensive than I would like.
>
>
>
>
The configuration file in question is changing a few times a week
>
under control of a process that I cannot modify, but I still need to
>
ensure that certain information is in the resultant configuration file.
>
>
>
>
Thanks to everyone who has been helping this newbie along..
>
>
Randy
Archive powered by MHonArc 2.6.16.