-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build FIPS Agent chocolatey package (#32070)
- Loading branch information
Showing
13 changed files
with
258 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
chocolatey/datadog-fips-agent/online/datadog-fips-agent-online.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> | ||
<metadata> | ||
<id>datadog-fips-agent</id> | ||
<version>$version$</version> | ||
<packageSourceUrl>https://github.com/DataDog/datadog-agent/tree/main/chocolatey</packageSourceUrl> | ||
<owners>Datadog</owners> | ||
<title>Datadog FIPS Agent</title> | ||
<authors>Datadog</authors> | ||
<projectUrl>https://github.com/DataDog/datadog-agent</projectUrl> | ||
<iconUrl>https://datadog-prod.imgix.net/img/dd_logo_70x75.png</iconUrl> | ||
<copyright>$copyright$</copyright> | ||
<licenseUrl>https://raw.githubusercontent.com/DataDog/datadog-agent/main/LICENSE</licenseUrl> | ||
<requireLicenseAcceptance>true</requireLicenseAcceptance> | ||
<docsUrl>https://docs.datadoghq.com</docsUrl> | ||
<tags>datadog agent monitoring admin</tags> | ||
<summary>The Datadog FIPS Agent for Microsoft Windows</summary> | ||
<description>The Datadog FIPS Agent faithfully collects events and metrics and brings them to Datadog on your behalf so that you can do something useful with your monitoring and performance data. | ||
|
||
## Package settings | ||
|
||
You may set [custom settings](https://docs.datadoghq.com/agent/basic_agent_usage/windows/?tab=commandline#installation) to the Agent when installing by using the [`--installer-arguments` option of `choco install`](https://chocolatey.org/docs/getting-started#overriding-default-install-directory-or-other-advanced-install-concepts). | ||
|
||
For example, to set the API key you may run: | ||
`choco install -ia="APIKEY=""YOUR_DATADOG_API_KEY""" datadog-fips-agent`</description> | ||
<releaseNotes>$release_notes$</releaseNotes> | ||
</metadata> | ||
<files> | ||
<file src="tools\**" target="tools" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
VERIFICATION | ||
Verification is intended to assist the Chocolatey moderators and community in verifying that this package's contents are trustworthy. | ||
|
||
This package is published by Datadog itself. | ||
The binaries are identical to other package types for the Datadog FIPS Agent. |
27 changes: 27 additions & 0 deletions
27
chocolatey/datadog-fips-agent/online/tools/chocolateyinstall.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
$ErrorActionPreference = 'Stop'; | ||
|
||
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | ||
$packageArgs = @{ | ||
packageName = $env:ChocolateyPackageName | ||
unzipLocation = $toolsDir | ||
fileType = 'msi' | ||
# Note: Url is replaced at build time with the full URL to the MSI | ||
url64bit = $__url_from_ci__ | ||
checksum64 = $__checksum_from_ci__ | ||
checksumType = 'sha256' | ||
softwareName = "Datadog FIPS Agent" | ||
silentArgs = "/qn /norestart /l*v `"$($env:TEMP)\$($packageName).$($env:chocolateyPackageVersion).MsiInstall.log`"" | ||
validExitCodes= @(0, 3010, 1641) | ||
} | ||
Install-ChocolateyPackage @packageArgs | ||
|
||
$installInfo = @" | ||
--- | ||
install_method: | ||
tool: chocolatey | ||
tool_version: chocolatey-$($env:CHOCOLATEY_VERSION) | ||
installer_version: chocolatey_package-online | ||
"@ | ||
|
||
$appDataDir = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Datadog\Datadog Agent").ConfigRoot | ||
Out-File -FilePath $appDataDir\install_info -InputObject $installInfo |
Oops, something went wrong.