Forge Home

windowspagefile

Puppet type and provider to manage windows page files

15,422 downloads

13,866 latest version

3.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 1.2.2 (latest)
  • 1.2.1
  • 1.2.0
  • 1.1.0
  • 1.0.0
released Feb 11th 2015
This version is compatible with:
  • Puppet Enterprise 3.x
  • Puppet 3.x

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'ptierno-windowspagefile', '1.2.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ptierno-windowspagefile
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ptierno-windowspagefile --version 1.2.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

ptierno/windowspagefile — version 1.2.2 Feb 11th 2015

windowspagefile

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with windowspagefile
  4. Usage - Configuration options and additional functionality
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module
  7. Contributing - Contribute to this modules development

Overview

A puppet type and provider to manage the creation/deletion/updation of windows pagefiles using WMI via ruby's win32ole.

Module Description

The provider is capable of setting the initial size and maximum size for a windows page file or it can let the page file size be managed by the operating system.

Setup

Installation

The module can be installed directly from the Puppet Forge

 puppet module install ptierno-windowspagefile

Or you can clone this repo into your modulepath

 git clone https://github.com/ptierno/puppet-windowspagefile.git

Usage

Examples

Managing a page files size

 pagefile { 'c:\pagefile.sys':
   initialsize => 1024,
   maximumsize => 1024
 }

Letting windows manage the page files size

 pagefile { 'c:\pagefile.sys':
   systemmanaged => true
 }

Removing a page file

 pagefile { 'c:\pagefile.sys':
   ensure => absent
 }

If you leave out either initialsize or maximumsize if will use the value of the other

 # maximumsize will inherit the value of initialsize
 pagefile { 'c:\pagefile.sys':
   initialsize => 1024
 }

If you use this module to manage a pagefile (or more), it will automatically disable the Windows option to have the system automatically manage pagefiles for all drives. (different than system managed size for a single pagefile)

If you set all of your managed pagefiles ensure value to absent it will turn this feature back on.

Limitations

This provider has been tested on the following windows operating systems:

  • Windows Server 2008 R2
  • Windows Server 2012 R2

Development

Please submit any issues using the github issue tracker

If you have any questions, feel free to contact me via email.

Peter Tierno peter.a.tierno@gmail.com

Contributing

  • fork
  • update
  • pull request
  • joy

License

Copyright (C) 2014 Peter Tierno

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.