Class: Ansible::Ruby::Modules::Os_keypair

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/cloud/openstack/os_keypair.rb

Overview

Add or Remove key pair from OpenStack

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#nameString

Returns Name that has to be given to the key pair.

Returns:

  • (String)

    Name that has to be given to the key pair



11
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_keypair.rb', line 11

attribute :name

#public_keyObject?

Returns The public key that would be uploaded to nova and injected into VMs upon creation.

Returns:

  • (Object, nil)

    The public key that would be uploaded to nova and injected into VMs upon creation.



15
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_keypair.rb', line 15

attribute :public_key

#public_key_fileString?

Returns Path to local file containing ssh public key. Mutually exclusive with public_key.

Returns:

  • (String, nil)

    Path to local file containing ssh public key. Mutually exclusive with public_key.



18
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_keypair.rb', line 18

attribute :public_key_file

#state:present, ...

Returns Should the resource be present or absent.

Returns:

  • (:present, :absent, nil)

    Should the resource be present or absent.



22
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_keypair.rb', line 22

attribute :state