I have a centOS5.4 server set that I have a "build script" for. The server runs as a webserver that runs apache+PHP for our proprietary app.
The build script, basically does a kickstart installation of the base OS and libraries that I need. I then have to go in and copy over the custom apache and PHP binaries that are built for our environment. Finally, I copy over our source code repository.
I have a couple problems with this, and would like advice on improving it:
1) If I build a new server, I want everything to be the same as the other servers. But at the time of install on the other servers I did an immediate yum update. If I do that currently on the new server, all kinds of libraries will be different.
2) Manually copying everything sucks. I'm about to build a shell script that will rscync and scp all the appropriate source code and config files, but I want to see if there is a better way first.
3) It would be ideal to create a disk dump image of the hard drive, then just DD that right onto the new server. BUT, for several servers, I am using software raid in mirror mode. Also, the hardware is slightly different. Does this matter? Will the mirror mode raid config just get picked up and rebuild the raid config on the second disk after I come back from boot? Will the other server hardware conflict with my base install?
Hopefully, someone comes out of left field here and just says, "No idiot, just user server clone enterprise 2k ++ ;) ". I would love that product. Thanks for your answers in advance.