Score:0

Cloud-config : install from local repository

tr flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.