2021-06-07 11:19:00 +00:00
|
|
|
#cloud-config
|
|
|
|
autoinstall:
|
|
|
|
version: 1
|
2021-06-07 12:58:00 +00:00
|
|
|
locale: en_US
|
2021-06-07 11:19:00 +00:00
|
|
|
keyboard:
|
|
|
|
layout: en
|
|
|
|
variant: us
|
|
|
|
network:
|
|
|
|
network:
|
|
|
|
version: 2
|
|
|
|
ethernets:
|
|
|
|
ens192:
|
|
|
|
dhcp4: true
|
|
|
|
storage:
|
|
|
|
layout:
|
2021-06-23 11:05:17 +00:00
|
|
|
name: direct
|
2021-06-07 11:19:00 +00:00
|
|
|
identity:
|
|
|
|
hostname: packer-template
|
2021-06-07 12:54:22 +00:00
|
|
|
username: ubuntu
|
2022-04-25 07:51:31 +00:00
|
|
|
password: $6$RdtJDMbG4TPPGe6C$H3JaBhH3G4/Ywp7c/FOUBnxaQfXMp2ogIzCFAbw4cAFt4pErNkxdmTca3i1zUW7dNk00sk7tcIZ1Hu0uf/f2O0
|
|
|
|
# password: $6$rounds=4096$ZKfzRoaQOtc$M.fhOsI0gbLnJcCONXz/YkPfSoefP4i2/PQgzi2xHEi2x9CUhush.3VmYKL0XVr5JhoYvnLfFwqwR/1YYEqZy/
|
2021-06-07 11:19:00 +00:00
|
|
|
ssh:
|
|
|
|
install-server: yes
|
|
|
|
allow-pw: true
|
|
|
|
user-data:
|
|
|
|
disable_root: false
|
2021-06-07 12:54:22 +00:00
|
|
|
late-commands:
|
|
|
|
- echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/ubuntu
|