ceph: osd create: add encrypted as parameter

uses cpeh-volumes --dmcrypt parameter to encrypt the osd

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2019-06-11 11:14:23 +02:00 committed by Thomas Lamprecht
parent 46fb9c5017
commit 4ce045788a

View File

@ -236,6 +236,12 @@ __PACKAGE__->register_method ({
requires => 'wal_dev',
type => 'number',
},
encrypted => {
type => 'boolean',
optional => 1,
default => 0,
description => "Enables encryption of the OSD."
},
},
},
returns => { type => 'string' },
@ -406,6 +412,7 @@ __PACKAGE__->register_method ({
}
push @$cmd, '--data', $devpath;
push @$cmd, '--dmcrypt' if $param->{encrypted};
PVE::Ceph::Tools::wipe_disks($devpath);