lab-ansible/cloud-init/proxmox.cfg

75 lines
1.4 KiB
INI
Raw Normal View History

2023-12-25 14:41:48 +00:00
# vim: ft=yaml
# cloud-config
2023-12-25 17:12:11 +00:00
disable_root: false
2023-12-25 14:41:48 +00:00
ssh_pwauth: false
preserve_hostname: false
ssh_deletekeys: true
ssh_genkeytypes: ['rsa', 'ecdsa', 'ed25519']
2023-12-25 15:15:10 +00:00
timezone: Europe/Copenhagen
2023-12-25 14:41:48 +00:00
device_aliases:
data_disk: /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1
2023-12-25 14:41:48 +00:00
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
2023-12-25 14:41:48 +00:00
cloud_config_modules:
- ssh-import-id
- locale
- set-passwords
- timezone
- disable-ec2-metadata
- runcmd
2023-12-25 14:41:48 +00:00
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
2023-12-25 14:41:48 +00:00
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']