Class: Ansible::Ruby::Modules::Ovirt_disk

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb,
lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disks.rb

Overview

Module to manage Virtual Machine and floating disks in oVirt/RHV.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

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

Constructor Details

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

Instance Method Details

#bootableObject?

Returns I(True) if the disk should be bootable. By default when disk is created it isn’t bootable.

Returns:

  • (Object, nil)

    I(True) if the disk should be bootable. By default when disk is created it isn’t bootable.



74
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 74

attribute :bootable

#descriptionString?

Returns Description of the disk image to manage.

Returns:

  • (String, nil)

    Description of the disk image to manage.



20
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 20

attribute :description

#download_image_pathString?

Returns Path on a file system where disk should be downloaded.,Note that you must have an valid oVirt/RHV engine CA in your system trust store or you must provide it in C(ca_file) parameter.,Note that the disk is not downloaded when the file already exists, but you can forcibly download the disk when using C(force) I (true).

Returns:

  • (String, nil)

    Path on a file system where disk should be downloaded.,Note that you must have an valid oVirt/RHV engine CA in your system trust store or you must provide it in C(ca_file) parameter.,Note that the disk is not downloaded when the file already exists, but you can forcibly download the disk when using C(force) I (true).



35
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 35

attribute :download_image_path

#forceObject?

Returns Please take a look at C(image_path) documentation to see the correct usage of this parameter.

Returns:

  • (Object, nil)

    Please take a look at C(image_path) documentation to see the correct usage of this parameter.



64
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 64

attribute :force

#format:raw, ...

Returns Specify format of the disk.,Note that this option isn’t idempotent as it’s not currently possible to change format of the disk via API.

Returns:

  • (:raw, :cow, nil)

    Specify format of the disk.,Note that this option isn’t idempotent as it’s not currently possible to change format of the disk via API.



50
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 50

attribute :format

#idString?

Returns ID of the disk to manage. Either C(id) or C(name) is required.

Returns:

  • (String, nil)

    ID of the disk to manage. Either C(id) or C(name) is required.



12
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 12

attribute :id

#image_providerString?

Returns When C(state) is I(exported) disk is exported to given Glance image provider.,C(IMPORTANT),There is no reliable way to achieve idempotency, so every time you specify this parameter the disk is exported, so please handle your playbook accordingly to not export the disk all the time. This option is valid only for template disks.

Returns:

  • (String, nil)

    When C(state) is I(exported) disk is exported to given Glance image provider.,C(IMPORTANT),There is no reliable way to achieve idempotency, so every time you specify this parameter the disk is exported, so please handle your playbook accordingly to not export the disk all the time. This option is valid only for template disks.



90
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 90

attribute :image_provider

#interface:virtio, ...

Returns Driver of the storage interface.,It’s required parameter when creating the new disk.

Returns:

  • (:virtio, :ide, :virtio_scsi, nil)

    Driver of the storage interface.,It’s required parameter when creating the new disk.



46
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 46

attribute :interface

#logical_unitHash?

Returns Dictionary which describes LUN to be directly attached to VM:,C(address) - Address of the storage server. Used by iSCSI.,C(port) - Port of the storage server. Used by iSCSI.,C(target) - iSCSI target.,C(lun_id) - LUN id.,C(username) - CHAP Username to be used to access storage server. Used by iSCSI.,C(password) - CHAP Password of the user to be used to access storage server. Used by iSCSI.,C(storage_type) - Storage type either I(fcp) or I(iscsi).

Returns:

  • (Hash, nil)

    Dictionary which describes LUN to be directly attached to VM:,C(address) - Address of the storage server. Used by iSCSI.,C(port) - Port of the storage server. Used by iSCSI.,C(target) - iSCSI target.,C(lun_id) - LUN id.,C(username) - CHAP Username to be used to access storage server. Used by iSCSI.,C(password) - CHAP Password of the user to be used to access storage server. Used by iSCSI.,C(storage_type) - Storage type either I(fcp) or I(iscsi).



80
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 80

attribute :logical_unit

#nameString?

Returns Name of the disk to manage. Either C(id) or C(name)/C(alias) is required.

Returns:

  • (String, nil)

    Name of the disk to manage. Either C(id) or C(name)/C(alias) is required.



16
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 16

attribute :name

#openstack_volume_typeObject?

Returns Name of the openstack volume type. This is valid when working with cinder.

Returns:

  • (Object, nil)

    Name of the openstack volume type. This is valid when working with cinder.



87
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 87

attribute :openstack_volume_type

#profileObject?

Returns Disk profile name to be attached to disk. By default profile is chosen by oVirt/RHV engine.

Returns:

  • (Object, nil)

    Disk profile name to be attached to disk. By default profile is chosen by oVirt/RHV engine.



67
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 67

attribute :profile

#quota_idString?

Returns Disk quota ID to be used for disk. By default quota is chosen by oVirt/RHV engine.

