Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix permissions on environment file #474

Merged
merged 2 commits into from
Jun 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/provider_configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def whyrun_supported?
path node['platform_family'] == 'rhel' ? "/etc/sysconfig/#{default_config_name}" : "/etc/default/#{default_config_name}"
source new_resource.template_elasticsearch_env
cookbook new_resource.cookbook_elasticsearch_env
mode 0755
mode 0644
variables(params: params)
action :nothing
end
Expand Down
3 changes: 3 additions & 0 deletions test/integration/helpers/serverspec/configure_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

describe file(path_sysconfig) do
it { should be_file }
it { should be_mode 644 }

expected_environment.each do |line|
its(:content) { should contain(/#{line}/) }
Expand All @@ -53,6 +54,7 @@

describe file("#{path_conf}/elasticsearch.yml") do
it { should be_file }
it { should be_mode 644 }
it { should be_owned_by expected_user }
it { should be_grouped_into expected_group }

Expand All @@ -63,6 +65,7 @@

describe file("#{path_conf}/logging.yml") do
it { should be_file }
it { should be_mode 644 }
it { should be_owned_by expected_user }
it { should be_grouped_into expected_group }

Expand Down