Class: Ansible::Ruby::Modules::Ovirt_disk
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ovirt_disk
- 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
-
#bootable ⇒ Object?
I(True) if the disk should be bootable.
-
#description ⇒ String?
Description of the disk image to manage.
-
#download_image_path ⇒ String?
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).
-
#force ⇒ Object?
Please take a look at C(image_path) documentation to see the correct usage of this parameter.
-
#format ⇒ :raw, ...
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.
-
#id ⇒ String?
ID of the disk to manage.
-
#image_provider ⇒ String?
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.
-
#interface ⇒ :virtio, ...
Driver of the storage interface.,It’s required parameter when creating the new disk.
-
#logical_unit ⇒ Hash?
Dictionary which describes LUN to be directly attached to VM:,C(address) - Address of the storage server.
-
#name ⇒ String?
Name of the disk to manage.
-
#openstack_volume_type ⇒ Object?
Name of the openstack volume type.
-
#profile ⇒ Object?
Disk profile name to be attached to disk.
-
#quota_id ⇒ String?
Disk quota ID to be used for disk.
-
#shareable ⇒ Object?
I(True) if the disk should be shareable.
-
#size ⇒ String?
Size of the disk.
-
#sparse ⇒ Object?
I(True) if the disk should be sparse (also known as I(thin provision)).
-
#sparsify ⇒ Object?
I(True) if the disk should be sparsified.,Sparsification frees space in the disk image that is not used by its filesystem.
-
#state ⇒ :present, ...
Should the Virtual Machine disk be present/absent/attached/detached.
-
#storage_domain ⇒ String?
Storage domain name where disk should be created.
-
#storage_domains ⇒ Object?
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.
-
#upload_image_path ⇒ Object?
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).
-
#vm_id ⇒ Object?
ID of the Virtual Machine to manage.
-
#vm_name ⇒ String?
Name of the Virtual Machine to manage.
Methods inherited from Base
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
#bootable ⇒ Object?
74 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 74 attribute :bootable |
#description ⇒ String?
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 20 attribute :description |
#download_image_path ⇒ String?
35 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 35 attribute :download_image_path |
#force ⇒ Object?
64 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 64 attribute :force |
#format ⇒ :raw, ...
50 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 50 attribute :format |
#id ⇒ String?
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 12 attribute :id |
#image_provider ⇒ String?
90 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 90 attribute :image_provider |
#interface ⇒ :virtio, ...
46 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 46 attribute :interface |
#logical_unit ⇒ Hash?
80 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 80 attribute :logical_unit |
#name ⇒ String?
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 16 attribute :name |
#openstack_volume_type ⇒ Object?
87 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 87 attribute :openstack_volume_type |
#profile ⇒ Object?
67 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 67 attribute :profile |
#quota_id ⇒ String?
70 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 70 attribute :quota_id |
#shareable ⇒ Object?
77 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 77 attribute :shareable |
#size ⇒ String?
42 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 42 attribute :size |
#sparse ⇒ Object?
54 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 54 attribute :sparse |
#sparsify ⇒ Object?
84 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 84 attribute :sparsify |
#state ⇒ :present, ...
31 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 31 attribute :state |
#storage_domain ⇒ String?
57 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 57 attribute :storage_domain |
#storage_domains ⇒ Object?
61 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 61 attribute :storage_domains |
#upload_image_path ⇒ Object?
39 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 39 attribute :upload_image_path |
#vm_id ⇒ Object?
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 28 attribute :vm_id |
#vm_name ⇒ String?
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_disk.rb', line 24 attribute :vm_name |