cgroups

contributions requested
manage cgroups functionality

10,279 downloads

7,664 latest version

4.3 quality score

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

  • 2.1.1 (latest)
  • 2.1.0
  • 2.0.1
  • 2.0.0 (deleted)
  • 1.0.1
  • 1.0.0
released Feb 20th 2017
This version is compatible with:
  • Puppet Enterprise >= 3.2.0 < 5.0.0
  • Puppet >= 3.0.0 < 5.0.0
  • RedHat
    ,
    CentOS
    ,
    SLED

Start using this module

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

Add this module to your Puppetfile:

mod 'ericsson-cgroups', '2.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ericsson-cgroups
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ericsson-cgroups --version 2.1.1

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

ericsson/cgroups — version 2.1.1 Feb 20th 2017

puppet-module-cgroups

Changelog

##2017-02-20 - Release 2.1.1 Document class and define to appease Puppetlabs Forge

##2017-02-20 - Release 2.1.0 Support Puppet up to 4.9 and Ruby 2.3.1

##2016-06-01 - Release 2.0.1 Add support for RedHat 7

##2016-05-31 - Release 2.0.0 ###Breaking News

This release breaks with backward compatibility.

functionality / parameters that have been removed:
  • cgroups::cgconfig_mount

To keep the old behaviour with hiera you can add the old default values to your osfamily-release structure (eg %{osfamily}-%{operatingsystemrelease})

RedHat-6.yaml:

cgroups::mounts:
  cpu: '/cgroup'

Suse-11.yaml:

cgroups::mounts:
  cpu: '/sys/fs/cgroup'

Do not use this fix on RedHat 7 clients until you know exactly what you are doing.

####Features

  • Add cgroups::mount parameter without hard coded defaults for more flexibility as successor of cgconfig_mount.
  • Add cgroups::group defined resource type to place group definitions in the .d directory instead of main configuration file.
  • Add cgroups::group::target_path to allow usage of specific configuration paths.
  • Add cgroups::groups parameter for optionally adding cgroups::group types (via hiera for example).
  • Add support for RedHat 7.

####Bugfixes

  • Remove usage of $::lsbmajdistrelease in favour of $::operatingsystemrelease .
  • Enhance the spec tests to feature much more test cases.

####Upgrading from 1.x When upgrading from version 1.x you need to migrate your cgroups::cgconfig_mount entries into the new cgroups::mounts format. The new format is a hash for greater flexibility. You have to add the subsystem for your mounts.

In most cases it should be good enough to change the parameter name, make it a hash and add the 'cpu' subsystem as key.

#####Hiera Example: old deprecated string format

cgroups::cgconfig_mount: '/cgroup'

new hash format

cgroups::mounts:
  cpu: '/cgroup'