Comment 21 for bug 1574113

Revision history for this message
Scott Moser (smoser) wrote : Re: curtin/maas don't support derived repositories. We need a way to specify an archive key

What i'd suggest to do in curtin is
a.) add support for the 'apt_sources' syntax in cloud-init [1], and change that so that it supports keys without a sources (currently the implementation doesn't do that)
b.) allow some config option to provide a template for /etc/apt/sources.list rather than relying on the one that is builtin.

'a' allows adding keys (even to be used by the default repos) and repos.
'b' would allow maas to provide whatever /etc/apt/sources.list they wanted (even a blank one and rely only on apt_sources definitions).

i may want to improve the syntax for cloud-init and also improve it there to support a dictionary rather than a list. Dictionaries are easier to "merge", and curtin's config merger has good support for that.
So it might look something like:
apt_sources:
  sources:
    smppa: source: ppa:smoser
    localkey0: key: |
      your key here
  sources_list_template:
     some template for sources.list here.

the key thing is that we want to have cloud-init and curtin with the same function.

--
[1] http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/examples/cloud-config.txt#L79