diff --git a/bootstrapvz/providers/gce/tasks/apt.py b/bootstrapvz/providers/gce/tasks/apt.py index 4d620a3..733c1c6 100644 --- a/bootstrapvz/providers/gce/tasks/apt.py +++ b/bootstrapvz/providers/gce/tasks/apt.py @@ -6,12 +6,19 @@ import os class SetPackageRepositories(Task): - description = 'Adding goog apt source' + description = 'Adding apt sources' phase = phases.preparation successors = [apt.AddManifestSources] @classmethod def run(cls, info): + components = 'main' + if 'components' in info.manifest.system: + components = ' '.join(info.manifest.system['components']) + info.source_lists.add('main', 'deb http://http.debian.net/debian {system.release} ' + components) + info.source_lists.add('main', 'deb-src http://http.debian.net/debian {system.release} ' + components) + info.source_lists.add('backports', 'deb http://http.debian.net/debian {system.release}-backports ' + components) + info.source_lists.add('backports', 'deb-src http://http.debian.net/debian {system.release}-backports ' + components) info.source_lists.add('goog', 'deb http://goog-repo.appspot.com/debian pigeon main')