reintroduce data disks
This commit is contained in:
parent
9f3fab470d
commit
49720ab12a
3 changed files with 36 additions and 1 deletions
22
debian/files/cloud_init.cfg.tftpl
vendored
22
debian/files/cloud_init.cfg.tftpl
vendored
|
@ -40,10 +40,30 @@ runcmd:
|
|||
- dhclient
|
||||
- locale-gen
|
||||
|
||||
%{ if data_share != "" }
|
||||
%{ if data_disk }
|
||||
device_aliases:
|
||||
data: /dev/vdb
|
||||
disk_setup:
|
||||
data:
|
||||
table_type: 'gpt'
|
||||
layout: true
|
||||
overwrite: false
|
||||
fs_setup:
|
||||
- label: 'data'
|
||||
filesystem: 'ext4'
|
||||
device: data.1
|
||||
overwrite: false
|
||||
%{ endif }
|
||||
|
||||
%{ if data_disk || data_share }
|
||||
mounts:
|
||||
%{ if data_disk != "" }
|
||||
- ["data.1", "/mnt/data"]
|
||||
%{ endif }
|
||||
%{ if data_share != "" }
|
||||
- ["data", "${data_share}", "9p", "trans=virtio,rw", "0", "0"]
|
||||
%{ endif }
|
||||
%{ endif }
|
||||
|
||||
%{ if fixed_dns != "" }
|
||||
manage_resolv_conf: true
|
||||
|
|
Reference in a new issue