1
1
mirror of https://github.com/mcuadros/ascode synced 2024-11-26 14:03:49 +01:00
ascode/_examples/ignition.star

23 lines
425 B
Plaintext
Raw Normal View History

ignition = tf.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
2019-07-12 03:32:28 +02:00
root.size = 4 * 1024 * 1024
home = disk.partition()
2019-07-12 03:32:28 +02:00
home.start = root.size + root.start
home.size = 4 * 1024 * 1024
ignition.data.config(disks=[disk.id], users=[user.id])