2019-02-12 14:22:14 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=jinja
|
|
|
|
|
2019-10-09 16:00:50 +02:00
|
|
|
{#- Start imports as #}
|
2019-02-12 19:11:46 +01:00
|
|
|
{% import_yaml 'openssh/defaults.yaml' as default_settings %}
|
2019-02-12 14:22:14 +01:00
|
|
|
{% import_yaml 'openssh/osfamilymap.yaml' as osfamilymap %}
|
|
|
|
{% import_yaml 'openssh/osmap.yaml' as osmap %}
|
|
|
|
{% import_yaml 'openssh/osfingermap.yaml' as osfingermap %}
|
|
|
|
|
2019-02-12 19:11:46 +01:00
|
|
|
{% 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')
|
|
|
|
)
|
|
|
|
)
|
|
|
|
) %}
|
2019-02-12 14:22:14 +01:00
|
|
|
|
2019-10-09 16:00:50 +02:00
|
|
|
{#- merge the openssh pillar #}
|
2019-02-12 14:22:14 +01:00
|
|
|
{% 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) %}
|