1
1
mirror of https://github.com/mcuadros/ascode synced 2024-11-23 09:21:58 +01:00
ascode/examples/ignition.star

20 lines
431 B
Plaintext
Raw Normal View History

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])