I'm getting the following error and am stumped.
BUNDLE ChangeSysctlSettings( {'net_core_rmem_max','3','33554432'} )
cf3 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
cf3
cf3 ? Augment scope ChangeSysctlSettings with setting
cf3 ? Augment scope ChangeSysctlSettings with field
cf3 ? Augment scope ChangeSysctlSettings with value
cf3 ?? Private class context
Below is the content of sdm.cf:
bundle agent sdm
{
files:
sdm_hosts::
dmx17::
"/etc/sysctl.conf"
#edit_line => ChangeSysctlSettings(setting,field,value);
classes => if_repaired("sysctl_reconfigured"),
handle => "sysctl_replace_settings",
edit_line =>
ChangeSysctlSettings("net.core.rmem_max","3","33554432");
commands:
restart_sysctl::
"/sbin/sysctl -p";
processes:
"sbin/sysctl"
restart_class => "restart_sysctl";
}
bundle edit_line ChangeSysctlSettings(setting,field,value)
{
field_edits:
"$(setting).*"
#Change the settings to parameter
edit_field => col(" ","$(field)","$(value)","set");
}
body edit_field col(split,col,newval,method)
{
field_separator => "$(split)";
select_field => "$(col)";
value_separator => ",";
field_value => "$(newval)";
field_operation => "$(method)";
}
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine