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, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#align ⇒ :none, ...
16 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 16 attribute :align |
#device ⇒ String
12 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 12 attribute :device |
#flags ⇒ Array<String>, ...
47 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 47 attribute :flags |
#label ⇒ :aix, ...
28 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 28 attribute :label |
#name ⇒ Object?
44 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 44 attribute :name |
#number ⇒ Integer, ...
20 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 20 attribute :number |
#part_end ⇒ String?
40 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 40 attribute :part_end |
#part_start ⇒ String?
36 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 36 attribute :part_start |
#part_type ⇒ :primary, ...
32 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 32 attribute :part_type |
#state ⇒ :present, ...
51 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 51 attribute :state |
#unit ⇒ :s, ...
24 |
# File 'lib/ansible/ruby/modules/generated/system/parted.rb', line 24 attribute :unit |