From 2e5d12f31bf49ad3af94a488e999ac3b40888740 Mon Sep 17 00:00:00 2001 From: Patrick O'Brien Date: Sat, 8 Apr 2017 07:41:53 -0700 Subject: [PATCH] add support for specifying the raft protocol version --- libraries/consul_config.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/consul_config.rb b/libraries/consul_config.rb index 8d0fcb97..d9480183 100644 --- a/libraries/consul_config.rb +++ b/libraries/consul_config.rb @@ -76,6 +76,7 @@ class ConsulConfig < Chef::Resource attribute(:performance, kind_of: [Hash, Mash]) attribute(:ports, kind_of: [Hash, Mash]) attribute(:protocol, kind_of: String) + attribute(:raft_protocol, kind_of: Integer) attribute(:reap, equal_to: [true, false]) attribute(:reconnect_timeout, kind_of: String) attribute(:reconnect_timeout_wan, kind_of: String) @@ -153,6 +154,7 @@ def to_json ports protocol reap + raft_protocol reconnect_timeout reconnect_timeout_wan recursor