sysctl pillars

This commit is contained in:
do
2021-02-09 11:48:15 +01:00
parent a5d20f1a9e
commit 85689185a6
6 changed files with 16 additions and 11 deletions

View File

@@ -5,7 +5,7 @@
include:
- base.services
- base.hardware
- base.sys
- base.hostconfig
- base.sysctl
- saltmine
- prometheus.node_exporter

View File

@@ -1,3 +0,0 @@
include:
- .sysctl
- .cp15_barrier

4
base/sysctl/init.sls Normal file
View File

@@ -0,0 +1,4 @@
include:
- base.sysctl.system
- base.sysctl.net_params
- base.sysctl.cp15_barrier

View File

@@ -1,13 +1,10 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
sysctl:
lookup:
config:
location: '/etc/sysctl.d'
location: /etc/sysctl.d
params:
vm.swappiness: 10
net.ipv4.ip_forward: 1
net.core.rmem_max:
value: 16777216
@@ -18,7 +15,7 @@ sysctl:
net.ipv4.tcp_rmem:
value: 4096 87380 16777216
net.ipv4.tcp_wmem:
value: 4096 65536 16777216
value: 4096 65536 16777216
net.ipv4.tcp_mtu_probing:
value: 2
net.ipv4.tcp_fin_timeout:
@@ -26,5 +23,4 @@ sysctl:
net.ipv4.tcp_keepalive_intvl:
value: 30
net.ipv4.tcp_keepalive_probes:
value: 5
value: 5

8
base/sysctl/system.sls Normal file
View File

@@ -0,0 +1,8 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
sysctl:
lookup:
config:
location: /etc/sysctl.d
params:
vm.swappiness: 10