1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# File 'manifests/windows/geotrust.pp', line 1
class classroom_legacy::windows::geotrust {
assert_private('This class should not be called directly')
exec { 'download-geotrust-cert':
command => '$wc = New-Object System.Net.WebClient;$wc.DownloadFile("https://www.geotrust.com/resources/root_certificates/certificates/GeoTrust_Global_CA.pem","C:\Windows\Temp\GeoTrust_Glocal_CA.pem")',
creates => 'C:/Windows/Temp/GeoTrust_Glocal_CA.pem',
provider => powershell,
timeout => $classroom_legacy::timeout,
}
exec { 'install-geotrust-cert':
command => 'certutil -addstore root C:\Windows\Temp\GeoTrust_Glocal_CA.pem',
provider => powershell,
refreshonly => true,
subscribe => Exec['download-geotrust-cert'],
}
}
|