Default variable details
Some of debops.swapfile default variables have more extensive configuration
than simple strings or lists, here you can find documentation and examples for
them.
swapfile__files
debops.swapfile can manage multiple swap files at once. This list in
a simple form specifies absolute filenames of the swap files to manage.
An extended configuration can be done using a YAML dictionary for each swap file. List of recognized parameters:
pathRequired. Path of the swap file to manage.
sizeOptional. Set the size in MB of a given swap file.
priorityOptional. Specify a priority of the swap file.
stateOptional. If specified and
absent, swap file will be disabled and deleted from the system.
Examples
Manage two swap files at once:
swapfile__files:
- '/swapfile0'
- path: /swapfile1'
size: '1024'