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,80 +1,67 @@
# vim: ft=yaml # vim: ft=yaml
# cloud-config # cloud-config
users:
- default
disable_root: true 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 ssh_pwauth: false
preserve_hostname: false preserve_hostname: false
ssh_deletekeys: true ssh_deletekeys: true
ssh_genkeytypes: ['rsa', 'ecdsa', 'ed25519'] ssh_genkeytypes: ['rsa', 'ecdsa', 'ed25519']
syslog_fix_perms: ~
disable_vmware_customization: false
timezone: Europe/Copenhagen timezone: Europe/Copenhagen
package_update: true
package_upgrade: true random_seed:
package_reboot_if_required: true file: /dev/urandom
data: XeQ5b5qm9fAs5mkeuphgUfaUPVCa9WCmsbrbLqrijcNjsSL9uFb2S94k4dn3uSQg
command: ['sh', '-c', 'dd if=/dev/hwrng of=$RANDOM_SEED_FILE']
command_required: true
device_aliases: 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-scsi1
data_disk: /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi2
disk_setup: disk_setup:
swap_disk:
table_type: gpt
layout: true
overwrite: false
data_disk: data_disk:
table_type: gpt table_type: gpt
layout: true layout: true
overwrite: false overwrite: false
fs_setup: fs_setup:
- label: swap
filesystem: swap
device: swap_disk.1
overwrite: false
- label: data - label: data
filesystem: xfs filesystem: xfs
device: data_disk.1 device: data_disk.1
overwrite: false overwrite: false
mounts: mounts:
- ['swap_disk.1', 'none', 'swap', 'sw', '0', '0']
- ['data_disk.1', '/data', 'xfs', 'defaults', '0', '2'] - ['data_disk.1', '/data', 'xfs', 'defaults', '0', '2']
runcmd: runcmd:
- touch /etc/cloud/cloud-init.disabled - touch /etc/cloud/cloud-init.disabled
cloud_init_modules: cloud_init_modules:
- disk_setup - seed_random
- mounts - disk_setup
- set_hostname - mounts
- update_hostname - set_hostname
- update_etc_hosts - update_hostname
- users-groups - update_etc_hosts
- ssh - users-groups
- ssh
cloud_config_modules: cloud_config_modules:
- ssh-import-id - ssh-import-id
- locale - locale
- set-passwords - set-passwords
- timezone - timezone
- disable-ec2-metadata - disable-ec2-metadata
- runcmd - runcmd
cloud_final_modules: cloud_final_modules:
- package-update-upgrade-install - package-update-upgrade-install
- scripts-vendor - scripts-vendor
- scripts-per-once - scripts-per-once
- scripts-per-boot - scripts-per-boot
- scripts-per-instance - scripts-per-instance
- scripts-user - scripts-user
- ssh-authkey-fingerprints - ssh-authkey-fingerprints
- keys-to-console - keys-to-console
- install-hotplug - install-hotplug
- final-message - final-message
- power-state-change - power-state-change
system_info: system_info:
distro: rocky distro: rocky