Virtualization: KVM
Is there any way to stop creating a new default user on newly created VM using Cloud-init template?
Right now on my centos cloud-init template created by me has this config
# nano /etc/cloud/cloud.cfg
Because of this every time when I create a new VM usign this template it's automatically create a user called "centos"
But I want the new VM only have root user and not any other user
So is there any way to do that?
I read lots of cloud-init tutorials but not able to find any solution for this
Is there any way to stop creating a new default user on newly created VM using Cloud-init template?
Right now on my centos cloud-init template created by me has this config
# nano /etc/cloud/cloud.cfg
Code:
system_info:
default_user:
name: centos
lock_passwd: false
gecos: Cloud User
groups: [adm, systemd-journal]
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
distro: rhel
paths:
cloud_dir: /var/lib/cloud
templates_dir: /etc/cloud/templates
ssh_svcname: sshd
Because of this every time when I create a new VM usign this template it's automatically create a user called "centos"
But I want the new VM only have root user and not any other user
So is there any way to do that?
I read lots of cloud-init tutorials but not able to find any solution for this