Files
script-collection/bash/kvm-deploy/user-data/alma-node.yml

45 lines
1.1 KiB
YAML
Raw Normal View History

2026-02-27 04:59:56 +00:00
#cloud-config
users:
- name: your-user
lock_passwd: false
passwd:
groups: wheel
ssh_authorized_keys:
-
shell: /bin/bash
sudo: ['ALL=(ALL) NOPASSWD: ALL']
write_files:
- path: /etc/ssh/sshd_config
content: |
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
PasswordAuthentication no
PermitRootLogin no
StrictModes yes
PubkeyAuthentication yes
IgnoreRhosts yes
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
PrintLastLog yes
TCPKeepAlive yes
AcceptEnv LANG LC_*
UsePAM yes
prefer_fqdn_over_hostname: true
package_update: true
package_upgrade: true
packages:
- plocate
- unzip
- tar
- policycoreutils-python-utils
- rsync
- nfs-utils
- vim