- watch_in: | - watch_in: | ||||
- service: openssh | - service: openssh | ||||
{% for keyType in ['ecdsa', 'dsa', 'rsa'] %} | |||||
{% for keyType in ['ecdsa', 'dsa', 'rsa', 'ed25519'] %} | |||||
{% if salt['pillar.get']('openssh:generate_' ~ keyType ~ '_keys', False) %} | {% if salt['pillar.get']('openssh:generate_' ~ keyType ~ '_keys', False) %} | ||||
ssh_generate_host_{{ keyType }}_key: | ssh_generate_host_{{ keyType }}_key: | ||||
cmd.run: | cmd.run: |
-----END RSA PRIVATE KEY----- | -----END RSA PRIVATE KEY----- | ||||
public_key: | | public_key: | | ||||
ssh-rsa NOT_DEFINED | ssh-rsa NOT_DEFINED | ||||
generate_ed25519_keys: False | |||||
provide_ed25519_keys: False | |||||
ed25519: | |||||
private_key: | | |||||
-----BEGIN OPENSSH PRIVATE KEY----- | |||||
NOT_DEFINED | |||||
-----END OPENSSH PRIVATE KEY----- | |||||
public_key: | | |||||
ssh-ed25519 NOT_DEFINED |