Puppet Class: zram_generator

Defined in:
manifests/init.pp

Summary

Install and configure zram_generator zram mounts

Overview

Parameters:

  • install_defaults (Enum['installed', 'absent']) (defaults to: 'absent')

    Controls if the package ‘zram-generator-defaults’ be installed.

  • manage_defaults_package (Boolean) (defaults to: $facts['os']['name'] != 'Archlinux')

    whether the zram-generator-defaults package should be managed

  • zrams (Stdlib::CreateResources) (defaults to: {})

    Hash of zram_generator::zram instances to expand from hiera.

See Also:



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'manifests/init.pp', line 7

class zram_generator (
  Enum['installed', 'absent'] $install_defaults = 'absent',
  Boolean $manage_defaults_package = $facts['os']['name'] != 'Archlinux',
  Stdlib::CreateResources $zrams = {},
) {
  contain zram_generator::install
  contain zram_generator::config
  contain zram_generator::service

  Class['zram_generator::install']
  -> Class['zram_generator::config']
  -> Class['zram_generator::service']

  $zrams.each |$name, $resource| {
    zram_generator::zram { $name:
      * => $resource,
    }
  }
}