feat(map): update to v4 “map.jinja”

The `map.jinja` now exports a single variable called `mapdata`.

We extract the `openssh`, `sshd_config` and `ssh_config` from it to
minimize the changes to `.sls` files.
This commit is contained in:
Daniel Dehennin committed 2020-07-31 10:54:40 +02:00
1 parent a8cd7370df
commit df477b25c2
25 files changed
+388 -119

No files matched your search

+3 -1
View File
@@ -1,7 +1,9 @@
include:
- openssh
{% from "openssh/map.jinja" import openssh, sshd_config with context -%}
{% from "openssh/map.jinja" import mapdata with context -%}
{%- set openssh = mapdata.openssh %}
{%- set sshd_config = mapdata.sshd_config %}
{%- set authorized_keys_file = sshd_config.get("AuthorizedKeysFile", None) %}
{%- for store, config in openssh.get("auth_map", {}).items() %}