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

Only download MSI if needed #563

Merged
merged 1 commit into from Oct 7, 2019

Conversation

albertvaka
Copy link
Contributor

@albertvaka albertvaka commented Sep 20, 2019

  • Only download MSI if needed (ie: agent is not installed and MSI not downloaded already)
  • Use system's temp directory instead of creating our own.

Use system's temp directory instead of creating our own.
@albertvaka albertvaka force-pushed the albertvaka/download-msi-conditional branch from 87e658d to a66b7a8 Compare October 3, 2019 10:14
@@ -7,7 +7,7 @@
String $agent_version = $datadog_agent::params::agent_version,
String $service_ensure = 'running',
String $baseurl = $datadog_agent::params::agent6_default_repo,
String $msi_location = 'c:/tmp',
String $msi_location = 'C:/Windows/temp',

Choose a reason for hiding this comment

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

This should probably be %TEMP% (i.e. the TEMP environment variable

Copy link
Contributor Author

@albertvaka albertvaka Oct 3, 2019

Choose a reason for hiding this comment

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

Unfortunately there isn't a straightforward way of using env vars in puppet. Since Puppet runs as admin, I think this is good enough and we can try to get it right on a separate PR. I agree it can fail (eg: Windows installed somewhere else).

@albertvaka albertvaka merged commit 68d6371 into master Oct 7, 2019
@albertvaka albertvaka deleted the albertvaka/download-msi-conditional branch October 7, 2019 08:58
cegeka-jenkins pushed a commit to cegeka/puppet-datadog_agent that referenced this pull request Apr 6, 2020
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.

None yet

3 participants