0
0
mirror of https://github.com/saltstack-formulas/sysctl-formula.git synced 2024-11-27 23:07:54 +01:00
Go to file
2015-01-24 17:14:58 +01:00
sysctl sysctl-formula 2015-01-24 17:14:58 +01:00
pillar.example sysctl-formula 2015-01-24 17:14:58 +01:00
README.rst sysctl-formula 2015-01-24 17:14:58 +01:00

sysctl
======

This formula ensures that a sysctl parameter is present on the system
from a pillar file.


Here's a small pillar data sample::

    sysclt:
      lookup:
        pkg: procps-ng
        config_location: /etc/sysctl.d
      params:
        vm.swappines: 
          value: 20
          config: 10-swap.conf
        fs.file-max: 10000


The state sysclt will ensure these are present on the system
based on the sysctl module of salt. 

if no config value is given the key value will be written based host system.
on systemd systems this will be /etc/sysctl.d/99-salt.conf
on sysv init systems it will be /etc/sysctl.conf