I want to setup a big amount of servers using cloning. After the initial image was applied, I want to run a configuration script. The cloning will be done through hard disk replication by the hardware vendor.
Steps:
- Hardware vendor builds new server
- Hardware ships with hard drives having the initial image
- Server is setup at final location
- Server boots.
- Server runs initial configuration script.
- Server reboots.
What are the approaches to implement step 5 and 6 meeting the requirements below?
- Ubuntu 12.04 LTS
- Script should start and run without user interaction when the machine is turned on.
- Script should run after all daemons started.
- Script should output status on console.
- Script should allow user input on error conditions.