blob: 04ff0a1ff567a239366ae8a78f79c05b8f21e49a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Downloads the given $version of openssl from http://slproweb.com and installs to the specified $path.
# If a different openssl version is already installed there, it is uninstalled first.
#
# Note installing OpenSSL has dependency to VCRedist package which is not currently managed by puppet
class openssl::windows(
$version = '1.0.1j',
$path = 'C:\openssl'
) {
# Version number with underscores, for example '0_9_8x'
$version_underscore = regsubst($version, '\.', '_', "G")
$bits = $::architecture ? {
x64 => "64",
default => "32"
}
# installer file URL
$url = "$input/windows/Win${bits}OpenSSL-${version_underscore}.exe"
windows::exe_package { "openssl":
url => $url,
version => $version,
version_flags => 'version',
path => $path,
type => 'inno',
binary => "$path\\bin\\openssl.exe"
}
}
|