Adds support to customize /etc/ssh/moduli file

This commit is contained in:
Ingo Bente
2015-07-02 19:09:41 +02:00
parent 9c5f3ea819
commit a927107b28
4 changed files with 22 additions and 0 deletions
+1
View File
@@ -5,3 +5,4 @@ openssh:
banner_src: salt://openssh/files/banner
ssh_known_hosts: /etc/ssh/ssh_known_hosts
dig_pkg: dnsutils
ssh_moduli: /etc/ssh/moduli
+8
View File
@@ -0,0 +1,8 @@
{% from "openssh/map.jinja" import openssh with context %}
{% if salt['pillar.get']('openssh:moduli', False) %}
ssh_moduli:
file.managed:
- name: {{ openssh.ssh_moduli }}
- contents_pillar: openssh:moduli
{% endif %}