55560a6916
```bash Examining openssh/map.jinja of type state [209] Jinja comment should have spaces before and after: {# comment #} openssh/map.jinja:4 {## Start imports as ##} [209] Jinja comment should have spaces before and after: {# comment #} openssh/map.jinja:19 {## merge the openssh pillar ##} ```
23 lines
919 B
Django/Jinja
23 lines
919 B
Django/Jinja
# -*- coding: utf-8 -*-
|
|
# vim: ft=jinja
|
|
|
|
{#- Start imports as #}
|
|
{% import_yaml 'openssh/defaults.yaml' as default_settings %}
|
|
{% import_yaml 'openssh/osfamilymap.yaml' as osfamilymap %}
|
|
{% import_yaml 'openssh/osmap.yaml' as osmap %}
|
|
{% import_yaml 'openssh/osfingermap.yaml' as osfingermap %}
|
|
|
|
{% set defaults = salt['grains.filter_by'](default_settings,
|
|
default='default',
|
|
merge=salt['grains.filter_by'](osfamilymap, grain='os_family',
|
|
merge=salt['grains.filter_by'](osmap, grain='os',
|
|
merge=salt['grains.filter_by'](osfingermap, grain='osfinger')
|
|
)
|
|
)
|
|
) %}
|
|
|
|
{#- merge the openssh pillar #}
|
|
{% set openssh = salt['pillar.get']('openssh', default=defaults['openssh'], merge=True) %}
|
|
{% set ssh_config = salt['pillar.get']('ssh_config', default=defaults['ssh_config'], merge=True) %}
|
|
{% set sshd_config = salt['pillar.get']('sshd_config', default=defaults['sshd_config'], merge=True) %}
|