Class: Ansible::Ruby::Modules::Parted
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Parted
- Defined in:
- lib/ansible/ruby/modules/generated/system/parted.rb
Overview
This module allows configuring block device partition using the C(parted) command line tool. For a full description of the fields and the options check the GNU parted manual.
Instance Method Summary collapse
-
#align ⇒ :none, ...
Set alignment for newly created partitions.
-
#device ⇒ String
The block device (disk) where to operate.
-
#flags ⇒ Array<String>, ...
A list of the flags that has to be set on the partition.
-
#label ⇒ :aix, ...
Creates a new disk label.
-
#name ⇒ Object?
Sets the name for the partition number (GPT, Mac, MIPS and PC98 only).
-
#number ⇒ Integer, ...
The number of the partition to work with or the number of the partition that will be created.
-
#part_end ⇒ String?
Where the partition will end as offset from the beginning of the disk, that is, the “distance” from the start of the disk.
-
#part_start ⇒ String?
Where the partition will start as offset from the beginning of the disk, that is, the “distance” from the start of the disk.
-
#part_type ⇒ :primary, ...
Is one of ‘primary’, ‘extended’ or ‘logical’ and may be specified only with ‘msdos’ or ‘dvh’ partition tables.
-
#state ⇒ :present, ...
If to create or delete a partition.
-
#unit ⇒ :s, ...
Selects the current default unit that Parted will use to display locations and capacities on the disk and to interpret those given by the user if they are not suffixed by an unit.
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
#align ⇒ :none, ...
Returns Set alignment for newly created partitions.
16 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 16 attribute :align |
#device ⇒ String
Returns The block device (disk) where to operate.
12 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 12 attribute :device |
#flags ⇒ Array<String>, ...
Returns A list of the flags that has to be set on the partition.
47 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 47 attribute :flags |
#label ⇒ :aix, ...
Returns Creates a new disk label.
28 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 28 attribute :label |
#name ⇒ Object?
Returns Sets the name for the partition number (GPT, Mac, MIPS and PC98 only).
44 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 44 attribute :name |
#number ⇒ Integer, ...
Returns The number of the partition to work with or the number of the partition that will be created. Required when performing any action on the disk, except fetching information.
20 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 20 attribute :number |
#part_end ⇒ String?
Returns Where the partition will end as offset from the beginning of the disk, that is, the “distance” from the start of the disk. The distance can be specified with all the units supported by parted (except compat) and it is case sensitive. E.g. C(10GiB), C(15%).
40 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 40 attribute :part_end |
#part_start ⇒ String?
Returns Where the partition will start as offset from the beginning of the disk, that is, the “distance” from the start of the disk. The distance can be specified with all the units supported by parted (except compat) and it is case sensitive. E.g. C(10GiB), C(15%).
36 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 36 attribute :part_start |
#part_type ⇒ :primary, ...
Returns Is one of ‘primary’, ‘extended’ or ‘logical’ and may be specified only with ‘msdos’ or ‘dvh’ partition tables. A name must be specified for a ‘gpt’ partition table. Neither part-type nor name may be used with a ‘sun’ partition table.
32 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 32 attribute :part_type |
#state ⇒ :present, ...
Returns If to create or delete a partition. If set to C(info) the module will only return the device information.
51 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 51 attribute :state |
#unit ⇒ :s, ...
Returns Selects the current default unit that Parted will use to display locations and capacities on the disk and to interpret those given by the user if they are not suffixed by an unit. When fetching information about a disk, it is always recommended to specify a unit.
24 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 24 attribute :unit |