Forge Home

windows_power

Module to manage the power settings on Windows

Vox Pupuli

puppet

12,688 downloads

4,334 latest version

5.0 quality score

Version information

  • 3.0.2 (latest)
  • 3.0.1
  • 3.0.0
  • 2.0.0
  • 1.0.0
released Oct 20th 2018
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 7.0.0
  • windows

Start using this module

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

Add this declaration to your Puppetfile:

mod 'puppet-windows_power', '3.0.2'
Learn more about managing modules with a Puppetfile

Add this module to a Bolt project:

bolt module add puppet-windows_power
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppet-windows_power --version 3.0.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

puppet/windows_power — version 3.0.2 Oct 20th 2018

puppet-windows_power

Table of Contents

  1. Overview
  2. Module Description - What is the windows_power module?
  3. Setup - The basics of getting started with windows_power
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

Puppet module for managing windows power settings

Build Status

Module Description

The purpose of this module is to manage each of the windows power schemes and the various global power settings

Setup

What windows_power affects

  • Creates new power schemes (which will alter registry settings)

Beginning with windows_power

Create new power scheme:

    windows_power::schemes::scheme { 'test scheme':
       scheme_name     => 'test',
       scheme_guid     => '381b4222-f694-41f0-9685-ff5bbxx65ddx',
       template_scheme => '381b4222-f694-41f0-9685-ff5bb260df2e',
       activation      => 'active',
       ensure          => 'present',
    }

Usage

Classes and Defined Types:

Defined Type: windows_power::schemes::scheme

Parameters within windows_power::schemes::scheme:

scheme_name

The name of the scheme to configure

scheme_guid

The windows guid used to uniquely identify the power scheme

template_scheme

The windows guid of an existing scheme to be used as a template for the current scheme

activation

Set the current scheme as the active scheme

ensure

Configure if the scheme is present or absent The initial version

Defined Type: windows_power::schemes::settings

Parameters within windows_power::schemes::settings:

scheme_name

The name of the scheme to configure

setting

The setting to configure

value

The value set the setting to - minutes or throttle

Defined Type: windows_power::global::battery

Parameters within windows_power::global::battery:

setting

Battery alarm setting to The initial versionconfigure

status

Setting configuration (on/off) or percentage (in the case of the level setting)

criticality

The level of battery criticality at which to provide an alarm. LOW or HIGH.

Defined Type: windows_power::global::flags

Parameters within windows_power::global::flags:

setting

The global power flag to configure

status

Setting configuration (on/off)

Defined Type: windows_power::global::hiberation

Parameters within windows_power::global::hibernation:

status

Setting configuration (on/off)

Defined Type: windows_power::devices::override

Parameters within windows_power::devices::override:

type

Specifies one of the following caller types: PROCESS, SERVICE, DRIVER

request

Specifies one or more of the following Power Request Types: Display, System, Awaymode

Defined Type: windows_power::devices::wake

Parameters within windows_power::devices::wake:

device

Specifies the device name

ensure

Enable or disable the device for waking

Reference

Defined Types:

Public Defined Types:

Limitations

This module is tested on the following platforms:

  • Windows 2008 R2

It is tested with the OSS version of Puppet only.

Development

Contributing

Please read CONTRIBUTING.md for full details on contributing to this project.