From 06d55316a4828245b805895ab4a1341ed7d025b4 Mon Sep 17 00:00:00 2001 From: Mikhail Zholobov Date: Tue, 21 Mar 2017 12:22:51 +0100 Subject: [PATCH] consul_config: Add "node_id" option --- libraries/consul_config.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/consul_config.rb b/libraries/consul_config.rb index 80c06a19..8d0fcb97 100644 --- a/libraries/consul_config.rb +++ b/libraries/consul_config.rb @@ -71,6 +71,7 @@ class ConsulConfig < Chef::Resource attribute(:key_file, kind_of: String) attribute(:leave_on_terminate, equal_to: [true, false], default: false) attribute(:log_level, equal_to: %w(INFO DEBUG WARN), default: 'INFO') + attribute(:node_id, kind_of: String) attribute(:node_name, kind_of: String) attribute(:performance, kind_of: [Hash, Mash]) attribute(:ports, kind_of: [Hash, Mash]) @@ -147,6 +148,7 @@ def to_json leave_on_terminate log_level node_name + node_id performance ports protocol