Skip to content

Commit

Permalink
Add mode and action to file resource.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbellone committed Feb 10, 2015
1 parent 4b6985d commit 31ed5ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/provider_consul_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ def whyrun_supported?
invalid_options = [:path, :run_user, :run_group]
configuration = new_resource.to_hash.reject { |k, v| invalid_options.include?(k) }
file new_resource.filename do
owner new_resource.run_user
user new_resource.run_user
group new_resource.run_group
content JSON.pretty_generate(configuration, quirks_mode: true)
mode '0600'
action :create
end
end

Expand Down

0 comments on commit 31ed5ac

Please sign in to comment.