mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
12 lines
364 B
Python
12 lines
364 B
Python
![]() |
def validate_manifest(data, validator, error):
|
||
|
import os.path
|
||
|
schema_path = os.path.normpath(os.path.join(os.path.dirname(__file__), 'manifest-schema.json'))
|
||
|
validator(data, schema_path)
|
||
|
|
||
|
|
||
|
def resolve_tasks(taskset, manifest):
|
||
|
import tasks
|
||
|
taskset.add(tasks.AddNtpPackage)
|
||
|
if manifest.plugins['ntp'].get('servers', False):
|
||
|
taskset.add(tasks.SetNtpServers)
|