Last active
August 29, 2015 14:21
-
-
Save velocity303/59234e36fa9c60d5770f to your computer and use it in GitHub Desktop.
Windows code snippets for base OS Settings
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
#profile class for https://forge.puppetlabs.com/ptierno/windowspagefile | |
class profile::winpf { | |
case $os[release][major] { | |
"2008 R2": { if $::issql == 'true' { | |
$initialpf = 24576 | |
$maximumpf = 24576 | |
} | |
elsif $memorysize_mb < 16384 { | |
$initialpf = 1024 | |
$maximumpf = 1024 | |
} | |
else { | |
$initialpf = 12288 | |
$maximumpf = 12288 | |
} | |
pagefile { 'C:\pagefile.sys': | |
initialsize => $initialpf, | |
maximumsize => $maximumpf, | |
systemmanaged => false, | |
} | |
} | |
"2012 R2": { | |
pagefile { 'C:\pagefile.sys': | |
systemmanaged => true, | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment