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

Manifest and module loading has been refactored Provider modules now must implement validate_manifest like plugins do Simplified loading of manifests
18 lines
526 B
Python
18 lines
526 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(tasklist, manifest):
|
|
import tasks
|
|
from providers.ec2.tasks import initd
|
|
if initd.AddEC2InitScripts in tasklist.tasks:
|
|
tasklist.add(tasks.AdminUserCredentials)
|
|
|
|
tasklist.add(tasks.AddSudoPackage,
|
|
tasks.CreateAdminUser,
|
|
tasks.PasswordlessSudo,
|
|
tasks.DisableRootLogin)
|