Forge Home

green

Makes the world a better place through efficency.

5,715 downloads

87 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.

Version information

  • 0.1.2 (latest)
  • 0.1.1
  • 0.1.0
released Jul 29th 2024
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.7.0 < 6.0.0
  • , , , , , , , , , , Archlinux

Start using this module

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

Add this module to your Puppetfile:

mod 'tphoney-green', '0.1.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add tphoney-green
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install tphoney-green --version 0.1.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

tphoney/green — version 0.1.2 Jul 29th 2024

green

This module will tune a linux system to use the lowest amount of power. It will spindown harddisks and also tune the system using powertop.

Classes

Public Classes

  • green: green Main class, includes all other classes.

Private Classes

  • green::disk: This class handles harddisk power optimizations. Avoid modifying private classes.
  • green::powertop: This class handles powertop. Avoid modifying private classes.

Parameters

The following parameters are available in the green class.

powertop_enable

Data type: Boolean

Whether to use powertop optimizations.

package_ensure

Data type: String

Whether to install the Powertop package, and what version to install. Values: 'present', 'latest', or a specific version number. Default value: 'present'.

package_manage

Data type: Boolean

Whether to manage the Powertop package. Default value: true.

package_name

Data type: Array[String]

Specifies the Powertop package to manage. Default value: ['powertop'] (except on AIX and Solaris).

service_enable

Data type: Boolean

Whether to enable the Powertop service at boot. Default value: true.

service_ensure

Data type: Enum['running', 'stopped']

Whether the Powertop service should be running. Default value: 'running'.

service_manage

Data type: Boolean

Whether to manage the Powertop service. Default value: true.

service_name

Data type: String

The Powertop service to manage. Default value: varies by operating system.

service_provider

Data type: String

Which service provider to use for Powertop. Default value: 'undef'.

powertop_autotune

Data type: Boolean

powertop_package_ensure

Data type: String

powertop_package_manage

Data type: Boolean

powertop_package_name

Data type: Array[String]

powertop_service_enable

Data type: Boolean

powertop_service_ensure

Data type: Enum['running', 'stopped']

powertop_service_manage

Data type: Boolean

powertop_service_name

Data type: String

powertop_service_provider

Data type: Optional[String]

disk_enable

Data type: Boolean

disk_all_disks

Data type: Boolean

disk_hash

Data type: Hash[String, Integer]

disk_spindown

Data type: Integer