Skip to content

Instantly share code, notes, and snippets.

@velocity303
Last active August 29, 2015 14:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velocity303/59234e36fa9c60d5770f to your computer and use it in GitHub Desktop.
Save velocity303/59234e36fa9c60d5770f to your computer and use it in GitHub Desktop.
Windows code snippets for base OS Settings
#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