Sha256: 0a5f6e4602b823367ac04f5dcfc4f36be1b6221e451037b50be8f7c144250cf5
Contents?: true
Size: 440 Bytes
Versions: 3
Compression:
Stored size: 440 Bytes
Contents
<%# kind: snippet name: remote_execution_ssh_keys %> <% if @host.params['remote_execution_ssh_keys'].present? %> <% ssh_user = @host.params['remote_execution_ssh_user'] || 'root' %> <% ssh_path = "~#{ssh_user}/.ssh" %> mkdir -p <%= ssh_path %> cat << EOF >> <%= ssh_path %>/authorized_keys <%= @host.params['remote_execution_ssh_keys'].join("\n") %> EOF chmod 700 <%= ssh_path %> chmod 600 <%= ssh_path %>/authorized_keys <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems