Class: Ansible::Ruby::Modules::Lvol
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Lvol
- Defined in:
- lib/ansible/ruby/modules/generated/extras/system/lvol.rb
Overview
This module creates, removes or resizes logical volumes.
Instance Method Summary collapse
-
#force ⇒ :yes, ...
Shrink or remove operations of volumes requires this switch.
-
#lv ⇒ String
The name of the logical volume.
-
#opts ⇒ String?
Free-form options to be passed to the lvcreate command.
-
#size ⇒ String?
The size of the logical volume, according to lvcreate(8) –size, by default in megabytes or optionally with one of [bBsSkKmMgGtTpPeE] units; or according to lvcreate(8) –extents as a percentage of [VG|PVS|FREE]; Float values must begin with a digit.
-
#snapshot ⇒ String?
The name of the snapshot volume.
-
#state ⇒ :present, ...
Control if the logical volume exists.
-
#vg ⇒ String
The volume group this logical volume is part of.
Methods inherited from Base
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
#force ⇒ :yes, ...
Returns Shrink or remove operations of volumes requires this switch. Ensures that that filesystems get never corrupted/destroyed by mistake.
27 |
# File 'lib/ansible/ruby/modules/generated/extras/system/lvol.rb', line 27 attribute :force |
#lv ⇒ String
Returns The name of the logical volume.
15 |
# File 'lib/ansible/ruby/modules/generated/extras/system/lvol.rb', line 15 attribute :lv |
#opts ⇒ String?
Returns Free-form options to be passed to the lvcreate command.
31 |
# File 'lib/ansible/ruby/modules/generated/extras/system/lvol.rb', line 31 attribute :opts |
#size ⇒ String?
Returns The size of the logical volume, according to lvcreate(8) –size, by default in megabytes or optionally with one of [bBsSkKmMgGtTpPeE] units; or according to lvcreate(8) –extents as a percentage of [VG|PVS|FREE]; Float values must begin with a digit. Resizing using percentage values was not supported prior to 2.1.
19 |
# File 'lib/ansible/ruby/modules/generated/extras/system/lvol.rb', line 19 attribute :size |
#snapshot ⇒ String?
Returns The name of the snapshot volume.
35 |
# File 'lib/ansible/ruby/modules/generated/extras/system/lvol.rb', line 35 attribute :snapshot |
#state ⇒ :present, ...
Returns Control if the logical volume exists. If C(present) the C(size) option is required.
23 |
# File 'lib/ansible/ruby/modules/generated/extras/system/lvol.rb', line 23 attribute :state |
#vg ⇒ String
Returns The volume group this logical volume is part of.
11 |
# File 'lib/ansible/ruby/modules/generated/extras/system/lvol.rb', line 11 attribute :vg |