mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Fix import errors, again.
(A rebase swallowed a commit somewhere)
This commit is contained in:
parent
7e944cb243
commit
e68ed9b66c
5 changed files with 21 additions and 36 deletions
|
@ -2,13 +2,9 @@ from bootstrapvz.common import task_groups
|
|||
import tasks.packages
|
||||
import tasks.boot
|
||||
import tasks.image
|
||||
from bootstrapvz.common.tasks import volume
|
||||
from bootstrapvz.common.tasks import loopback
|
||||
from bootstrapvz.common.tasks import partitioning
|
||||
from bootstrapvz.common.tasks import filesystem
|
||||
from bootstrapvz.common.tasks import initd
|
||||
from bootstrapvz.common.tasks import ssh
|
||||
from bootstrapvz.common.tasks import workspace
|
||||
|
||||
|
||||
def initialize():
|
||||
|
|
|
@ -12,9 +12,7 @@ from bootstrapvz.common.tasks import volume
|
|||
from bootstrapvz.common.tasks import filesystem
|
||||
from bootstrapvz.common.tasks import boot
|
||||
from bootstrapvz.common.tasks import initd
|
||||
from bootstrapvz.common.tasks import partitioning
|
||||
from bootstrapvz.common.tasks import loopback
|
||||
from bootstrapvz.common.tasks import workspace
|
||||
|
||||
|
||||
def initialize():
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import bootstrapvz.common.task_groups
|
||||
from bootstrapvz.common import task_groups
|
||||
import tasks.apt
|
||||
import tasks.boot
|
||||
import tasks.configuration
|
||||
|
@ -7,7 +7,6 @@ import tasks.host
|
|||
import tasks.packages
|
||||
from bootstrapvz.common.tasks import loopback
|
||||
from bootstrapvz.common.tasks import ssh
|
||||
from bootstrapvz.common.tasks import initd
|
||||
import bootstrapvz.plugins.cloud_init.tasks
|
||||
|
||||
|
||||
|
@ -21,33 +20,33 @@ def validate_manifest(data, validator, error):
|
|||
validator(data, schema_path)
|
||||
|
||||
|
||||
def resolve_tasks(tasklist, manifest):
|
||||
tasklist.update(bootstrapvz.common.task_groups.get_standard_groups(manifest))
|
||||
def resolve_tasks(taskset, manifest):
|
||||
taskset.update(task_groups.get_standard_groups(manifest))
|
||||
|
||||
tasklist.update([bootstrapvz.plugins.cloud_init.tasks.AddBackports,
|
||||
loopback.Create,
|
||||
tasks.apt.SetPackageRepositories,
|
||||
tasks.apt.ImportGoogleKey,
|
||||
tasks.packages.DefaultPackages,
|
||||
tasks.packages.GooglePackages,
|
||||
tasks.packages.InstallGSUtil,
|
||||
taskset.update([bootstrapvz.plugins.cloud_init.tasks.AddBackports,
|
||||
loopback.Create,
|
||||
tasks.apt.SetPackageRepositories,
|
||||
tasks.apt.ImportGoogleKey,
|
||||
tasks.packages.DefaultPackages,
|
||||
tasks.packages.GooglePackages,
|
||||
tasks.packages.InstallGSUtil,
|
||||
|
||||
tasks.configuration.GatherReleaseInformation,
|
||||
tasks.configuration.GatherReleaseInformation,
|
||||
|
||||
tasks.host.DisableIPv6,
|
||||
tasks.boot.ConfigureGrub,
|
||||
ssh.AddSSHKeyGeneration,
|
||||
tasks.apt.CleanGoogleRepositoriesAndKeys,
|
||||
tasks.host.DisableIPv6,
|
||||
tasks.boot.ConfigureGrub,
|
||||
ssh.AddSSHKeyGeneration,
|
||||
tasks.apt.CleanGoogleRepositoriesAndKeys,
|
||||
|
||||
loopback.MoveImage,
|
||||
tasks.image.CreateTarball,
|
||||
])
|
||||
loopback.MoveImage,
|
||||
tasks.image.CreateTarball,
|
||||
])
|
||||
|
||||
if 'gcs_destination' in manifest.image:
|
||||
tasklist.add(tasks.image.UploadImage)
|
||||
taskset.add(tasks.image.UploadImage)
|
||||
if 'gce_project' in manifest.image:
|
||||
tasklist.add(tasks.image.RegisterImage)
|
||||
taskset.add(tasks.image.RegisterImage)
|
||||
|
||||
|
||||
def resolve_rollback_tasks(tasklist, manifest, completed, counter_task):
|
||||
def resolve_rollback_tasks(taskset, manifest, completed, counter_task):
|
||||
taskset.update(task_groups.get_standard_rollback_tasks(completed))
|
||||
|
|
|
@ -1,12 +1,8 @@
|
|||
from bootstrapvz.common import task_groups
|
||||
import tasks.packages
|
||||
from bootstrapvz.common.tasks import volume
|
||||
from bootstrapvz.common.tasks import loopback
|
||||
from bootstrapvz.common.tasks import partitioning
|
||||
from bootstrapvz.common.tasks import filesystem
|
||||
from bootstrapvz.common.tasks import initd
|
||||
from bootstrapvz.common.tasks import ssh
|
||||
from bootstrapvz.common.tasks import workspace
|
||||
|
||||
|
||||
def initialize():
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
from bootstrapvz.common import task_groups
|
||||
import tasks.packages
|
||||
from bootstrapvz.common.tasks import volume
|
||||
from bootstrapvz.common.tasks import loopback
|
||||
from bootstrapvz.common.tasks import partitioning
|
||||
from bootstrapvz.common.tasks import filesystem
|
||||
from bootstrapvz.common.tasks import workspace
|
||||
|
||||
|
||||
def initialize():
|
||||
|
|
Loading…
Add table
Reference in a new issue