summaryrefslogtreecommitdiffstats
path: root/roles/partition/meta/argument_specs.yml
blob: 96457982e39e58c7b3fa71ea1616c05d69aaab10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
---
argument_specs:
  main:
    options:
      partition_disk:
        type: "str"
        required: true
        description: "The device to partition. (ex: /dev/nvme0n1)"
      partition_wipe:
        type: "bool"
        default: "false"
        description: "Force wiping of the partition_disk"
      partition_boot:
        type: "dict"
        description: "The boot partition definition"
        required: true
        options: &partition_options
          num:
            type: "int"
            description: "Partition number"
            required: true
          name:
            type: "str"
            description: "Partition name"
            required: true
          label:
            type: "str"
            description: "Partition label"
            default: "gpt"
            choices:
              - "aix"
              - "amiga"
              - "bsd"
              - "dvh"
              - "gpt"
              - "loop"
              - "mac"
              - "msdos"
              - "pc98"
              - "sun"
          flags:
            type: "list"
            description: "Partition flags"
            default: []
            elements: "str"
            choices:
              - "atvrecv"
              - "bios_grup"
              - "boot"
              - "DIAG"
              - "esp"
              - "hidden"
              - "hp-service"
              - "irst"
              - "lba"
              - "legacy_boot"
              - "LVM"
              - "msftdata"
              - "msftres"
              - "PALO"
              - "PREP"
              - "raid"
              - "root"
              - "swap"
          part_start:
            type: "str"
            description: "Partition start (ex: 10GiB, 15%)"
            required: true
          part_end:
            type: "str"
            description: "Partition end (ex: 11GiB, 100%)"
            required: true
          fstype:
            type: "str"
            description: "Partition filesystem type"
            required: true
            choices:
              - "bcachefs"
              - "btrfs"
              - "ext2"
              - "ext3"
              - "ext4"
              - "ext4dev"
              - "f2fs"
              - "lvm"
              - "ocfs2"
              - "reiserfs"
              - "xfs"
              - "vfat"
              - "swap"
              - "ufs"
          fstype_opts:
            type: "str"
            description: "List of options to be passed to mkfs command"
            default: ""
          dev:
            type: "str"
            description: "Partition device path (ex: /dev/nvme0n1p3) ignore for partitions not used in playbook"
          mount_path:
            type: "str"
            description: "Partition mount path (ex: /mnt/home), ignore for partitions not used in playbook"
          fstab_opts:
            type: "str"
            description: "Options used for mounting (fstab options)"
            default: "defaults"
      partition_swap:
        type: "dict"
        description: "The swap partition definition"
        options: *partition_options
      partition_root:
        description: "The root partition definition"
        required: true
        options: *partition_options
      partition_extras:
        type: "list"
        description: "The list of extra partitions"
        required: false
        default: []
        elements: "dict"
        options: *partition_options