mirror of
https://github.com/mcuadros/ascode
synced 2024-11-23 01:11:59 +01:00
5bfd5f4654
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
20 lines
431 B
Plaintext
20 lines
431 B
Plaintext
ignition = provider("ignition", "1.1.0")
|
|
|
|
user = ignition.data.user()
|
|
user.name = "foo"
|
|
user.uid = 42
|
|
user.groups = ["foo", "bar"]
|
|
user.system = True
|
|
|
|
disk = ignition.data.disk()
|
|
disk.device = "/dev/sda"
|
|
|
|
root = disk.partition()
|
|
root.start = 2048
|
|
root.size = 4 * 1024 * 1024
|
|
|
|
home = disk.partition()
|
|
home.start = root.size + root.start
|
|
home.size = 4 * 1024 * 1024
|
|
|
|
config = ignition.data.config(disks=[disk.id], users=[user.id]) |