Saltstack Official OpenSSH Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

26 Zeilen
743B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. ---
  4. {#- Get the `tplroot` from `tpldir` #}
  5. {%- set tplroot = tpldir.split('/')[0] %}
  6. {%- from tplroot ~ "/map.jinja" import openssh with context %}
  7. {%- from tplroot ~ "/map.jinja" import ssh_config with context %}
  8. {%- from tplroot ~ "/map.jinja" import sshd_config with context %}
  9. {%- set output_file = '/tmp/salt_mapdata_dump.yaml' %}
  10. {%- set map = {
  11. 'openssh': openssh,
  12. 'ssh_config': ssh_config,
  13. 'sshd_config': sshd_config,
  14. } %}
  15. {%- do salt['log.debug']( map | yaml(False) ) %}
  16. {{ tplroot }}-mapdata-dump:
  17. file.managed:
  18. - name: {{ output_file }}
  19. - source: salt://{{ tplroot }}/_mapdata/_mapdata.jinja
  20. - template: jinja
  21. - context:
  22. map: {{ map | yaml }}