Added building Ubuntu 20.04 template
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
vcenter_datacenter = "DC01"
|
||||
vcenter_cluster = "Cluster01"
|
||||
vcenter_host = "esxi8-01.lab.loc"
|
||||
vcenter_folder = "VLAN-0221"
|
||||
vcenter_host = "esxi8-02.lab.loc"
|
||||
vcenter_folder = "z-Templates"
|
||||
vcenter_datastore = "Cluster01-LUN02"
|
||||
|
||||
//vm_name = "z-debian-packer-vm"
|
||||
|
@ -27,6 +27,7 @@ sudo echo "#!/bin/sh -e
|
||||
#
|
||||
# By default this script does nothing.
|
||||
|
||||
|
||||
exit 0
|
||||
" > /etc/rc.local
|
||||
|
||||
|
@ -87,7 +87,7 @@ build {
|
||||
|
||||
provisioner "shell-local" {
|
||||
inline = [
|
||||
"ansible-playbook ~/ansible/playbooks/os-linux-prep-default.yml -l packer-templ -e hosts_target=packer-templ -e ansible_host=${build.Host} -e connection_username=${var.connection_username} -e connection_ssh_private_key_file=${var.connection_ssh_private_key_file}"
|
||||
"ansible-playbook ~/ansible/playbooks/os-linux-prep-templ.yml -l packer-templ-debian-12-x64 -e hosts_target=packer-templ-debian-12-x64 -e ansible_host=${build.Host} -e connection_username=${var.connection_username} -e connection_ssh_private_key_file=${var.connection_ssh_private_key_file}"
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -85,12 +85,12 @@ d-i partman/mount_style select uuid
|
||||
# mkpasswd -s -m sha-512
|
||||
#
|
||||
d-i passwd/root-login boolean true
|
||||
d-i passwd/root-password-crypted password $6$Lij5f1fxeWVCjFbJ$GiWa3/zslkXwE4OfHeQrx/AlDPqhZR9pxSMxAvEZX8twF8ti7L6KM8wQWARzH.nQ99/BEmrjfDM/hwuczDJxY1
|
||||
d-i passwd/root-password-crypted password $6$5nLO9zRvoiQP7DdR$DYRibWnOQncB0qR9ugRSqAxWwVCPMfeRUBDdTuYxjh2FSZyRKtf57CG8ybGbFjVCAzJdcQg9qtJYhI.LhWhhe1
|
||||
# Create [ ansb-srv-it ] user account.
|
||||
d-i passwd/make-user boolean true
|
||||
d-i passwd/user-fullname string ansb-srv-it
|
||||
d-i passwd/username string ansb-srv-it
|
||||
d-i passwd/user-password-crypted password $6$Lij5f1fxeWVCjFbJ$GiWa3/zslkXwE4OfHeQrx/AlDPqhZR9pxSMxAvEZX8twF8ti7L6KM8wQWARzH.nQ99/BEmrjfDM/hwuczDJxY1
|
||||
d-i passwd/user-password-crypted password $6$5nLO9zRvoiQP7DdR$DYRibWnOQncB0qR9ugRSqAxWwVCPMfeRUBDdTuYxjh2FSZyRKtf57CG8ybGbFjVCAzJdcQg9qtJYhI.LhWhhe1
|
||||
|
||||
d-i user-setup/allow-password-weak boolean true
|
||||
d-i user-setup/encrypt-home boolean false
|
||||
|
Reference in New Issue
Block a user