No, I didn't mean that. I meant user passwords/domains and the such. Turnkeylinux has a inithooks system which runs on firstboot, asking for root password, mysql root password, and any other application configuration needed. Also, it ask for the turnkeyhub's api key (if you have one and want to use the TKLBAM backup and migration system).
The answer to these questions can be preseeded if we could grab that info and create a file inside the filesystem with those answers in creation time. When inithooks run, it's going to detect the files and complete configuration without the need of user interaction. In the case of proxmox, which will not include a form to fill those answers before creating the VM, the approach could be setting defaults answers and creating the file when the user create the vm.
So far, in my tests, I:
- Can convert any turnkeylinux appliance from iso to an ovztemplate.
- Can deploy the template successfully in proxmox.
- Need to log into the console, and manually run inithooks (Why it doesn't run on startup?) to complete the appliance setup.
- Need to start manually mysql as it's always down (Why?)
So, to be more clear on the questions:
1. Is there any hook where I can add additional commands once the container is created, for example, to create default passwords/configurations file so that when the appliance start it ends up being fully configured?
2. Why does mysql/inithooks are not run during startup? (Any idea of what to check, or what info should I read?)
Thanks for the support.