From 31ed5ace18a753b8962d269d963547015b9e5d85 Mon Sep 17 00:00:00 2001 From: John Bellone Date: Mon, 9 Feb 2015 22:04:57 -0500 Subject: [PATCH] Add mode and action to file resource. --- libraries/provider_consul_config.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/provider_consul_config.rb b/libraries/provider_consul_config.rb index 548a2ddb..7fa0470a 100644 --- a/libraries/provider_consul_config.rb +++ b/libraries/provider_consul_config.rb @@ -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