- From: Steven Barre <
>
- To: "
" <
>
- Subject: [chef] Chef Pattern for renaming things
- Date: Wed, 31 Jul 2013 11:38:29 -0700
- Organization: Real Estate Webmasters
What is the best way to handle renaming things?
In my case I've got domains listed in a data bag and use the apache2
cookbook to create / manage them.
If I need to rename a domain, but keep all its files around, how best
would I do this in an idempotent way?
Should I store the old and current domain name in the data bag and check
if they are different and if so create the new domain, move files, then
delete the old?
I'm more looking for a pattern since I may need to rename databases and
users as well.
--
=================================================
Steven Barre, RHCE, ZCE, MCP
Systems Administrator / Programmer
Real Estate Webmasters - 250-753-9893
==================================================
- [chef] Chef Pattern for renaming things, Steven Barre, 07/31/2013
Archive powered by MHonArc 2.6.16.