bootstrap-vz/plugins/root_password/__init__.py

13 lines
400 B
Python
Raw Normal View History

def tasks(tasklist, manifest):
2013-08-12 16:06:34 +02:00
from common.tasks.security import DisableSSHPasswordAuthentication
from tasks import SetRootPassword
tasklist.replace(DisableSSHPasswordAuthentication, SetRootPassword())
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)