mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-10 17:19:51 +00:00
oracle: add image tarball upload/check tasks
This commit is contained in:
parent
c07f56b796
commit
54870ab396
1 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,7 @@ from bootstrapvz.common.tasks import image
|
|||
from bootstrapvz.common.tasks import loopback
|
||||
from bootstrapvz.common.tasks import ssh
|
||||
from bootstrapvz.common.tasks import volume
|
||||
import tasks.api
|
||||
import tasks.image
|
||||
import tasks.network
|
||||
import tasks.packages
|
||||
|
@ -36,6 +37,13 @@ def resolve_tasks(taskset, manifest):
|
|||
tasks.packages.DefaultPackages,
|
||||
])
|
||||
|
||||
if 'credentials' in manifest.provider:
|
||||
taskset.add(tasks.api.InstantiateAPIClient)
|
||||
taskset.add(tasks.image.UploadImageTarball)
|
||||
if manifest.provider.get('verify', False):
|
||||
taskset.add(tasks.image.DownloadImageTarball)
|
||||
taskset.add(tasks.image.CompareImageTarballs)
|
||||
|
||||
|
||||
def resolve_rollback_tasks(taskset, manifest, completed, counter_task):
|
||||
taskset.update(task_groups.get_standard_rollback_tasks(completed))
|
||||
|
|
Loading…
Add table
Reference in a new issue