Skip to content

cfrost/cfengine-sysctl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sysctl - Policy related to sysctl

## How to configure this policy

I am too lazy to explain it right now. Please look at examples/promises.cf for an example implementation.

How to integrate into your policy

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;
}

About

Policy to inventory and manage sysctl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published