Project

General

Profile

Actions

User story #9706

closed

Method to set sysctl settings

Added by Janos Mattyasovszky about 8 years ago. Updated over 2 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Generic methods
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

Our goal is to have a standardized way to set sysctl settings (I am actually astonished this has not been requested yet by anybody).

This would be achieved low-level by a generic NCF method to Set sysctl values.

Input:
  • json hash or array (referencable by getindices)
  • sysctl config filename
Sanity checks:
  • class “linux”
  • the existence of “/proc/sys” (to only run if the kernel is compiled with sysctl enabled).
Actions:
  • edit /etc/sysctl.conf for each key promising the correct “key = value” line is present
  • writing the value using the sysctl (by paths.sysctl) command if not already set (we could query all sysctl settings in one step and store it in an array to speed up parsing)
Filename:
  • 30_generic_methods/sysctl_set.cf

Related issues 1 (0 open1 closed)

Is duplicate of Rudder - Bug #16882: Generic method sysctl_valueReleasedFélix DALLIDETActions
Actions

Also available in: Atom PDF