lab-ansible/cloud-init/proxmox.cfg
2024-02-04 16:10:17 +01:00

75 lines
1.4 KiB
YAML

# vim: ft=yaml
# cloud-config
disable_root: false
ssh_pwauth: false
preserve_hostname: false
ssh_deletekeys: true
ssh_genkeytypes: ['rsa', 'ecdsa', 'ed25519']
timezone: Europe/Copenhagen
device_aliases:
data_disk: /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1
disk_setup:
data_disk:
table_type: gpt
layout: true
overwrite: false
fs_setup:
- label: data
filesystem: xfs
device: data_disk.1
overwrite: false
mounts:
- ['data_disk.1', '/data', 'xfs', 'defaults', '0', '2']
runcmd:
- touch /etc/cloud/cloud-init.disabled
cloud_init_modules:
- disk_setup
- mounts
- set_hostname
- update_hostname
- update_etc_hosts
- users-groups
- ssh
cloud_config_modules:
- ssh-import-id
- locale
- set-passwords
- timezone
- disable-ec2-metadata
- runcmd
cloud_final_modules:
- package-update-upgrade-install
- scripts-vendor
- scripts-per-once
- scripts-per-boot
- scripts-per-instance
- scripts-user
- ssh-authkey-fingerprints
- keys-to-console
- install-hotplug
- final-message
- power-state-change
system_info:
distro: rocky
default_user:
name: ansible
lock_passwd: true
gecos: Ansible User
groups: []
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
paths:
cloud_dir: /var/lib/cloud/
templates_dir: /etc/cloud/templates/
ssh_svcname: sshd
network:
renderers: ['sysconfig']
activators: ['network-manager']