2019-05-05 19:23:45 +02:00
# deploy_vm
Script to deploy a VM based on debian template (in our case).
The script add IPAM entry for an IPv4 address and an IPv6 range, and deploy/configure a VM based on the VM conf file (see vm-template.conf).
# How to use
2019-05-05 19:31:50 +02:00
* Define your IPAM credentials in file "cred" and adjust parameters in "deploy_vm.conf" file
2019-05-05 19:23:45 +02:00
* Copy the VM conf file template : cp vm-template.conf vm-user123.conf
* Adjust all parameters in new file vm-user123.conf
2019-05-05 19:31:50 +02:00
* WARNING : if the SSH public key isn't correct, nobody would be able to log in the VM after deploy.
2019-09-08 15:40:52 +02:00
* Run the script : ./deploy_vm.sh vm-user123.conf
2019-05-05 19:23:45 +02:00
# If problems
2019-05-05 19:31:50 +02:00
* If the script fail and already do updates in IPAM or on the VM, you can manually finish the deploy OR delete IPAM entries (1 IPv4 and 1 IPv6 range), delete the VM, rectify to avoid the problem and retry deploy
2019-05-05 19:23:45 +02:00
# To do
2019-09-09 15:26:14 +02:00
* Variabilize some parameters like adminsys e-mail address, ...
2019-05-05 19:23:45 +02:00
* Verify if VM conf file parameters are numbers before test the interval (actually in the same line)
2019-05-05 19:31:50 +02:00
* Verify deploy_vm.conf parameters