[pve-devel] [PATCH manager 2/3] ceph: osd create: add encrypted as parameter
Dominik Csapak
d.csapak at proxmox.com
Tue Jun 11 11:14:23 CEST 2019
uses cpeh-volumes --dmcrypt parameter to encrypt the osd
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PVE/API2/Ceph/OSD.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/PVE/API2/Ceph/OSD.pm b/PVE/API2/Ceph/OSD.pm
index b9b0c6cf..42dee361 100644
--- a/PVE/API2/Ceph/OSD.pm
+++ b/PVE/API2/Ceph/OSD.pm
@@ -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);
--
2.11.0
More information about the pve-devel
mailing list