mirror of
https://github.com/saltstack-formulas/sysctl-formula.git
synced 2026-07-15 06:27:54 +02:00
Switch to cleaner pillar structure
This commit allows users to specify sysctl parameters in an easier format than the one that was used before. It moves settings out of the 'lookup' pillar namespace in a backward compatible manner and is modelled after the old 'params2' approach. It also introduces a simplified scheme, in which parameters can be specified as key-value pairs, which makes for cleaner pillars if there is no need to specify a custom configuration file.
This commit is contained in:
+5
-15
@@ -3,18 +3,8 @@ sysctl:
|
||||
pkg: procps-ng
|
||||
config:
|
||||
location: '/etc/sysctl.d'
|
||||
params:
|
||||
-
|
||||
name: fs.file-max
|
||||
value: 100000
|
||||
config: fs.conf
|
||||
-
|
||||
name: vm.swappiness
|
||||
value: 20
|
||||
# Setting params2 excludes all params values
|
||||
params2:
|
||||
fs.file-max:
|
||||
value: 100000
|
||||
config: fs.conf
|
||||
vm.swappiness:
|
||||
value: 20
|
||||
params:
|
||||
fs.file-max:
|
||||
value: 100000
|
||||
config: fs.conf
|
||||
vm.swappiness: 20
|
||||
|
||||
Reference in New Issue
Block a user