Remove unneeded stuff and add seed_random
This commit is contained in:
parent
c3f9ce77ea
commit
f63b9311ec
29
cloud.cfg
29
cloud.cfg
|
@ -1,52 +1,39 @@
|
||||||
# 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:
|
||||||
|
- seed_random
|
||||||
- disk_setup
|
- disk_setup
|
||||||
- mounts
|
- mounts
|
||||||
- set_hostname
|
- set_hostname
|
||||||
|
|
Loading…
Reference in a new issue