With this user-data and meta-data like this:
#cloud-config users: - default - name: user1 sudo: ALL=(ALL) NOPASSWD:ALL lock_passwd: false passwd: $6$rounds=4096$ftDwPSSVP0Jq9$4hXIcusbcZMxbSnfv8D/vp/bdzgVAds9qGcFjeBvv1Ths9mLiNPKAxW8/1zOtGLPKsEcorUOzl16hn9jxswDz0
instance-id: iid-local01 local-hostname: cloudimg
I get the first log after inserting the USB drive and rebooting the device. Then if I change the user-data and meta-data on the drive to this:
#cloud-config users: - default - name: user2 sudo: ALL=(ALL) NOPASSWD:ALL lock_passwd: false passwd: $6$rounds=4096$ftDwPSSVP0Jq9$4hXIcusbcZMxbSnfv8D/vp/bdzgVAds9qGcFjeBvv1Ths9mLiNPKAxW8/1zOtGLPKsEcorUOzl16hn9jxswDz0
instance-id: iid-local02 local-hostname: cloudimg
and reboot again I get the second log. These are both from /var/log/cloud-init.log on the system.
With this user-data and meta-data like this:
#cloud-config 4096$ftDwPSSVP0 Jq9$4hXIcusbcZM xbSnfv8D/ vp/bdzgVAds9qGc FjeBvv1Ths9mLiN PKAxW8/ 1zOtGLPKsEcorUO zl16hn9jxswDz0
users:
- default
- name: user1
sudo: ALL=(ALL) NOPASSWD:ALL
lock_passwd: false
passwd: $6$rounds=
instance-id: iid-local01
local-hostname: cloudimg
I get the first log after inserting the USB drive and rebooting the device. Then if I change the user-data and meta-data on the drive to this:
#cloud-config 4096$ftDwPSSVP0 Jq9$4hXIcusbcZM xbSnfv8D/ vp/bdzgVAds9qGc FjeBvv1Ths9mLiN PKAxW8/ 1zOtGLPKsEcorUO zl16hn9jxswDz0
users:
- default
- name: user2
sudo: ALL=(ALL) NOPASSWD:ALL
lock_passwd: false
passwd: $6$rounds=
instance-id: iid-local02
local-hostname: cloudimg
and reboot again I get the second log. These are both from /var/log/ cloud-init. log on the system.