Replies: 3 comments 5 replies
-
I think it is (but the key is now called |
Beta Was this translation helpful? Give feedback.
-
For example, if I have a template called - location: "https://yum.oracle.com/templates/OracleLinux/OL9/u5/x86_64/OL9U5_x86_64-kvm-b253.qcow2"
arch: "x86_64"
digest: "sha256:3b00bbbefc8e78dd28d9f538834fb9e2a03d5ccdc2cadf2ffd0036c0a8f02021"
- location: "https://yum.oracle.com/templates/OracleLinux/OL9/u5/aarch64/OL9U5_aarch64-kvm-cloud-b117.qcow2"
arch: "aarch64"
digest: "sha256:6b62b633eb66cd1769015c25699d4d5f15c41c8fe5ef6ec3e81f0f2d5ed9e4d4"
mountTypesUnsupported: ["9p"]
mounts:
- location: "~"
- location: "/tmp/lima"
writable: true
firmware:
# Oracle Linux 9 still requires legacyBIOS, while AlmaLinux 9 and Rocky Linux 9 do not.
legacyBIOS: true
provision:
# `system` is executed with the root privilege
- mode: system
script: |
#!/bin/bash
echo "Hello $secret" > test.txt And I have a base: [oraclelinux9.yaml]
param:
secret: password123 If I type: limactl start variables.yaml I am getting the following error: I have limactl version 1.0.7 |
Beta Was this translation helpful? Give feedback.
-
@jandubois -- the new I was able to simplify my example with:
env:
secret: password123
base: [template://oraclelinux-9, variables.yaml]
provision:
- mode: system
script: |
#!/bin/bash
echo "Hello $secret" > /tmp/test.txt I think I can work with this. Thank you for all your hard work! |
Beta Was this translation helpful? Give feedback.
-
Is it possible to define the parameters from an external file (for example,
variables.yaml
) in order to keep custom/sensitive parameters out of the template files?I asked this same question back in November and was informed that this will be possible when the implementation of basedOn is complete. That is exactly what I'm looking for. Any status updates or estimates as to when this will be available?
Beta Was this translation helpful? Give feedback.
All reactions