mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-10-24 09:59:35 +02:00
Add option to remove ssh_host_keys
This commit is contained in:
1 parent
329ad59401
commit
2a68ccac1a
2 files changed
+13
No files matched your search
@@ -21,6 +21,15 @@ ssh_generate_host_{{ keyType }}_key:
|
||||
- creates: /etc/ssh/ssh_host_{{ keyType }}_key
|
||||
- user: root
|
||||
|
||||
{% elif salt['pillar.get']('openssh:absent_' ~ keyType ~ '_keys', False) %}
|
||||
ssh_host_{{ keyType }}_key:
|
||||
file.absent:
|
||||
- name: /etc/ssh/ssh_host_{{ keyType }}_key
|
||||
|
||||
ssh_host_{{ keyType }}_key.pub:
|
||||
file.absent:
|
||||
- name: /etc/ssh/ssh_host_{{ keyType }}_key.pub
|
||||
|
||||
{% elif salt['pillar.get']('openssh:provide_' ~ keyType ~ '_keys', False) %}
|
||||
ssh_host_{{ keyType }}_key:
|
||||
file.managed:
|
||||
|
||||
Reference in new issue
Block a user