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.
What i'd suggest to do in curtin is sources. list rather than relying on the one that is builtin.
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/
'a' allows adding keys (even to be used by the default repos) and repos. sources. list they wanted (even a blank one and rely only on apt_sources definitions).
'b' would allow maas to provide whatever /etc/apt/
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. list_template:
So it might look something like:
apt_sources:
sources:
smppa: source: ppa:smoser
localkey0: key: |
your key here
sources_
some template for sources.list here.
the key thing is that we want to have cloud-init and curtin with the same function.
-- bazaar. launchpad. net/~cloud- init-dev/ cloud-init/ trunk/view/ head:/doc/ examples/ cloud-config. txt#L79
[1] http://