- From: Andrew Hodgson <
>
- To: "
" <
>
- Subject: [chef] Chef newbie: Web.config manipulations
- Date: Tue, 22 Sep 2015 15:27:58 +0000
- Accept-language: en-GB, en-US
- Authentication-results: spf=none (sender IP is )
;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:23
Hi,
Just wondering if there is any tutorial out there that goes through modifying
Windows .net .config files using Chef whereby the config file is tokenised in
the following way:
<connectionStrings>
<add name="MyConnectionString" connectionString="Data
Source=__AppDBServer__;Initial Catalog=__AppDatabase__;User
ID=__AppDBUserID__;Password=__AppDBPassword__"
providerName="System.Data.SqlClient" />
</connectionStrings>
I want a range of tokens which are unique across the different environments
and can be used across apps, and the system will replace the relevant values
with the actual values. I have used DSC XTokenize module to do similar in
the past, but I want to see if I can do it in Chef, possibly using data bags
to store the information.
Like I say I feel I am possibly missing something as there must be a tutorial
on it somewhere but not found anything specific, hopefully you guys can prove
me wrong!
Thanks,
Andrew.
- [chef] Chef newbie: Web.config manipulations, Andrew Hodgson, 09/22/2015
Archive powered by MHonArc 2.6.16.