mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-10-09 03:17:27 +02:00
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:
1 parent
a8cd7370df
commit
df477b25c2
25 files changed
+388
-119
No files matched your search
@@ -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() %}
|
||||
|
||||
Reference in new issue
Block a user