Azure/aks-engine

Remove packer user at provisioning with AKS distro

CecileRobertMichon opened this issue · 2 comments

packer user is created as part of VHD Packer build process. We delete /home/packer during deployments but we don't remove the packer user. We should remove it for consistency.

On a VM built with AKS distro:

packer:x:1000:1000:Ubuntu:/home/packer:/bin/bash

Is this as simple as changing (making an addition after) this line to sudo deluser --remove-home packer? I noticed this on our machines and wanted to clean it up, I'm happy to fix here. Is there automation to validate the vhd builds/how does it work?

@alexeldeib correct that should be the only needed change. The --remove-home option should take care of removing /home/packer so we should even be able to replace that line. The VHD build pipeline runs on every PR that changes that file automatically so it will be easy to validate.