summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Sears <stuart@sjsears.com>2019-09-17 12:25:35 +0100
committerTim Smith <tsmith84@gmail.com>2020-02-03 13:12:23 -0800
commit95051c6f57add08a2a1f8f328ffa01e78fa6216d (patch)
tree0a32c59d048cff76248d21fe8e1e7cf89739c6b2
parentc0f2b9da9aa6702275644f39627995076dd5dd19 (diff)
downloadchef-95051c6f57add08a2a1f8f328ffa01e78fa6216d.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 50a6e5dd83..814585e40e 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -568,6 +568,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