Update upstream cookbooks

This commit is contained in:
Greg Karékinian
2017-03-20 13:19:10 +00:00
parent bfd2d52ea8
commit bcfd44b923
340 changed files with 12576 additions and 5465 deletions

View File

@@ -1,10 +1,10 @@
#
# Author:: Kendrick Martin (kendrick.martin@webtrends.com)
# Contributor:: Adam Wayne (awayne@waynedigital.com)
# Cookbook Name:: iis
# Cookbook:: iis
# Provider:: app
#
# Copyright:: 2011, Webtrends Inc.
# Copyright:: 2011-2016, Webtrends Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ action :add do
cmd << " /applicationPool:\"#{new_resource.application_pool}\"" if new_resource.application_pool
cmd << " /physicalPath:\"#{windows_cleanpath(new_resource.physical_path)}\"" if new_resource.physical_path
cmd << " /enabledProtocols:\"#{new_resource.enabled_protocols}\"" if new_resource.enabled_protocols
cmd << " /commit:\"MACHINE/WEBROOT/APPHOST\""
cmd << ' /commit:\"MACHINE/WEBROOT/APPHOST\"'
Chef::Log.debug(cmd)
shell_out!(cmd)
new_resource.updated_by_last_action(true)
@@ -124,11 +124,7 @@ def load_current_resource
if cmd.stderr.empty?
result = cmd.stdout.match(regex)
Chef::Log.debug("#{new_resource} current_resource match output:#{result}")
if result
@current_resource.exists = true
else
@current_resource.exists = false
end
@current_resource.exists = result
else
log "Failed to run iis_app action :load_current_resource, #{cmd_current_values.stderr}" do
level :warn