charmhelpers.core.sysctl

charmhelpers.core.sysctl.create(sysctl_dict, sysctl_file)

Creates a sysctl.conf file from a YAML associative array

Parameters:
  • sysctl_dict (str) – a YAML-formatted string of sysctl options eg “{ ‘kernel.max_pid’: 1337 }”
  • sysctl_file (str or unicode) – path to the sysctl file to be saved
Returns:

None