-
Notifications
You must be signed in to change notification settings - Fork 53
/
config.yaml.example
174 lines (147 loc) · 4.74 KB
/
config.yaml.example
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# DISCLAIMER: this document show most of all available options. Elemental
# uses defaults if any of this value is missing. Values shown here
# only represent an example and they should not be used as defaults.
# installation configuration for 'install' command
install:
# target is the only value that has no default, it must be provided by
# config, flags or env variables.
target: /dev/sda
# partitions setup
# setting a partition size key to 0 means that the partition will take over the rest of the free space on the disk
# after creating the rest of the partitions
# by default the persistent partition has a value of 0
# if you want any of the extra partitions to fill the rest of the space you will need to set the persistent partition
# size to a different value, for example
# partitions:
# persistent:
# size: 300
# default partitions
# only 'bootloader', 'oem', 'recovery', 'state' and 'persistent' objects allowed
# size in MiB
partitions:
oem:
label: COS_OEM
size: 60
fs: ext4
recovery:
label: COS_RECOVERY
size: 4096
fs: ext4
# extra partitions to create during install
# only size, label and fs are used
# if no fs is given the partition will be created but not formatted
# This partitions are not automounted only created and formatted
extra-partitions:
- Name: myPartition
size: 100
fs: ext4
label: EXTRA_PARTITION
- Name: myOtherPartition
size: 0
fs: ext4
label: EXTRA_PARTITION
# no-format: true skips any disk partitioning and formatting
# if set to true installation procedure will error out if expected
# partitions are not already present within the disk.
no-format: false
# if no-format is used and elemental is running over an existing deployment
# force cane be used to force installation.
force: false
# use this iso as installation media (overwrites 'system.uri' and 'recoverys-system.uri'
# according to the ISO contents.
iso: https://my.domain.org/some/powerful.iso
# main OS image
system: oci:some.registry.org/elemental/image:latest
# recovery OS image
recovery-system:
fs: squashfs
uri: oci:recovery/elemental
snapshotter:
type: loopdevice
max-snaps: 4
config:
size: 0
fs: ext2
# extra cloud-init config file URI to include during the installation
cloud-init: "https://some.cloud-init.org/my-config-file"
# grub menu entry, this is the string that will be displayed
grub-entry-name: Elemental
# configuration for the 'reset' command
reset:
# if set to true it will format persistent partitions ('oem 'and 'persistent')
reset-persistent: false
reset-oem: false
# OS image used to reset disk
# size in MiB
system:
label: COS_ACTIVE
size: 1024
fs: ext2
uri: docker:some.registry.org/cos/image:latest
# filesystem label of the passive backup image
passive.label: COS_PASSIVE
# grub menu entry, this is the string that will be displayed
grub-entry-name: Elemental
# configuration used for the 'upgrade' command
upgrade:
# if set to true upgrade command will upgrade recovery system instead
# of main active system
recovery: false
# image used to upgrade main OS
# size in MiB
system:
uri: oci:system/elemental
# image used to upgrade recovery OS
# recovery images can be set to use squashfs
recovery-system:
fs: squashfs
uri: oci:recovery/elemental
# grub menu entry, this is the string that will be displayed
grub-entry-name: Elemental
# configuration used for the 'mount' command
mount:
sysroot: /sysroot # Path to mount system to
write-fstab: true # Write fstab into sysroot/etc/fstab
extra-volumes:
- mountpoint: /run/elemental/efi
device: PARTLABEL=efi
options: ["ro", "defaults"]
- mountpoint: /oem
device: LABEL=COS_OEM
options: ["defaults"]
ephemeral:
type: tmpfs # tmpfs|block
device: /dev/sda6 # Block device used to store overlay. Used when type is set to block
size: 25% # Size of tmpfs as percentag of system memory. Used when type is set to tmpfs
paths:
- /var
- /etc
- /srv
persistent:
mode: overlay # overlay|bind
volume:
mountpoint: /run/elemental/persistent
device: PARTLABEL=persistent
options: ["defaults"]
paths:
- /etc/systemd
- /etc/ssh
- /home
- /opt
- /root
- /usr/libexec
- /var/log
# use cosign to validate images from container registries
cosign: true
# cosign key to used for validation
cosign-key: myKey
# attempt a verify process
no-verify: false
# fail on cloud-init hooks errors
strict: false
# Additional paths to look for cloud-init files
cloud-init-paths:
- "/some/path"
# reboot/power off when done
reboot: false
poweroff: false