emcstack.parted

分区工具

分区磁盘

注意:所有磁盘将具有相同的分区。如果想要不同的分区,请将其分成多个后续部分。

要求

角色变量

名称 类型 必须 默认值 描述
hdds 列表 要分区的磁盘列表
partitions 字典的列表 [{'partition_type': 'primary', 'start_point': '0%', 'end_point': '100%'}] 每个磁盘上要创建的分区
create_label 布尔值 true 默认情况下在磁盘上创建标签
label 字符串 gpt 磁盘的默认标签

依赖关系

示例剧本

- hosts:
  - nc-9
  roles:
  - parted
  vars:
  - hdds:
    - /dev/sdb
  - partitions:
    - {'partition_type': 'primary', 'start_point': '0%', 'end_point': '10%'}
    - {'partition_type': 'primary', 'start_point': '10%', 'end_point': '50%'}
    - {'partition_type': 'extended', 'start_point': '50%', 'end_point': '100%'}

许可证

GPLv3

作者信息

John Preston [John Mille]

关于项目

Create disks partitions

安装
ansible-galaxy install emcstack.parted
许可证
gpl-3.0
下载
161
拥有者
Eucalyptus - Midokura - CEPH