Browse Source

Install ssh private key on fastd nodes which should accept connections from client nodes.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 7 years ago
parent
commit
17dbdf3d1a
1 changed files with 12 additions and 0 deletions
  1. 12 0
      keys/init.sls

+ 12 - 0
keys/init.sls

@@ -0,0 +1,12 @@
+
+
+#
+# SSH private key for GIT access
+{% if 'fastd_peers' in salt['pillar.get'] ('nodes:' ~ grains['id'] ~ ':roles', []) %}
+/root/.ssh/ffho_peers_git.id_rsa:
+  file.managed:
+    - contents_pillar: ffho:keys:peers_git:ssh_privkey
+    - user: root
+    - group: root
+    - mode: 400
+{% endif %}