mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-11-03 10:28:25 +00:00
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:
parent
46fb9c5017
commit
4ce045788a
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user