fix: proxmox ceph services use different network #50
@ -1,5 +1,7 @@
|
|||||||
# profiles::proxmox::consul
|
# profiles::proxmox::consul
|
||||||
class profiles::proxmox::consul {
|
class profiles::proxmox::consul (
|
||||||
|
String $ceph_network_interface = 'vmbr1',
|
||||||
|
) {
|
||||||
|
|
||||||
$services = {
|
$services = {
|
||||||
'mon' => { 'port' => 6789, 'service_name' => 'ceph-mon', 'fact' => 'is_pveceph_mon' },
|
'mon' => { 'port' => 6789, 'service_name' => 'ceph-mon', 'fact' => 'is_pveceph_mon' },
|
||||||
@ -19,7 +21,7 @@ class profiles::proxmox::consul {
|
|||||||
consul::service { "ceph-${key}":
|
consul::service { "ceph-${key}":
|
||||||
service_name => $value['service_name'],
|
service_name => $value['service_name'],
|
||||||
tags => ['proxmox', 'ceph', $key],
|
tags => ['proxmox', 'ceph', $key],
|
||||||
address => $facts['networking']['ip'],
|
address => $facts['networking']['interfaces'][$ceph_network_interface]['ip'],
|
||||||
port => $value['port'],
|
port => $value['port'],
|
||||||
checks => [
|
checks => [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user