mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
Correct merge/rebase. Fix handling of console to hvc0. Try and pre-seed cloud-init.
This commit is contained in:
parent
334ef9209b
commit
b034ca8ed1
4 changed files with 4 additions and 10 deletions
|
@ -26,15 +26,10 @@ class AddDefaultSources(Task):
|
|||
sections = 'main'
|
||||
if 'sections' in info.manifest.system:
|
||||
sections = ' '.join(info.manifest.system['sections'])
|
||||
<<<<<<< HEAD:common/tasks/apt.py
|
||||
info.source_lists.add('main', 'deb {apt_mirror} {system.release} '+sections)
|
||||
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release} '+sections)
|
||||
info.source_lists.add('main', 'deb http://security.debian.org/ {system.release}/updates '+sections)
|
||||
info.source_lists.add('main', 'deb-src http://security.debian.org/ {system.release}/updates '+sections)
|
||||
=======
|
||||
info.source_lists.add('main', 'deb {apt_mirror} {system.release} ' + sections)
|
||||
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release} ' + sections)
|
||||
>>>>>>> upstream/master:bootstrapvz/common/tasks/apt.py
|
||||
if info.manifest.system['release'] not in {'testing', 'unstable'}:
|
||||
info.source_lists.add('main', 'deb {apt_mirror} {system.release}-updates ' + sections)
|
||||
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release}-updates ' + sections)
|
||||
|
|
|
@ -14,8 +14,8 @@ def resolve_tasks(taskset, manifest):
|
|||
if manifest.system['release'] in ['wheezy', 'stable']:
|
||||
taskset.add(tasks.AddBackports)
|
||||
|
||||
taskset.update([tasks.AddCloudInitPackages,
|
||||
tasks.SetMetadataSource,
|
||||
taskset.update([ tasks.SetMetadataSource,
|
||||
tasks.AddCloudInitPackages,
|
||||
])
|
||||
|
||||
options = manifest.plugins['cloud_init']
|
||||
|
|
|
@ -67,7 +67,7 @@ class SetMetadataSource(Task):
|
|||
'skipping selections setting.').format(info.manifest.provider)
|
||||
logging.getLogger(__name__).warn(msg)
|
||||
return
|
||||
sources = "cloud-init cloud-init/datasources multiselect " + sources
|
||||
sources = "cloud-init cloud-init/datasources multiselect " + sources
|
||||
log_check_call(['chroot', info.root, 'debconf-set-selections'], sources)
|
||||
|
||||
|
||||
|
|
|
@ -37,8 +37,7 @@
|
|||
"plugins": {
|
||||
"cloud_init": {
|
||||
"username": "admin",
|
||||
//"metadata_sources": "Ec2",
|
||||
"disable_modules": [ "landscape", "byobu", "ssh-import-id" ]
|
||||
"metadata_sources": "Ec2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue