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 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