fix: proxmox ceph services use different network #50
@ -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 => [
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user