From d461755e5e3c61d0603967c411da042827f6f5b0 Mon Sep 17 00:00:00 2001 From: Brian Clark Date: Wed, 9 Dec 2015 17:41:14 -0500 Subject: [PATCH] guard against owning /etc --- libraries/consul_config.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/consul_config.rb b/libraries/consul_config.rb index 0e531379..8fd32cb5 100644 --- a/libraries/consul_config.rb +++ b/libraries/consul_config.rb @@ -149,6 +149,7 @@ def tls? owner new_resource.owner group new_resource.group mode '0755' + not_if { ::File.dirname(new_resource.path) == '/etc' } end file new_resource.path do