mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
common: Add a validation phase
As discussed in [#335], the `validate_manifest` method checks the manifest's internal consistency. The validation phase, on the other hand, can be used to check the consistency of the manifest with external ressources, for instance: - Checking if files or directories exist. - Checking if the content of a file is consistent with what was expected. - Checking if a network ressource (an APT proxy?) is reachable. [#335]: https://github.com/andsens/bootstrap-vz/pull/335#issuecomment-239661077
This commit is contained in:
parent
b9d63b701d
commit
8cd0648e27
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
from bootstrapvz.base.phase import Phase
|
from bootstrapvz.base.phase import Phase
|
||||||
|
|
||||||
|
validation = Phase('Validation', 'Validating data, files, etc.')
|
||||||
preparation = Phase('Preparation', 'Initializing connections, fetching data etc.')
|
preparation = Phase('Preparation', 'Initializing connections, fetching data etc.')
|
||||||
volume_creation = Phase('Volume creation', 'Creating the volume to bootstrap onto')
|
volume_creation = Phase('Volume creation', 'Creating the volume to bootstrap onto')
|
||||||
volume_preparation = Phase('Volume preparation', 'Formatting the bootstrap volume')
|
volume_preparation = Phase('Volume preparation', 'Formatting the bootstrap volume')
|
||||||
|
@ -13,7 +14,8 @@ volume_unmounting = Phase('Volume unmounting', 'Unmounting the bootstrap volume'
|
||||||
image_registration = Phase('Image registration', 'Uploading/Registering with the provider')
|
image_registration = Phase('Image registration', 'Uploading/Registering with the provider')
|
||||||
cleaning = Phase('Cleaning', 'Removing temporary files')
|
cleaning = Phase('Cleaning', 'Removing temporary files')
|
||||||
|
|
||||||
order = [preparation,
|
order = [validation,
|
||||||
|
preparation,
|
||||||
volume_creation,
|
volume_creation,
|
||||||
volume_preparation,
|
volume_preparation,
|
||||||
volume_mounting,
|
volume_mounting,
|
||||||
|
|
Loading…
Add table
Reference in a new issue