Bug #16882
closedGeneric method sysctl_value
Description
- the key
- the value,
- the file name where to put the value in /etc/sysctl.d
It would check the keys/value running sysctl -n key, and:
If it success, with the correct value, report a Success (wherever the key is defined)
If its an error, it would add it in the file given as a parameter (creating it if necessary), run sysctl -p, and report a Repaired status
- create the correct key/value in the file given as a parameter
- run sysctl -p
- run sysctl -n to check if the value is set or not (given the precedence of files, it may not be used)
report based on the return of sysctl -n
Updated by Nicolas CHARLES almost 5 years ago
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
Updated by Nicolas CHARLES almost 5 years ago
Optionnal parameter are
Min: The Value is only changed/set, if the value is unset or lower than what is provided as input for Generic Method
Max: The Value is only changed/set, if the value is unset or higher than what is provided as input for Generic Method·
Default (default value): The Value is enforced to be what is provided as input for Generic Method
Min and Max will be alphanumerically compared. If comparision fails, it won't change anything and define an "error" state
Updated by Nicolas CHARLES almost 5 years ago
Work in progess here: https://github.com/ncharles/ncf/commit/4d102a5ac65acaadb4824eddf663a49181319c1a
Updated by Nicolas CHARLES almost 5 years ago
- Assignee changed from Nicolas CHARLES to Félix DALLIDET
- Pull Request set to https://github.com/Normation/ncf/pull/1153
Updated by Nicolas CHARLES almost 5 years ago
- Status changed from In progress to Pending technical review
Updated by Nicolas CHARLES almost 5 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset 5ab77255e85bbeec24bd64313450f3b2b236ae22.
Updated by Nicolas CHARLES almost 5 years ago
Applied in changeset 6a8a5bcb9123cdcdec3bfb9821857e2637619b35.
Updated by Nicolas CHARLES over 4 years ago
- Fix check changed from To do to Checked
Updated by Alexis Mousset over 4 years ago
- Name check changed from To do to Reviewed
Updated by Vincent MEMBRÉ over 4 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 5.0.17 and 6.0.5 which were released today.
Updated by Alexis Mousset over 4 years ago
- Has duplicate User story #9706: Method to set sysctl settings added
Updated by Alexis Mousset over 2 years ago
- Project changed from 41 to Rudder
- Category changed from Generic methods to Generic methods