0
0
llucycodes42
This is a code block that creates a public key in the rundeck environment. The rundeck_public_key resource takes an input of the name of the public key and the description of the public key. The path to the public key is also passed in. Lastly, the key_material that will be used to generate the public key is specified.
Shortcut: tf_rundeck_public_key
resource "rundeck_public_key" "${myResourceName}" {
name = "my-${myResourceName}"
description = "my-description-${myResourceName}"
path = "anvils/id_rsa.pub"
key_material = "ssh-rsa yada-yada-yada"
}