Returns:

  • (String, nil)

    Disk quota ID to be used for disk. By default quota is chosen by oVirt/RHV engine.



70
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 70

attribute :quota_id

#shareableObject?

Returns I(True) if the disk should be shareable. By default when disk is created it isn’t shareable.

Returns:

  • (Object, nil)

    I(True) if the disk should be shareable. By default when disk is created it isn’t shareable.



77
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 77

attribute :shareable

#sizeString?

Returns Size of the disk. Size should be specified using IEC standard units. For example 10GiB, 1024MiB, etc.,Size can be only increased, not decreased.

Returns:

  • (String, nil)

    Size of the disk. Size should be specified using IEC standard units. For example 10GiB, 1024MiB, etc.,Size can be only increased, not decreased.



42
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 42

attribute :size

#sparseObject?

Returns I(True) if the disk should be sparse (also known as I(thin provision)). If the parameter is omitted, cow disks will be created as sparse and raw disks as I(preallocated),Note that this option isn’t idempotent as it’s not currently possible to change sparseness of the disk via API.

Returns:

  • (Object, nil)

    I(True) if the disk should be sparse (also known as I(thin provision)). If the parameter is omitted, cow disks will be created as sparse and raw disks as I(preallocated),Note that this option isn’t idempotent as it’s not currently possible to change sparseness of the disk via API.



54
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 54

attribute :sparse

#sparsifyObject?

Returns I(True) if the disk should be sparsified.,Sparsification frees space in the disk image that is not used by its filesystem. As a result, the image will occupy less space on the storage.,Note that this parameter isn’t idempotent, as it’s not possible to check if the disk should be or should not be sparsified.

Returns:

  • (Object, nil)

    I(True) if the disk should be sparsified.,Sparsification frees space in the disk image that is not used by its filesystem. As a result, the image will occupy less space on the storage.,Note that this parameter isn’t idempotent, as it’s not possible to check if the disk should be or should not be sparsified.



84
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 84

attribute :sparsify

#state:present, ...

Returns Should the Virtual Machine disk be present/absent/attached/detached.

Returns:

  • (:present, :absent, :attached, :detached, nil)

    Should the Virtual Machine disk be present/absent/attached/detached.



31
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 31

attribute :state

#storage_domainString?

Returns Storage domain name where disk should be created. By default storage is chosen by oVirt/RHV engine.

Returns:

  • (String, nil)

    Storage domain name where disk should be created. By default storage is chosen by oVirt/RHV engine.



57
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 57

attribute :storage_domain

#storage_domainsObject?

Returns Storage domain names where disk should be copied.,C(IMPORTANT),There is no reliable way to achieve idempotency, so every time you specify this parameter the disks are copied, so please handle your playbook accordingly to not copy the disks all the time. This is valid only for VM and floating disks, template disks works as expected.

Returns:

  • (Object, nil)

    Storage domain names where disk should be copied.,C(IMPORTANT),There is no reliable way to achieve idempotency, so every time you specify this parameter the disks are copied, so please handle your playbook accordingly to not copy the disks all the time. This is valid only for VM and floating disks, template disks works as expected.



61
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 61

attribute :storage_domains

#upload_image_pathObject?

Returns Path to disk image, which should be uploaded.,Note that currently we support only compatibility version 0.10 of the qcow disk.,Note that you must have an valid oVirt/RHV engine CA in your system trust store or you must provide it in C(ca_file) parameter.,Note that there is no reliable way to achieve idempotency, so if you want to upload the disk even if the disk with C(id) or C(name) exists, then please use C(force) I(true). If you will use C(force) I(false), which is default, then the disk image won’t be uploaded.

Returns:

  • (Object, nil)

    Path to disk image, which should be uploaded.,Note that currently we support only compatibility version 0.10 of the qcow disk.,Note that you must have an valid oVirt/RHV engine CA in your system trust store or you must provide it in C(ca_file) parameter.,Note that there is no reliable way to achieve idempotency, so if you want to upload the disk even if the disk with C(id) or C(name) exists, then please use C(force) I(true). If you will use C(force) I(false), which is default, then the disk image won’t be uploaded.



39
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 39

attribute :upload_image_path

#vm_idObject?

Returns ID of the Virtual Machine to manage. Either C(vm_id) or C(vm_name) is required if C(state) is I(attached) or I(detached).

Returns:

  • (Object, nil)

    ID of the Virtual Machine to manage. Either C(vm_id) or C(vm_name) is required if C(state) is I(attached) or I(detached).



28
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 28

attribute :vm_id

#vm_nameString?

Returns Name of the Virtual Machine to manage. Either C(vm_id) or C(vm_name) is required if C(state) is I(attached) or I(detached).

Returns:

  • (String, nil)

    Name of the Virtual Machine to manage. Either C(vm_id) or C(vm_name) is required if C(state) is I(attached) or I(detached).



24
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 24

attribute :vm_name