Well, I’ve been fiddling around with SLES and openSUSE VMware templates. I know it’s a stupid idea when you have a PXE server from which you could install this in a matter of minutes (seriously the SLES PXE installation takes about 5 minutes).
However, when dealing with DMZ’s (yeah, they exist!) you usually don’t have any PXE servers there. So I decided to go with simple VMware templates (like we do with Windows already), but had to iron out a few kinks.
- There’s no way to run a set of scripts after the deployment scripts from VMware have been run
- The hostname isn’t changed everywhere (/etc/postfix/main.cf for example)
So of I went and wrote a short (70 line ..) init script, which will do exactly that.
You’ll also need to create a file (/etc/template), which’ll hold the template’s hostname and will be used for the comparison if VMware’s post-processing is already finished.