예제 #1
0
파일: preseed.py 프로젝트: cloudbase/maas
def get_curtin_userdata(node):
    """Return the curtin user-data.

    :param node: The node for which to generate the user-data.
    :return: The rendered user-data string.
    :rtype: unicode.
    """
    installer_url = get_curtin_installer_url(node)
    config = get_curtin_config(node)
    return pack_install(configs=[config], args=[installer_url])
예제 #2
0
파일: preseed.py 프로젝트: kcns008/maas
def get_curtin_userdata(node):
    """Return the curtin user-data.

    :param node: The node for which to generate the user-data.
    :return: The rendered user-data string.
    :rtype: unicode.
    """
    # Pack the curtin and the configuration into a script to execute on the
    # deploying node.
    return pack_install(configs=get_curtin_yaml_config(node),
                        args=[get_curtin_installer_url(node)])