-
Notifications
You must be signed in to change notification settings - Fork 615
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
Generate separate cloud-config.yaml for when not using cidata.iso #2268
Comments
Something like
|
Why not just include |
I think that is what I was trying to say 😀 Or it could be i.e. talking about the file name in the lima instance directory here EDIT: will hack together some draft, maybe easier to reason about |
Oh, I missed that this would be on the host and not inside the VM. In that case we do need to worry about including keys, or make sure we use |
Something that would probably also apply to the But since it is only the public keys, I don't think that is necessary... The password (from blog above) is outdated* The original images (on https://blog.hypriot.com/) had: users:
- name: pirate
gecos: "Hypriot Pirate"
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
groups: users,docker,video
plain_text_passwd: hypriot
lock_passwd: false
ssh_pwauth: true
chpasswd: { expire: false } * the Raspberry Pi OS images no longer ship with a default user, but add one during first boot instead |
Yes, you are right; I was confused. |
Note: the new file is generated when the instance is created, since it is needed before it can be started |
Shouldn't it be created every time before the instance is started, in case I guess this becomes a chicken-and-egg problem now, as you would still need access to the updated file before starting the instance. Something like |
I added code to the hostagent, to (re)create the |
Note that as a side-effect, this will also generate the private/public ssh key in |
Description
When looking at alternative implementations, such as Raspberry Pi or cloud instances, it could be useful to look at the generated basic cloud-init / cloud-config information. Without having it embedded as
user-data
, in the cidata.isoMaybe we could also just create a stand-alone yaml file, like was done for the ignition yaml file. It doesn't include the boot scripts or the lima-guestagent/nerdctl-full, but does include basic stuff like the user and keys and so on (same args).
template:
pkg/cidata/cidata.TEMPLATE.d/user-data
Especially when not generating a cidata.iso anymore
example (outdated) background reasoning https://blog.hypriot.com/post/cloud-init-cloud-on-hypriot-x64/
External driver, for cloud and physical #2109
Add support for ignition to cidata, for CoreOS #2139
Lima wouldn't actually do anything with the file, it is just provided for the user to create their instance
The text was updated successfully, but these errors were encountered: