1
1
mirror of https://github.com/mcuadros/ascode synced 2024-11-26 06:01:08 +01:00
ascode/_examples/ignition.star
2020-03-21 00:10:22 +01:00

23 lines
425 B
Plaintext

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
root.size = 4 * 1024 * 1024
home = disk.partition()
home.start = root.size + root.start
home.size = 4 * 1024 * 1024
ignition.data.config(disks=[disk.id], users=[user.id])