mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +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'
|
sections = 'main'
|
||||||
if 'sections' in info.manifest.system:
|
if 'sections' in info.manifest.system:
|
||||||
sections = ' '.join(info.manifest.system['sections'])
|
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 {apt_mirror} {system.release} '+sections)
|
||||||
info.source_lists.add('main', 'deb-src {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 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-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'}:
|
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 {apt_mirror} {system.release}-updates ' + sections)
|
||||||
info.source_lists.add('main', 'deb-src {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']:
|
if manifest.system['release'] in ['wheezy', 'stable']:
|
||||||
taskset.add(tasks.AddBackports)
|
taskset.add(tasks.AddBackports)
|
||||||
|
|
||||||
taskset.update([tasks.AddCloudInitPackages,
|
taskset.update([ tasks.SetMetadataSource,
|
||||||
tasks.SetMetadataSource,
|
tasks.AddCloudInitPackages,
|
||||||
])
|
])
|
||||||
|
|
||||||
options = manifest.plugins['cloud_init']
|
options = manifest.plugins['cloud_init']
|
||||||
|
|
|
@ -37,8 +37,7 @@
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"cloud_init": {
|
"cloud_init": {
|
||||||
"username": "admin",
|
"username": "admin",
|
||||||
//"metadata_sources": "Ec2",
|
"metadata_sources": "Ec2"
|
||||||
"disable_modules": [ "landscape", "byobu", "ssh-import-id" ]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue