I want to install ubuntu 20.04 using #cloud-config/
And I want to use local repository to install the packages and set that source.list as the source.list of the installed system:
apt:
Set to False to affect sources.list with the configuration.
preserve_sources_list: false
primary:
arches is list of architectures the following config applies to
the special keyword "default" applies to any architecture not explicitly listed.
- arches: [amd64, i386]
uri is just defining the target as-is
sources:
source: http://localrepositoryadress/ubuntu
keyid: key number
keyserver: keyserver.ubuntu.com
sources_list: | # written by curtin custom template
deb http://localrepositoryadress/ubuntu focal main
deb http://localrepositoryadress/ubuntu focal universe
deb http://localrepositoryadress/ubuntu focal multiverse
deb http://localrepositoryadress/ubuntu focal security
I used this but the source.list in the installed OS was still the default one.
I did not find the documentation for forcing the cloud-config to get packages from local repository.
Also I am unable to get the user-data file from a https address.
I have put this: s=nocloud-net;s=https://address/ubuntu/init/ ---
It works fine with http://address/ubuntu/init/ ---
Bests regards.
edit: the https problem is solved thank you.