lxc profiles to set user.network-config and user.user-data with cloud init cloud-config:
Hi i’m hoping somebody could help, i’m having trouble getting both user.data and user.network to both work at the same time, weather in two separate profiles or the same profile ran at the same time, however both work fully when only adding one user.### | individually at launch with -p profile-name but not together even if added to just the one profile at the same time the user. network always works but the user.date only adds user sudo ssh keys but on update’s, upgrade’s, package’s nor runcmds unless ran without user.network config.
All of the yaml data is getting to the cloud-init config in the container every method i used above when checked with the command below.
sudo cloud-init query userdata
I’m aware there’s are command line methods to change to a static ip but id really like to do with profiles and cloud init if somebody can help idd be very grateful or is adding both cloud configs at the containers launch just impossible.
Ben,