Skip to content

Commit

Permalink
Merge pull request #198 from grycap/devel
Browse files Browse the repository at this point in the history
Fix SSH keys template
  • Loading branch information
micafer authored Oct 11, 2024
2 parents 9460b4f + ddd59ea commit d6c17e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion artifacts/add_ssh_key.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
- name: Add the authorized_key to the nodes
authorized_key:
user: "{{ username }}"
key: "{{ ssh_key }}"
key: "{{ item }}"
loop: "{{ ssh_keys }}"
15 changes: 8 additions & 7 deletions templates/ssh_keys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@ metadata:
- simple-node-disk.yml
tabs:
SSH Data:
- ssh_key:
tag_type: textarea
- ssh_keys

topology_template:

inputs:

ssh_key:
type: string
description: SSH Key/s to inject to the VM
default: ''
ssh_keys:
type: list
entry_schema:
type: string
description: SSH Keys to inject to the VM
default: []

node_templates:

Expand All @@ -39,4 +40,4 @@ topology_template:
configure:
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/add_ssh_key.yml
inputs:
ssh_key: { get_input: ssh_key }
ssh_keys: { get_input: ssh_keys }

0 comments on commit d6c17e1

Please sign in to comment.