#cloud-config # vim: syntax=yaml users: - name: nicolas gecos: Nicolas MASSE groups: wheel lock_passwd: false # Generate encrypted password with "openssl passwd -6" #passwd: $6$abc...xyz.0 ssh_authorized_keys: - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPR1tt58X0+vbvsCR12gMAqr+g7vjt1Fx/qqz9EiboIs nicolas.masse@itix.fr - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFW62WJXI1ZCMfNA4w0dMpL0fsldhbEfULNGIUB0nQui nmasse@redhat.com packages: - net-tools - hdparm - iptraf - iotop - vim-enhanced - tmux - rsync - tree - unzip - tar - tcpdump - telnet - strace - bind-utils runcmd: # Enable KVM virsh console access - [ "systemctl", "enable", "serial-getty@ttyS0.service" ] - [ "systemctl", "start", "--no-block", "serial-getty@ttyS0.service" ] - [ "sed", "-i.post-install", "-e", "s/PasswordAuthentication yes/PasswordAuthentication no/", "/etc/ssh/sshd_config" ] - [ "systemctl", "restart", "sshd" ] - [ "sed", "-i.post-install", "-e", "s/^%wheel\tALL=(ALL)\tALL/%wheel ALL=(ALL) NOPASSWD: ALL/", "/etc/sudoers" ]