tosca_definitions_version: cloudify_dsl_1_3

imports:
  - https://raw.githubusercontent.com/cloudify-cosmo/cloudify-manager/4.1/resources/rest-service/cloudify/types/types.yaml
  - plugin.yaml

inputs:
  private_key: {}
  is_keypair_external: {}


node_templates:

  keypair:
    type: cloudify.openstack.nodes.KeyPair
    properties:
      private_key_path: { get_input: private_key }
      use_external_resource: { get_input: is_keypair_external }
      openstack_config:
        username: aaa
        password: aaa
        tenant_name: aaa
        auth_url: aaa