summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Sears <stuart@sjsears.com>2019-09-17 12:25:35 +0100
committerStuart Sears <stuart@sjsears.com>2019-09-17 12:25:35 +0100
commitc04f2e4ec0142f0f1841ba65fc8f0dc1f16e4d5d (patch)
treeaed0dfde104e65b4935cef56a1dd5b1c5b36d97a
parent72504526cb7b6d2f09d5da771ab362eae583042d (diff)
downloadchef-c04f2e4ec0142f0f1841ba65fc8f0dc1f16e4d5d.tar.gz
Adds release notes entries for sysctl comment blocks
Signed-off-by: Stuart Sears <stuart@sjsears.com>
-rw-r--r--RELEASE_NOTES.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 4cecddb017..1b753e5514 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -299,6 +299,38 @@ Our underlying SSH implementation has been updated to support the new ed25519 SS
Chef Solo's `--delete-entire-chef-repo` option has been extended to work in Local Mode as well. Be warned that this flag does exactly what it states, and when used incorrectly, can result in loss of work.
+### sysctl now accepts a comments parameter
+
+The sysctl resource has been updated to allow additional (optional) comments. Comments can be passed as an array or a string. Any comments provided are prefixed with '#' signs and precede the sysctl setting in generated files.
+
+An example:
+
+```
+sysctl 'vm.swappiness' do
+ value 10
+ comment [
+ "define how aggressively the kernel will swap memory pages.",
+ "Higher values will increase aggressiveness",
+ "lower values decrease the amount of swap.",
+ "A value of 0 instructs the kernel not to initiate swap",
+ "until the amount of free and file-backed pages is less",
+ "than the high water mark in a zone.",
+ "The default value is 60."
+ ]
+end
+```
+
+which results in `/etc/sysctl.d/99-chef-vw.swappiness.conf` as follows
+```
+# define how aggressively the kernel will swap memory pages.
+# Higher values will increase aggressiveness
+# lower values decrease the amount of swap.
+# A value of 0 instructs the kernel not to initiate swap
+# until the amount of free and file-backed pages is less
+# than the high water mark in a zone.
+# The default value is 60.
+vm.swappiness = 10
+
## New Resources
### archive_file resource