Provide random seed data - cloud-init 25.1.2 documentation (original) (raw)

View this page

Toggle table of contents sidebar

For a full list of keys, refer to theseed random module schema.

Example 1

1#cloud-config 2random_seed: 3 command: [sh, -c, dd if=/dev/urandom of=$RANDOM_SEED_FILE] 4 command_required: true 5 data: my random string 6 encoding: raw 7 file: /dev/urandom

Example 2

This example uses pollinate to gather data from a remote entropy server, and writes that data to /dev/urandom:

1#cloud-config 2random_seed: 3 command: [pollinate, '--server=http://local.pollinate.server'] 4 command_required: true 5 file: /dev/urandom