summaryrefslogtreecommitdiffstats
path: root/choco/chocolateyInstall.ps1.template.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'choco/chocolateyInstall.ps1.template.cmake')
-rw-r--r--choco/chocolateyInstall.ps1.template.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/choco/chocolateyInstall.ps1.template.cmake b/choco/chocolateyInstall.ps1.template.cmake
new file mode 100644
index 0000000..424a737
--- /dev/null
+++ b/choco/chocolateyInstall.ps1.template.cmake
@@ -0,0 +1,20 @@
+$packageName= 'icinga2'
+$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
+$url = 'https://packages.icinga.com/windows/Icinga2-v${CHOCO_VERSION_SHORT}-x86.msi'
+$url64 = 'https://packages.icinga.com/windows/Icinga2-v${CHOCO_VERSION_SHORT}-x86_64.msi'
+
+$packageArgs = @{
+ packageName = $packageName
+ fileType = 'msi'
+ url = $url
+ url64bit = $url64
+ silentArgs = "/qn /norestart"
+ validExitCodes= @(0)
+ softwareName = 'Icinga 2*'
+ checksum = '%CHOCO_32BIT_CHECKSUM%'
+ checksumType = 'sha256'
+ checksum64 = '%CHOCO_64BIT_CHECKSUM%'
+ checksumType64= 'sha256'
+}
+
+Install-ChocolateyPackage @packageArgs \ No newline at end of file