Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add attributes for package download retries options #390

Merged
merged 1 commit into from
Jan 11, 2017

Conversation

degemer
Copy link
Member

@degemer degemer commented Jan 5, 2017

Allow users to specify the retries/retry_delay options of the package
resource with an attribute.

Fix #320

@degemer degemer force-pushed the quentin/implement-retries branch 4 times, most recently from 26ca6f6 to b0bfe45 Compare January 5, 2017 13:56
@olivielpeau olivielpeau added this to the 2.8.0 milestone Jan 6, 2017
Copy link
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -28,10 +28,15 @@
dd_agent_msi = dd_agent_version ? "ddagent-cli-#{dd_agent_version}.msi" : 'ddagent-cli.msi'
temp_file = ::File.join(Chef::Config[:file_cache_path], 'ddagent-cli.msi')

package_retries = node['datadog']['agent_package_retries']
package_retry_delay = node['agent_package_retry_delay']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually missed this: should be node['datadog']['agent_package_retry_delay']

Reminds me that I'd appreciate a few simple spec tests on this :)

Allow users to specify the retries/retry_delay options of the package
resource on Linux, remote_file on Windows with an attribute.
@degemer degemer changed the title Add attributes for Linux package retries options Add attributes for package download retries options Jan 10, 2017
@degemer degemer merged commit 2a7e914 into master Jan 11, 2017
@degemer degemer deleted the quentin/implement-retries branch January 11, 2017 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants