2023-12-25 14:41:48 +00:00
|
|
|
# vim: ft=yaml
|
|
|
|
# cloud-config
|
|
|
|
|
|
|
|
users:
|
|
|
|
- default
|
|
|
|
|
|
|
|
disable_root: true
|
|
|
|
mount_default_fields: [~, ~, 'auto', 'defaults,nofail,x-systemd.requires=cloud-init.service,_netdev', '0', '2']
|
|
|
|
resize_rootfs_tmp: /dev
|
|
|
|
ssh_pwauth: false
|
|
|
|
preserve_hostname: false
|
|
|
|
ssh_deletekeys: true
|
|
|
|
ssh_genkeytypes: ['rsa', 'ecdsa', 'ed25519']
|
|
|
|
syslog_fix_perms: ~
|
|
|
|
disable_vmware_customization: false
|
2023-12-25 15:15:10 +00:00
|
|
|
timezone: Europe/Copenhagen
|
2023-12-25 14:41:48 +00:00
|
|
|
package_update: true
|
|
|
|
package_upgrade: true
|
|
|
|
package_reboot_if_required: true
|
|
|
|
|
|
|
|
device_aliases:
|
|
|
|
swap_disk: /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1
|
|
|
|
data_disk: /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi2
|
|
|
|
disk_setup:
|
|
|
|
swap_disk:
|
|
|
|
table_type: gpt
|
|
|
|
layout: true
|
|
|
|
overwrite: false
|
|
|
|
data_disk:
|
|
|
|
table_type: gpt
|
|
|
|
layout: true
|
|
|
|
overwrite: false
|
|
|
|
fs_setup:
|
|
|
|
- label: swap
|
|
|
|
filesystem: swap
|
|
|
|
device: swap_disk.1
|
|
|
|
overwrite: false
|
|
|
|
- label: data
|
|
|
|
filesystem: xfs
|
|
|
|
device: data_disk.1
|
|
|
|
overwrite: false
|
|
|
|
mounts:
|
|
|
|
- ['swap_disk.1', 'none', 'swap', 'sw', '0', '0']
|
|
|
|
- ['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:
|
2023-12-25 15:54:39 +00:00
|
|
|
renderers: ['sysconfig']
|
|
|
|
activators: ['network-manager']
|