]> git.proxmox.com Git - pve-manager.git/commitdiff
ceph: osd create: add encrypted as parameter
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 11 Jun 2019 09:14:23 +0000 (11:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 11 Jun 2019 10:58:24 +0000 (12:58 +0200)
uses cpeh-volumes --dmcrypt parameter to encrypt the osd

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Ceph/OSD.pm

index b9b0c6cf9ede56323fee81525d3de33cf72e3855..42dee3615a7d9a3ca2bfc503460d57de02f47176 100644 (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);