charmhelpers.core.sysctl

charmhelpers.core.sysctl.create(sysctl_dict, sysctl_file, ignore=False)

Creates a sysctl.conf file from a YAML associative array

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

None