29 lines
628 B
Text
29 lines
628 B
Text
#cloud-config
|
|
hostname: "${hostname}"
|
|
manage_etc_hosts: true
|
|
disable_root: false
|
|
|
|
ssh_authorized_keys:
|
|
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOodpLr+FDRyKyHjucHizNLVFHZ5AQmE9GmxMnOsSoaw pimkunis@thinkpadpim"
|
|
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINUZp4BCxf7uLa1QWonx/Crf8tYZ5MKIZ+EuaBa82LrV user@user-laptop"
|
|
|
|
%{ if data_disk != null }
|
|
device_aliases:
|
|
data: /dev/vdb
|
|
disk_setup:
|
|
data:
|
|
table_type: 'gpt'
|
|
layout: true
|
|
overwrite: false
|
|
fs_type:
|
|
- label: 'data'
|
|
filesystem: 'ext4'
|
|
overwrite: false
|
|
mounts:
|
|
- ["data.1", "/mnt/data"]
|
|
%{ endif }
|
|
|
|
# TODO: Do we need this?
|
|
runcmd:
|
|
- dhclient -r
|
|
- dhclient
|