Skip to content

Instantly share code, notes, and snippets.

# The following is useful for preseed installing to a machine with multiple drives. Otherwise, uncomment the line ending in /dev/sda.
d-i partman/early_command string debconf-set partman-auto/disk
"$(list-devices disk | head -n1)"
# d-i partman-auto/disk string /dev/sda
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-auto/method string crypto
# d-i partman-crypto/passphrase password
# d-i partman-crypto/passphrase-again password
{%- set users = ['a', 'b'] -%}
{%- set keys = [1, 2, 3] -%}
{%- for user in users -%}
{%- for key in keys -%}
{{user}} {{key}}
{% endfor -%}
{%- endfor -%}
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/minitest.sls:
a 1