Class: Ansible::Ruby::Modules::Lvol

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/system/lvol.rb

Overview

This module creates, removes or resizes logical volumes.

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

#force:yes, ...

Returns Shrink or remove operations of volumes requires this switch. Ensures that that filesystems get never corrupted/destroyed by mistake.

Returns:

  • (:yes, :no, nil)

    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

#lvString

Returns The name of the logical volume.

Returns:

  • (String)

    The name of the logical volume.



15
# File 'lib/ansible/ruby/modules/generated/extras/system/lvol.rb', line 15

attribute :lv

#optsString?

Returns Free-form options to be passed to the lvcreate command.

Returns:

  • (String, nil)

    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

#sizeString?

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.

Returns:

  • (String, nil)

    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

#snapshotString?

Returns The name of the snapshot volume.

Returns:

  • (String, nil)

    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.

Returns:

  • (:present, :absent, nil)

    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

#vgString

Returns The volume group this logical volume is part of.

Returns:

  • (String)

    The volume group this logical volume is part of.



11
# File 'lib/ansible/ruby/modules/generated/extras/system/lvol.rb', line 11

attribute :vg