mirror of
https://github.com/saltstack-formulas/sysctl-formula.git
synced 2026-10-21 04:03:12 +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:
1 parent
97e305dc97
commit
cb2822f0f4
5 files changed
+91
-46
No files matched your search
+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