Browse Source

Merge branch 'feature-sysctl' into 'master'

Linux sysctl kernel parameters

sysctl kernel

See merge request !13
tags/2016.12
Jakub Pavlik 9 years ago
parent
commit
116d627368
2 changed files with 21 additions and 0 deletions
  1. +12
    -0
      README.rst
  2. +9
    -0
      linux/system/kernel.sls

+ 12
- 0
README.rst View File

@@ -161,6 +161,18 @@ not present. Also install extra modules and headers for this kernel:
headers: true
version: 4.2.0-22

Systcl kernel parameters

.. code-block:: yaml

linux:
system:
kernel:
sysctl:
net.ipv4.tcp_keepalive_intvl: 3
net.ipv4.tcp_keepalive_time: 30
net.ipv4.tcp_keepalive_probes: 8

Repositories
~~~~~~~~~~~~


+ 9
- 0
linux/system/kernel.sls View File

@@ -40,6 +40,15 @@ linux_kernel_package:

{%- endif %}

{%- for sysclt_name, sysctl_value in sytem.kernel.get('sysctl', {}).iteritems() %}

linux_kernel_{{ sysclt_name }}
sysctl.present:
- name: {{ sysclt_name }}
- value: {{ sysctl_value }}

{%- endfor %}

{%- endif %}

{%- endif %}

Loading…
Cancel
Save