mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
18 lines
626 B
Python
18 lines
626 B
Python
import tasks
|
|
|
|
|
|
def validate_manifest(data, validator, error):
|
|
from bootstrapvz.common.tools import rel_path
|
|
validator(data, rel_path(__file__, 'manifest-schema.yml'))
|
|
|
|
|
|
def resolve_tasks(taskset, manifest):
|
|
taskset.add(tasks.AddPackages)
|
|
if 'assets' in manifest.plugins['puppet']:
|
|
taskset.add(tasks.CheckAssetsPath)
|
|
taskset.add(tasks.CopyPuppetAssets)
|
|
if 'manifest' in manifest.plugins['puppet']:
|
|
taskset.add(tasks.CheckManifestPath)
|
|
taskset.add(tasks.ApplyPuppetManifest)
|
|
if manifest.plugins['puppet'].get('enable_agent', False):
|
|
taskset.add(tasks.EnableAgent)
|