diff --git a/libraries/consul_config.rb b/libraries/consul_config.rb index e04b6676..7b82f2f6 100644 --- a/libraries/consul_config.rb +++ b/libraries/consul_config.rb @@ -111,7 +111,7 @@ def tls? notifying_block do directory ::File.dirname(new_resource.path) do recursive true - unless windows? + unless node.platform?('windows') owner new_resource.owner group new_resource.group mode '0755' @@ -120,7 +120,7 @@ def tls? end file new_resource.path do - unless windows? + unless node.platform?('windows') owner new_resource.owner group new_resource.group mode '0640' diff --git a/metadata.rb b/metadata.rb index 17ceef38..5a49e326 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ license 'Apache 2.0' description 'Application cookbook which installs and configures Consul.' long_description 'Application cookbook which installs and configures Consul.' -version '2.1.1' +version '2.1.2' recipe 'consul::default', 'Installs and configures the Consul service.' recipe 'consul::client_gem', 'Installs the Consul Ruby client as a gem.'