root@tmplt-suse:~ # ./provision_new_server.sh
Enter new host information.
Hostname [tmplt-suse.skyfall.work]: shq-susetest.skyfall.work
IP address (CIDR format) [172.23.2.6/16]: 172.23.1.142/16
Review these changes carefully!
+ CURRENT PENDING
Hostname: tmplt-suse.skyfall.work shq-susetest.skyfall.work
Address: 172.23.2.6 172.23.1.142
CIDR: 172.23.2.6/16 172.23.1.142/16
Are you sure you want to apply the changes above? (y/N)y
Continuing...
Update hostname... DONE
Update /etc/hosts... DONE
Update Zabbix Agent... DONE
Update IP address... OpenSuSE... DONE
Found old keys. Removing... DONE
Regenerating host keys... DONE
Removing this script from /root... DONE
(This script can still be found in /opt/prov/bin)
Reboot to apply all changes.
Would you like to reboot now? (y/N)y
Rebooting...
Connection to 172.23.2.6 closed by remote host.
Connection to 172.23.2.6 closed.
Verified afterward via guest additions info in ProxMox.
Successful output:
```
root@tmplt-suse:~ # ./provision_new_server.sh
Enter new host information.
Hostname [tmplt-suse.skyfall.work]: shq-susetest.skyfall.work
IP address (CIDR format) [172.23.2.6/16]: 172.23.1.142/16
Review these changes carefully!
+ CURRENT PENDING
Hostname: tmplt-suse.skyfall.work shq-susetest.skyfall.work
Address: 172.23.2.6 172.23.1.142
CIDR: 172.23.2.6/16 172.23.1.142/16
Are you sure you want to apply the changes above? (y/N)y
Continuing...
Update hostname... DONE
Update /etc/hosts... DONE
Update Zabbix Agent... DONE
Update IP address... OpenSuSE... DONE
Found old keys. Removing... DONE
Regenerating host keys... DONE
Removing this script from /root... DONE
(This script can still be found in /opt/prov/bin)
Reboot to apply all changes.
Would you like to reboot now? (y/N)y
Rebooting...
Connection to 172.23.2.6 closed by remote host.
Connection to 172.23.2.6 closed.
```
Verified afterward via guest additions info in ProxMox.
Successful output:
Verified afterward via guest additions info in ProxMox.
looksgood!
ff3d1190c6
into master 4 years agoReviewers
ff3d1190c6
.