mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00

The functions are now called resolve_tasks() and resolve_rollback_tasks(). A little more verbose function names but also clearer.
13 lines
419 B
Python
13 lines
419 B
Python
|
|
|
|
def validate_manifest(data, schema_validate):
|
|
from os import path
|
|
schema_path = path.normpath(path.join(path.dirname(__file__), 'manifest-schema.json'))
|
|
schema_validate(data, schema_path)
|
|
|
|
|
|
def resolve_tasks(tasklist, manifest):
|
|
from common.tasks.security import DisableSSHPasswordAuthentication
|
|
from tasks import SetRootPassword
|
|
tasklist.remove(DisableSSHPasswordAuthentication)
|
|
tasklist.add(SetRootPassword)
|