From ec76650b44c743f86383585786de2e43bfcddc29 Mon Sep 17 00:00:00 2001 From: Denis Baryshev Date: Fri, 3 Mar 2017 03:13:12 +0300 Subject: [PATCH 1/2] fixing permission of generated config --- libraries/consul_definition.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/consul_definition.rb b/libraries/consul_definition.rb index cf5115f4..e048e237 100644 --- a/libraries/consul_definition.rb +++ b/libraries/consul_definition.rb @@ -60,7 +60,7 @@ def to_json unless platform?('windows') owner new_resource.user group new_resource.group - mode '0640' + mode '0644' end end end From a6849a4aeed8b2a4d52acddad1c767bffba948a5 Mon Sep 17 00:00:00 2001 From: Denis Baryshev Date: Fri, 3 Mar 2017 15:31:53 +0300 Subject: [PATCH 2/2] update spec test for defintion file permission --- test/integration/default/default_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/default/default_spec.rb b/test/integration/default/default_spec.rb index 2959def5..b7fedd15 100644 --- a/test/integration/default/default_spec.rb +++ b/test/integration/default/default_spec.rb @@ -73,7 +73,7 @@ it { should be_file } it { should be_owned_by 'root' } it { should be_grouped_into 'consul' } - its('mode') { should cmp '0640' } + its('mode') { should cmp '0644' } end describe file("#{confd_dir}/consul_watch_check.json") do