Convert an installation file/script to an SLS file. Currently supports
    ``kickstart``, ``preseed``, and ``autoyast``.

    CLI Examples:

        salt <minion> genesis.mksls kickstart /path/to/kickstart.cfg
        salt <minion> genesis.mksls kickstart /path/to/kickstart.cfg /path/to/dest.sls

    .. versionadded:: Beryllium

def mksls(fmt, src, dst=None):
    '''
    Convert an installation file/script to an SLS file. Currently supports
    ``kickstart``, ``preseed``, and ``autoyast``.

    CLI Examples:

        salt <minion> genesis.mksls kickstart /path/to/kickstart.cfg
        salt <minion> genesis.mksls kickstart /path/to/kickstart.cfg /path/to/dest.sls

    .. versionadded:: Beryllium
    '''
    if fmt == 'kickstart':
        return salt.utils.kickstart.mksls(src, dst)
    elif fmt == 'preseed':
        return salt.utils.preseed.mksls(src, dst)
    elif fmt == 'autoyast':
        return salt.utils.yast.mksls(src, dst)