mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-16 01:12:30 +00:00
fix #1430: ceph init: allow to specify separate cluster network
Allow to specify a separate cluster network when initializing ceph. Ceph docs[0] imply a possibility for performance increase and enhanced security in environments where the public network serves not fully trusted peers, which could else provoke a DOS to the cluster traffic[0]. Make this optional, but if passed `network` is required too. [0]: http://docs.ceph.com/docs/luminous/rados/configuration/network-config-ref/ Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a9d47b2bb3
commit
7519b84851
@ -829,6 +829,14 @@ __PACKAGE__->register_method ({
|
|||||||
optional => 1,
|
optional => 1,
|
||||||
maxLength => 128,
|
maxLength => 128,
|
||||||
},
|
},
|
||||||
|
'cluster-network' => {
|
||||||
|
description => "Declare a separate cluster network, OSDs will route" .
|
||||||
|
"heartbeat, object replication and recovery traffic over it",
|
||||||
|
type => 'string', format => 'CIDR',
|
||||||
|
requires => 'network',
|
||||||
|
optional => 1,
|
||||||
|
maxLength => 128,
|
||||||
|
},
|
||||||
size => {
|
size => {
|
||||||
description => 'Targeted number of replicas per object',
|
description => 'Targeted number of replicas per object',
|
||||||
type => 'integer',
|
type => 'integer',
|
||||||
@ -920,6 +928,10 @@ __PACKAGE__->register_method ({
|
|||||||
$cfg->{global}->{'cluster network'} = $param->{network};
|
$cfg->{global}->{'cluster network'} = $param->{network};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($param->{'cluster-network'}) {
|
||||||
|
$cfg->{global}->{'cluster network'} = $param->{'cluster-network'};
|
||||||
|
}
|
||||||
|
|
||||||
PVE::CephTools::write_ceph_config($cfg);
|
PVE::CephTools::write_ceph_config($cfg);
|
||||||
|
|
||||||
PVE::CephTools::setup_pve_symlinks();
|
PVE::CephTools::setup_pve_symlinks();
|
||||||
|
Loading…
Reference in New Issue
Block a user