mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-10-02 16:40:26 +02:00
feat(map): generate a YAML file to validate map.jinja
We provide a new `_mapdata` state which generate a `/tmp/salt_mapdata_dump.yaml` to be validated by `Inspec`.
This commit is contained in:
1 parent
70389b5964
commit
e4ab335077
3 files changed
+45
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# yamllint disable rule:indentation rule:line-length
|
||||
# {{ grains.get('osfinger', grains.os) }}
|
||||
---
|
||||
{#- use salt.slsutil.serialize to avoid encoding errors on some platforms #}
|
||||
{{ salt['slsutil.serialize'](
|
||||
'yaml',
|
||||
map,
|
||||
default_flow_style=False,
|
||||
allow_unicode=True,
|
||||
)
|
||||
| regex_replace("^\s+'$", "'", multiline=True)
|
||||
| trim
|
||||
}}
|
||||
Reference in new issue
Block a user