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:
Wolodja Wentland
2016-04-26 16:37:07 +02:00
parent 97e305dc97
commit cb2822f0f4
5 changed files with 91 additions and 46 deletions
+5 -15
View File
@@ -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