This is an automated email from the ASF dual-hosted git repository.

kturner pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fluo-muchos.git


The following commit(s) were added to refs/heads/main by this push:
     new 611917f  Add conf/keys to Azure proxy ssh authorized_keys. (#399)
611917f is described below

commit 611917f78d263999a8c68543c17c473f596bf974
Author: Brian Loss <[email protected]>
AuthorDate: Tue Jun 15 09:24:21 2021 -0400

    Add conf/keys to Azure proxy ssh authorized_keys. (#399)
    
    If SSH public keys exist in the file conf/keys, then they are addded to
    the cluster user's .ssh/authorized_keys file on the created cluster, but
    not on the Azure proxy node, if used. This change adds the keys to the
    proxy node as well.
---
 ansible/roles/proxy/tasks/main.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ansible/roles/proxy/tasks/main.yml 
b/ansible/roles/proxy/tasks/main.yml
index 9a4fe07..e469c80 100644
--- a/ansible/roles/proxy/tasks/main.yml
+++ b/ansible/roles/proxy/tasks/main.yml
@@ -15,6 +15,9 @@
 # limitations under the License.
 #
 
+- name: "add conf/keys to ~/.ssh/authorized_keys"
+  authorized_key: user={{ cluster_user }} key="{{ lookup('file', 'conf/keys') 
}}"
+  tags: configure_os
 - name: "ensure cluster user exists and generate ssh key"
   user: name={{ cluster_user }} generate_ssh_key=yes ssh_key_bits=4096 
state=present
   become: yes

Reply via email to