Project

General

Profile

User story #9706

Updated by Nicolas CHARLES over 7 years ago

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 

Back