## How to configure this policy
I am too lazy to explain it right now. Please look at examples/promises.cf for an example implementation.
First get the policy into your masterfiles
cd /tmp
export MASTERFILES=/var/cfengine/masterfiles
git clone https://github.com/nickanderson/cfengine-sysctl.git
cd cfengine-sysctl
mkdir -p $MASTERFILES/services/sysctl
git archive master | tar -x -C $MASTERFILES/services/sysctl
Include def.cf into your inputs
body common control
{
inputs => {
# Reports
@(cfengine_reports.inputs),
"services/sysctl/def.cf",
# autorun system
@(services_autorun.inputs),
};
}
Activate the features you want in the proper context.
For example to inventory the settings in /etc/sysctl.conf on all linux nodes:
bundle agent main
# User Defined Service Catalogue
{
methods:
# Activate your custom policies here
linux::
"Inventory /etc/sysctl.conf settings"
usebundle => sysctl_conf_inventory;
}