Using package managers create and rollback system state
I have a server which is meant to test multiple deployment scenarios all
driven by packages installed over RPMs.
Is there a way to abstract the RPMs in a system so that i can switch rpm
context? For example:
Test A:
postrgre -> postegresql 3.x ,
java -> sun jdk 5.x
hadoop version -> 1.X
python version -> 3.0
Test B:
psql = postgresql 2.x
java -> sun jdk
hadoop version -> 2.X
python version -> 2.7
So clearly, what is needed is
1) Some perfect snapshot of system state before installing RPMs.
2) Some way to create Test environment A from RPMs
3) A way to roll back to (1) after running Test A
4) Some way to create Test environment B from RPMs
5) A way to again roll back to (1) to start the system over.
One option is virtualization, however this environment needs to run on
real hardward. Another option is raw shell scripts - but this doesn't
gaurantee universal recovery of raw, pure system state.
No comments:
Post a Comment