authorized_keys.tmpl 257 B

1234
  1. {%- set ssh_config = salt['pillar.get']('ssh') -%}
  2. {%- set node_config = salt['pillar.get']('nodes:' ~ grains['id']) -%}
  3. {%- set auth_keys = salt['ffho_auth.get_ssh_authkeys'](ssh_config, node_config, grains['id'], username) -%}
  4. {{ "\n".join (auth_keys) }}