!!!!!At kell nevezni yaml-re a fajlt!!!!! Az egyenloseg jelekkel egyutt torolheto ez a resz! ========================= #cloud-config preserve_hostname: false manage_etc_hosts: true users: - name: feketebt groups: sudo shell: /bin/bash lock_passwd: false passwd: "$6$v4pWfv2/1rR24SDS$TE4yxcNddNZTa/N50AmN5onikC6rfG1pZS2f1aN4TzWY5X3pfhlDNENUxOxTVImakdITSA4la8r3zW/Y8HB5S/" ssh_authorized_keys: - ssh-rsa AAAAB3... - ssh-dss AAAAB3... - ssh-ed25519 AAAA... package_update: true package_upgrade: true package_reboot_if_required: true locale: hu_HU.UTF-8 timezone: Europe/Budapest packages: - qemu-guest-agent - debconf-utils - keyboard-configuration - console-setup - rsyslog - dnsutils write_files: - path: /etc/default/keyboard permissions: "0644" content: | XKBMODEL="pc105" XKBLAYOUT="hu" XKBVARIANT="nodeadkeys" XKBOPTIONS="" BACKSPACE="guess" - path: /etc/systemd/journald.conf.d/persistent.conf permissions: "0644" content: | [Journal] Storage=persistent SystemMaxUse=200M RuntimeMaxUse=100M runcmd: - mkdir -p /var/log/journal - systemctl restart systemd-journald - setupcon - sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config - sed -i 's/^#\?ChallengeResponseAuthentication.*/ChallengeResponseAuthentication no/' /etc/ssh/sshd_config - systemctl reload ssh - systemctl enable qemu-guest-agent - systemctl start qemu-guest-agent - systemctl enable --now rsyslog