From f4cf9aa22bfee93457167238923fc1b2b3488842 Mon Sep 17 00:00:00 2001 From: Alexander Weidinger Date: Tue, 1 Aug 2017 14:50:08 +0200 Subject: [PATCH] CentOS 6: UsePrivilegeSeparation 'yes' (fixes #108) --- openssh/map.jinja | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/openssh/map.jinja b/openssh/map.jinja index 8d81307..e9945a3 100644 --- a/openssh/map.jinja +++ b/openssh/map.jinja @@ -84,9 +84,20 @@ that differ from whats in defaults.yaml , merge=salt['pillar.get']('sshd_config:lookup')) %} +{% set os_finger_map = salt['grains.filter_by']({ + 'CentOS-6': { + 'UsePrivilegeSeparation': 'yes', + }, + 'default': {} + } + , grain="osfinger" + , merge=salt['pillar.get']('sshd_config:lookup')) +%} + {## Merge the flavor_map to the default settings ##} {% do default_settings.sshd_config.update(os_family_map) %} +{% do default_settings.sshd_config.update(os_finger_map) %} {## Merge in sshd_config:lookup pillar ##} {% set sshd_config = salt['pillar.get'](