From a3585da1c8bf8eef6e8901db4436560ba79017a3 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 24 Sep 2018 01:06:31 -0400 Subject: [PATCH] Update sample config with new options --- router-daemon/pvcrd.conf.sample | 13 ++++++++++++- router-daemon/pvcrd/Daemon.py | 2 ++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/router-daemon/pvcrd.conf.sample b/router-daemon/pvcrd.conf.sample index 72f69093..41475914 100644 --- a/router-daemon/pvcrd.conf.sample +++ b/router-daemon/pvcrd.conf.sample @@ -7,16 +7,27 @@ # # The following values are required for each host or in a default section: # zookeeper: the IP+port of the Zookeper instance (defaults to 127.0.0.1:2181) +# keepalive_interval: the interval between keepalives and for dead node timeout (defaults to 5) +# fence_intervals: the number of keepalive_intervals without Zookeeper contact before this node +# will consider another node dead and fence it (defaults to 6, i.e. 30s) # vni_dev: the lower-level network device to bind VNI to # vni_dev_ip: the IP address (CIDR) of the lower-level network device, used # by FRR to communicate with the route reflectors and pass routes # for VNI interfaces +# ipmi_hostname: the IPMI hostname for fencing (defaults to -lom.) +# ipmi_username: username to connect to IPMI +# ipmi_password: password to connect to IPMI # # Copy this example to /etc/pvc/pvcrd.conf and edit to your needs [default] zookeeper = 127.0.0.1:2181 +keepalive_interval = 5 +fence_intervals = 6 [myhost] vni_dev = ens4 -vni_dev_ip = 10.255.0.3/24 +vni_dev_ip = 10.255.0.1/24 +ipmi_hostname = myhost-lom +ipmi_username = username +ipmi_password = password diff --git a/router-daemon/pvcrd/Daemon.py b/router-daemon/pvcrd/Daemon.py index 912111cd..e1ac348e 100644 --- a/router-daemon/pvcrd/Daemon.py +++ b/router-daemon/pvcrd/Daemon.py @@ -56,6 +56,8 @@ mynetworkname = ''.join(myhostname.split('.', 1)[1:]) config_values = [ 'zookeeper', 'keepalive_interval', + 'keepalive_interval', + 'fence_intervals', 'vni_dev', 'vni_dev_ip' 'ipmi_hostname',