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/libraries/consul_definition.rb b/libraries/consul_definition.rb index b8a57e37..a960e92a 100644 --- a/libraries/consul_definition.rb +++ b/libraries/consul_definition.rb @@ -45,7 +45,7 @@ def to_json notifying_block do directory ::File.dirname(new_resource.path) do recursive true - unless windows? + unless node.platform?('windows') owner new_resource.user group new_resource.group mode '0755' @@ -54,7 +54,7 @@ def to_json file new_resource.path do content new_resource.to_json - unless windows? + unless node.platform?('windows') owner new_resource.user group new_resource.group mode '0640' diff --git a/libraries/consul_watch.rb b/libraries/consul_watch.rb index 2d3f2b64..cfc2659e 100644 --- a/libraries/consul_watch.rb +++ b/libraries/consul_watch.rb @@ -43,7 +43,7 @@ def to_json notifying_block do directory ::File.dirname(new_resource.path) do recursive true - unless windows? + unless node.platform?('windows') owner new_resource.user group new_resource.group mode '0755' @@ -52,7 +52,7 @@ def to_json file new_resource.path do content new_resource.to_json - unless windows? + unless node.platform?('windows') owner new_resource.user group new_resource.group mode '0640' diff --git a/metadata.rb b/metadata.rb index 17ceef38..1fef352e 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.3' recipe 'consul::default', 'Installs and configures the Consul service.' recipe 'consul::client_gem', 'Installs the Consul Ruby client as a gem.'