Version information
released Dec 6th 2016
This version is compatible with:
- , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'silug-zram', '0.2.0'
Learn more about managing modules with a PuppetfileDocumentation
silug/zram — version 0.2.0 Dec 6th 2016
zram
Table of Contents
- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with zram
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Overview
This module configures zram swap using udev rules (no init scripts or systemd units needed).
Module Description
Want to know more about zram? Read the Linux kernel documentation.
Setup
What zram affects
Creates the following files:
- /lib/udev/zram
- /etc/udev/rules.d/01-zram.rules
- /etc/modprobe.d/zram.conf
Finally, it loads the zram module.
Setup Requirements
This module requires puppetlabs-stdlib and camptocamp-kmod.
Beginning with zram
Make sure you are using a kernel that includes the zram module.
Usage
class { 'zram': }
Reference
This module accepts the following parameters:
-
numdevices
Number of zram devices. Defaults to the number of processors ($::processorcount). -
disksize
Size of zram devices. Defaults to half of memory divided by numdevices.
Limitations
This module has been tested on Ubuntu 16.04 and Debian Jessie (Raspbian).
Development
Send me a pull request on GitHub.
Dependencies
- puppetlabs-stdlib (>= 4.9.1)
- camptocamp-kmod (>= 2.1.0)