Skip to content

Manage systemd-zram service generator for zram devices (either swap or file system)

License

Notifications You must be signed in to change notification settings

alysoid/ansible-systemd-zram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catena Ansible Role: systemd-zram

Manage systemd-zram service generator for zram devices. zram-generator is a generator that creates systemd units to format and use compressed RAM devices, either as swap or a file system.

Role variables

systemd_zram

Manage zram-generator.conf - Systemd unit generator for zram swap devices.

Configuration files will have the .conf extension and will be placed in the configuration snippets directory /etc/systemd/zram-generator.conf.d. These configuration files can control zram devices. The following example enables zram0 device with lz4 (default is lzo-rle) compression:

# Default
systemd_zram: []

# Example
systemd_zram:
  # /etc/systemd/zram-generator.conf.d/zram0.conf
  - name: zram0
    options:
      # The size of the zram device in MiB
      zram_size: "256"
      # Compression algorithm: lzo, lz4, zstd, lzo-rle
      compression_algorithm: lz4

systemd_zram_cleanup

When true, remove all existing configuration files before creating the new ones.

# Default
systemd_zram_cleanup: false

About

Manage systemd-zram service generator for zram devices (either swap or file system)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published