[2.1] Support configuring components and disabling deb-src

Bug #1664384 reported by Andres Rodriguez
18
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

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
Revision history for this message
Scott Moser (smoser) wrote :

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
  https://git.launchpad.net/cloud-init/tree/doc/examples/cloud-config-apt.txt#n154
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
 | deb http://security.ubuntu.com/ubuntu xenial main universe

That is what I'd recommend.

Jon Grimm (jgrimm)
Changed in cloud-init:
status: New → Triaged
Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Triaged → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.