[2.1] Support configuring components and disabling deb-src
Bug #1664384 reported by
Andres Rodriguez
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Wishlist
|
Unassigned | ||
cloud-init |
Expired
|
Undecided
|
Unassigned |
Bug Description
MAAS supports adding additional repositories but it does not support disabling components or sources:
Components are [main, universe, multiverse, restricted]
deb source packages = deb-src
Related branches
lp:~andreserl/maas/lp1664248
- Andres Rodriguez (community): Approve
- Blake Rouse (community): Approve
-
Diff: 639 lines (+344/-72)11 files modifiedsrc/maasserver/api/packagerepositories.py (+11/-2)
src/maasserver/api/tests/test_packagerepositories.py (+136/-21)
src/maasserver/compose_preseed.py (+40/-24)
src/maasserver/forms/packagerepository.py (+48/-0)
src/maasserver/forms/tests/test_packagerepository.py (+38/-16)
src/maasserver/migrations/builtin/maasserver/0116_add_disabled_components_for_mirrors.py (+23/-0)
src/maasserver/models/packagerepository.py (+8/-0)
src/maasserver/models/tests/test_packagerepository.py (+5/-0)
src/maasserver/testing/factory.py (+4/-2)
src/maasserver/tests/test_preseed.py (+30/-7)
src/maasserver/websockets/handlers/tests/test_packagerepository.py (+1/-0)
lp:~andreserl/maas/lp1664248_webui
- Andres Rodriguez (community): Approve
- Mike Pontillo (community): Approve
-
Diff: 181 lines (+45/-4)7 files modifiedsrc/maasserver/static/js/angular/controllers/settings.js (+2/-0)
src/maasserver/static/js/angular/controllers/tests/test_settings.js (+2/-0)
src/maasserver/static/js/angular/factories/general.js (+7/-0)
src/maasserver/static/js/angular/factories/tests/test_general.js (+18/-4)
src/maasserver/static/partials/settings.html (+5/-0)
src/maasserver/websockets/handlers/general.py (+5/-0)
src/maasserver/websockets/handlers/tests/test_general.py (+6/-0)
summary: |
- [2.1] Support configuring components and sources + [2.1] Support configuring components and disabling deb-src |
description: | updated |
Changed in maas: | |
importance: | Undecided → Wishlist |
Changed in maas: | |
status: | New → Triaged |
Changed in maas: | |
milestone: | none → 2.2.0 |
Changed in cloud-init: | |
status: | New → Triaged |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The easiest way to do this is to provide the sources_list that should be used as the template to cloud-init.
This will only work on xenial+, but as shown in /git.launchpad. net/cloud- init/tree/ doc/examples/ cloud-config- apt.txt# n154
https:/
the following config:
| #cloud-config
| apt:
| sources_list: |
| deb $MIRROR $RELEASE main universe
| deb $SECURITY $RELEASE main universe
|
will render into /etc/apt/ sources. list:
| deb http:// archive. ubuntu. com/ubuntu xenial main universe security. ubuntu. com/ubuntu xenial main universe
| deb http://
That is what I'd recommend.