/windows_paging_file

A Chef cookbook that manages Windows system paging files.

Primary LanguageRuby

windows_paging_file Cookbook

This cookbook provides Chef recipes that manage the virtual memory (paging file) of the Windows OS.

Tested Windows server version: 2008, 2012

Windows paging file size management rules:

  • Automatically managed for all drives
  • If not, the user has the authority with below setting options for each drive
    • Set custom size (Initial and Maximum in MegaBytes)
    • System managed
    • No paging file

Requirements

Managed Node: Windows OS

Cookbook Dependency: windows (https://github.com/chef-cookbooks/windows)

Attributes

windows_paging_file::default

name initial_size maximum_size system_managed automatic_managed
path to the customized paging file, e.g. "C:/pagefile.sys" initial page file size in MegaBytes; check Windows support document for acceptable value maximum page file size in MegaBytes; check Windows support document for acceptable value true/false true/false

Usage

windows_paging_file::set_page_file

Include windows_paging_file in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[windows_paging_file::set_page_file]"
  ]
}

Owners

Author: mrfflyer@gmail.com

Contributing

Contact the owner before contributing.

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: ruifengm@sg.ibm.com