SSH Key Plugin

Cloudify Utilities: SSH Key

This plugin enables a user to create a private and public key.

Notes

Example 1:

Node Template with Secret Creation:

  agent_key:
    type: cloudify.keys.nodes.RSAKey
    properties:
      resource_config:
        key_name: { get_input: agent_key_name }
        openssh_format: true
      use_secret_store: true

On this example we created a SSH key(private and public) and stored its values on secret store.

The names of the secrets will be: key_name_private, key_name_public.

From version 1.20.0 of utilities plugin the user can create key by using existing SSH key secrets.

Example 2:

Lets say we deployed the last example with key_name: ‘my_key’, as mentioned before two secrets will be created(my_key_private, my_key_public).

Then if we deploy this node:

node_templates:

  agent_key:
    type: cloudify.keys.nodes.RSAKey
    properties:
      resource_config:
        key_name: 'my_key'
        openssh_format: true
      use_secret_store: true
      use_secrets_if_exist: true

this node will use the existing secrets my_key_private and my_key_public as his key values.If the secrets dont exitst

Notes