Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do guest template expansion for provisioning scripts #2121

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

jandubois
Copy link
Member

The LIMA_CIDATA_* variables are not a supported API and can change without warning.

Fixes #2055

@jandubois jandubois added this to the v0.20.0 milestone Jan 9, 2024
@afbjorklund
Copy link
Member

afbjorklund commented Jan 9, 2024

I think we could use %u in the systemd unit instead, to stay backwards compatible, but haven't tested yet...

SocketUser={{.User}}

https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html

It wouldn't fix the other provisioning scripts, though.

The LIMA_CIDATA_* variables are not a supported API and can
change without warning.

Signed-off-by: Jan Dubois <[email protected]>
@afbjorklund
Copy link
Member

afbjorklund commented Jan 9, 2024

A nice thing about this change, is that we can do provisioning over ssh without implying cloud-init (cidata).

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit bff8816 into lima-vm:master Jan 9, 2024
24 checks passed
@jandubois jandubois deleted the provision-template branch January 10, 2024 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

template://podman-rootful: provision scripts should not depend on LIMA_CIDATA_*
3 participants