Skip to content

Commit

Permalink
[windows] add MSI max timeout knob (#654)
Browse files Browse the repository at this point in the history
* [windows] add MSI max timeout knob

* [windows] attribute: update attribute description

* [attributes] bump default to 900s to give more time for uninstalls on tiny instances
  • Loading branch information
truthbk authored Nov 15, 2019
1 parent 9cfca8d commit a1e5a01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@
# the blacklist will be resolved enabling this feature.
default['datadog']['windows_blacklist_silent_fail'] = false

# Attribute to specify timeout in seconds on MSI operations (install/uninstall)
# Default should suffice, but provides a knob in case instances with limited resources timeout.
default['datadog']['windows_msi_timeout'] = 900

# Agent installer checksum
# Expected checksum to validate correct agent installer is downloaded (Windows only)
default['datadog']['windows_agent_checksum'] = nil
Expand Down
2 changes: 2 additions & 0 deletions recipes/_install-windows.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@

package 'Datadog Agent removal' do
package_name 'Datadog Agent'
timeout node['datadog']['windows_msi_timeout']
action :nothing
end

Expand Down Expand Up @@ -118,6 +119,7 @@
source temp_file
installer_type installer_type
options install_options
timeout node['datadog']['windows_msi_timeout']
action :install
# Before 3.0.0, we adviced users to use the windows cookbook ~> 1.38.0,
# we should probably keep the compatibilty for some time.
Expand Down

0 comments on commit a1e5a01

Please sign in to comment.