Access global parameter in hash

Hi there,

I’d like to use the content of a global parameter inside a hash.

This is the hash I assigned to a host group:

  comment: John Doe
  shell: "/bin/bash"
  password: "$1$..."
  - admins
  purge_sshkeys: true
  - ssh-rsa ...

Now I’d like to insert an additional ssh key that is declared as global parameter (global_ssh_key). Is it possible to parse this?

You can use ERB iirc, so stick some ERB syntax in there? I know I have a couple of parameters that use ERB logic based on other param values in foreman so I can’t see why this wouldn’t work…