]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Add task for SSH pubkeys
authorZack Cerza <zack@redhat.com>
Tue, 31 Mar 2015 21:05:28 +0000 (15:05 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 7 Apr 2015 21:52:51 +0000 (15:52 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
roles/testnode/tasks/main.yml
roles/testnode/tasks/ssh_pubkeys.yml [new file with mode: 0644]

index bc88e2781a139d02464a7d400ba5f421bb4e39c6..311c4bff3559c81f3c02c45802159b202cab7b63 100644 (file)
@@ -42,3 +42,9 @@
 - include: pip.yml
   tags:
     - pip
+
+# add SSH pubkeys to authorized_keys
+- include: ssh_pubkeys.yml
+  tags:
+  - ssh
+  - pubkeys
diff --git a/roles/testnode/tasks/ssh_pubkeys.yml b/roles/testnode/tasks/ssh_pubkeys.yml
new file mode 100644 (file)
index 0000000..2579b91
--- /dev/null
@@ -0,0 +1,5 @@
+---
+- name: Add ssh pubkeys
+  authorized_key: 
+    user="{{ teuthology_user }}"
+    key=https://raw.githubusercontent.com/ceph/keys/autogenerated/ssh/@all.pub