- watch_in: | - watch_in: | ||||
- service: openssh | - service: openssh | ||||
{% for keyType in ['dsa', 'rsa'] %} | |||||
{% for keyType in ['ecdsa', 'dsa', 'rsa'] %} | |||||
{% if salt['pillar.get']('openssh:provide_' ~ keyType ~ '_keys', False) %} | {% if salt['pillar.get']('openssh:provide_' ~ keyType ~ '_keys', False) %} | ||||
ssh_host_{{ keyType }}_key: | ssh_host_{{ keyType }}_key: | ||||
file.managed: | file.managed: |