Remove unneeded stuff and add seed_random

This commit is contained in:
Sam A. 2023-12-25 17:42:25 +01:00
parent c3f9ce77ea
commit f63b9311ec
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -1,52 +1,39 @@
# 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
timezone: Europe/Copenhagen
package_update: true
package_upgrade: true
package_reboot_if_required: true
random_seed:
file: /dev/urandom
data: XeQ5b5qm9fAs5mkeuphgUfaUPVCa9WCmsbrbLqrijcNjsSL9uFb2S94k4dn3uSQg
command: ['sh', '-c', 'dd if=/dev/hwrng of=$RANDOM_SEED_FILE']
command_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
data_disk: /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1
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:
- seed_random
- disk_setup
- mounts
- set_hostname