Cleanup cloud-init and change default cloud-init user
closes #71 (closed) #74 (closed)
This MR brings multiple changes toward cloud-init:
- change the
default_userbuiltin user for all flavors. This value is specified as input via a env vars of kanod,DIB_CLOUD_INIT_DEFAULT_USERNAME, and set by default tonode-admin. - On Ubuntu:
- Revert the external installation of upstream
cloud-initto the one provided by the Ubuntu cloud repo. - Delete from element
cis-remediationthenode-adminuser incloud.cfgfile because it's redundant with what the elementkanod-cloud-initdoes here. Moreover the change in file/etc/sudoers.d/90-cloud-init-usersis useless because it does not exist Vanilla and generated bycloud-initbecause default_user is defined bysudo: ["ALL=(ALL) NOPASSWD:ALL"].
- Revert the external installation of upstream
- On Opensuse:
- Install the SuSE packages
cloud-initandcloud-init-config-suse(repo main) to provide supported files - Patch the version of
cloud-init-config-suseto a one supporting the SuSE OS (last one contain wrong content)
- Install the SuSE packages
- Minor fix for
python3-pipwhich was installed in a bad waykanod-cloud-initelement instead a correct onekanod-configure
Validated with ubuntu hardened, Opensuse plain and hardened using the default user node-admin.
Edited by Thomas Monguillon