-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix legacy_rst_sections detection when heading directly follows comment
- Loading branch information
Showing
5 changed files
with
253 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
# Default variables | ||
# ================= | ||
|
||
# .. contents:: Sections | ||
# :local: | ||
# | ||
# --------------------------- | ||
# Swap file configuration | ||
# --------------------------- | ||
|
||
# .. envvar:: swapfile__size | ||
# | ||
# Default size of swap files, in MB. | ||
swapfile__size: '{{ ((ansible_memtotal_mb|int * 2) | ||
if (ansible_memtotal_mb|int <= 2048) | ||
else "512") }}' | ||
|
||
|
||
# .. envvar:: swapfile__priority | ||
# | ||
# Default swap file priority, from ``-1`` to ``32767``. | ||
swapfile__priority: '-1' | ||
|
||
|
||
# .. envvar:: swapfile__use_dd | ||
# | ||
# By default ``debops.swapfile`` uses the ``fallocate`` command to create the swap | ||
# files. If you use unsupported filesystems (``ext4`` is supported) you can | ||
# enable this variable to use ``dd`` command to create the files. | ||
swapfile__use_dd: False | ||
|
||
|
||
# .. envvar:: swapfile__files | ||
# | ||
# List of swap files. Specify either a path to a file on a filesystem, or | ||
# a YAML dict. See :ref:`swapfile__files` for more details. | ||
swapfile__files: [ '/swapfile' ] | ||
|
||
|
||
# --------------------- | ||
# Kernel parameters | ||
# --------------------- | ||
|
||
# .. envvar:: swapfile__swappiness | ||
# | ||
# Set ``vm.swappiness`` kernel parameter. | ||
swapfile__swappiness: '60' | ||
|
||
|
||
# .. envvar:: swapfile__cache_pressure | ||
# | ||
# Set ``vm.vfs_cache_pressure`` kernel parameter. | ||
swapfile__cache_pressure: '100' | ||
|
||
|
||
# .. envvar:: swapfile__sysctl_file | ||
# | ||
# Name of the file with kernel parameters. | ||
swapfile__sysctl_file: '/etc/sysctl.d/30-debops.swapfile.conf' | ||
|
||
|
||
# .. envvar:: swapfile__sysctl_map | ||
# | ||
# YAML dictionary with kernel parameters to set. Change it to an empty dict | ||
# to disable the kernel configuration. | ||
swapfile__sysctl_map: | ||
'vm.swappiness': '{{ swapfile__swappiness }}' | ||
'vm.vfs_cache_pressure': '{{ swapfile__cache_pressure }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
--- | ||
# .. vim: foldmarker=[[[,]]]:foldmethod=marker | ||
|
||
# debops.swapfile default variables [[[ | ||
# ===================================== | ||
|
||
# .. contents:: Sections | ||
# :local: | ||
# | ||
# .. include:: includes/all.rst | ||
|
||
|
||
# Swap file configuration [[[ | ||
# --------------------------- | ||
|
||
# .. envvar:: swapfile__size [[[ | ||
# | ||
# Default size of swap files, in MB. | ||
swapfile__size: '{{ ((ansible_memtotal_mb|int * 2) | ||
if (ansible_memtotal_mb|int <= 2048) | ||
else "512") }}' | ||
|
||
# ]]] | ||
# .. envvar:: swapfile__priority [[[ | ||
# | ||
# Default swap file priority, from ``-1`` to ``32767``. | ||
swapfile__priority: '-1' | ||
|
||
# ]]] | ||
# .. envvar:: swapfile__use_dd [[[ | ||
# | ||
# By default ``debops.swapfile`` uses the ``fallocate`` command to create the swap | ||
# files. If you use unsupported filesystems (``ext4`` is supported) you can | ||
# enable this variable to use ``dd`` command to create the files. | ||
swapfile__use_dd: False | ||
|
||
# ]]] | ||
# .. envvar:: swapfile__files [[[ | ||
# | ||
# List of swap files. Specify either a path to a file on a filesystem, or | ||
# a YAML dict. See :ref:`swapfile__files` for more details. | ||
swapfile__files: [ '/swapfile' ] | ||
# ]]] | ||
# ]]] | ||
# Kernel parameters [[[ | ||
# --------------------- | ||
|
||
# .. envvar:: swapfile__swappiness [[[ | ||
# | ||
# Set ``vm.swappiness`` kernel parameter. | ||
swapfile__swappiness: '60' | ||
|
||
# ]]] | ||
# .. envvar:: swapfile__cache_pressure [[[ | ||
# | ||
# Set ``vm.vfs_cache_pressure`` kernel parameter. | ||
swapfile__cache_pressure: '100' | ||
|
||
# ]]] | ||
# .. envvar:: swapfile__sysctl_file [[[ | ||
# | ||
# Name of the file with kernel parameters. | ||
swapfile__sysctl_file: '/etc/sysctl.d/30-debops.swapfile.conf' | ||
|
||
# ]]] | ||
# .. envvar:: swapfile__sysctl_map [[[ | ||
# | ||
# YAML dictionary with kernel parameters to set. Change it to an empty dict | ||
# to disable the kernel configuration. | ||
swapfile__sysctl_map: | ||
'vm.swappiness': '{{ swapfile__swappiness }}' | ||
'vm.vfs_cache_pressure': '{{ swapfile__cache_pressure }}' | ||
# ]]] | ||
# ]]] | ||
# ]]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters