bootstrap-vz/bootstrapvz/plugins/root_password/__init__.py

14 lines
414 B
Python
Raw Normal View History

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):
from bootstrapvz.common.tasks import ssh
2018-02-12 04:17:53 +00:00
from .tasks import SetRootPassword
taskset.discard(ssh.DisableSSHPasswordAuthentication)
taskset.add(ssh.EnableRootLogin)
taskset.add(SetRootPassword)