mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 15:51:12 +00:00
ceph: init: add optional disable-cephx option
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
d70e3c4860
commit
77bb90b03b
@ -733,6 +733,12 @@ __PACKAGE__->register_method ({
|
|||||||
minimum => 6,
|
minimum => 6,
|
||||||
maximum => 14,
|
maximum => 14,
|
||||||
},
|
},
|
||||||
|
'disable-cephx' => {
|
||||||
|
description => "Disable cephx authentification.",
|
||||||
|
type => 'boolean',
|
||||||
|
optional => 1,
|
||||||
|
default => 0,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
returns => { type => 'null' },
|
returns => { type => 'null' },
|
||||||
@ -752,11 +758,13 @@ __PACKAGE__->register_method ({
|
|||||||
UUID::generate($uuid);
|
UUID::generate($uuid);
|
||||||
UUID::unparse($uuid, $fsid);
|
UUID::unparse($uuid, $fsid);
|
||||||
|
|
||||||
|
my $auth = $param->{'disable-cephx'} ? 'none' : 'cephx';
|
||||||
|
|
||||||
$cfg->{global} = {
|
$cfg->{global} = {
|
||||||
'fsid' => $fsid,
|
'fsid' => $fsid,
|
||||||
'auth cluster required' => 'cephx',
|
'auth cluster required' => $auth,
|
||||||
'auth service required' => 'cephx',
|
'auth service required' => $auth,
|
||||||
'auth client required' => 'cephx',
|
'auth client required' => $auth,
|
||||||
'osd journal size' => $pve_osd_default_journal_size,
|
'osd journal size' => $pve_osd_default_journal_size,
|
||||||
'osd pool default min size' => 1,
|
'osd pool default min size' => 1,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user