Exemple #1
0
def schema():
    return {
        **action(),
        Optional("parameters"): {
            Optional("kernel-start-message"): str,
            Optional("shutdown-message"): str,
        },
        Optional("soft_reboot"): str,
    }
Exemple #2
0
def schema(live=False):
    base = {
        **action(live),
        Optional("parameters"): {
            Optional("kernel-start-message"): str,
            Optional("shutdown-message"): str,
        },
        Optional("soft_reboot"): str,
    }
    return base
Exemple #3
0
def schema(live=False):
    base = {**action(live), Optional("os"): str, Optional("authorize"): "ssh"}

    if not live:
        return base
    return {
        **base,
        Optional("deployment_data"): {
            str: Any(str, bool, float, int)
        }
    }
Exemple #4
0
def schema():
    return action()
Exemple #5
0
def schema():
    return {**action(), Optional("os"): str, Optional("authorize"): "ssh"}
Exemple #6
0
def schema(live=False):
    if not live:
        return action(live)

    return {**action(live), Required("stage"): Range(min=0)}
Exemple #7
0
def schema():
    return {**action(), Required("name"): str}
Exemple #8
0
def schema(live=False):
    return {**action(live), Required("name"): str}