-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspi_test.pp
27 lines (27 loc) · 868 Bytes
/
spi_test.pp
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
# @summary An example to check and set the registry value
# including paranmetrs for the spi timer setting
# class profile::avc_sec::spi_test
class profile::avc_sec::spi_test (
String $spi_timer = '600',
){
#Check if the server group is a XenApp Memeber and execute the powershell command
if $::server_group == 'Citrix XenApp Member' {
case $::kernelmajversion {
'10.0': {
if $::spi == $spi_timer {
notify {'Idle Time Matches ISCC Standards':}
} else {
registry_value { 'SpecialPollInterval':
ensure => present,
path => 'HKLM:\SOFTWARE\Policies\Microsoft\W32time\TimeProviders\NtpClient\SpecialPollInterval',
type => dword,
data => Integer($spi_timer),
} notify { 'Updated Idle Time as per ISCC Standards':}
}
}
default: {
notify{'Not a Windows / Citrix Server':}
}
}
}
}