fix: proxmox ceph services use different network

- set the consul services for ceph mon, mds, mgr and osd to report the ceph
  cluster interface
This commit is contained in:
Ben Vincent 2024-06-22 00:45:17 +10:00
parent 4a95fbbd31
commit f5a9eaef4a

View File

@ -1,5 +1,7 @@
# profiles::proxmox::consul
class profiles::proxmox::consul {
class profiles::proxmox::consul (
String $ceph_network_interface = 'vmbr1',
) {
$services = {
'mon' => { 'port' => 6789, 'service_name' => 'ceph-mon', 'fact' => 'is_pveceph_mon' },
@ -19,7 +21,7 @@ class profiles::proxmox::consul {
consul::service { "ceph-${key}":
service_name => $value['service_name'],
tags => ['proxmox', 'ceph', $key],
address => $facts['networking']['ip'],
address => $facts['networking']['interfaces'][$ceph_network_interface]['ip'],
port => $value['port'],
checks => [
{