mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-25 07:46:28 +00:00

Jessie comes with root login disabled for passwords, however, if the user is using this plugin, chances are high that they need to login via SSH as root.
14 lines
430 B
Python
14 lines
430 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.yml'))
|
|
validator(data, schema_path)
|
|
|
|
|
|
def resolve_tasks(taskset, manifest):
|
|
from bootstrapvz.common.tasks import ssh
|
|
from tasks import SetRootPassword
|
|
taskset.discard(ssh.DisableSSHPasswordAuthentication)
|
|
taskset.add(ssh.PermitSSHRootLogin)
|
|
taskset.add(SetRootPassword)
|