Return a salt configuration dictionary, master or minion, as a yaml dump

def salt_config_to_yaml(configuration, line_break='\n'):
    '''
    Return a salt configuration dictionary, master or minion, as a yaml dump
    '''
    return salt.utils.yaml.safe_dump(
        configuration,
        line_break=line_break,
        default_flow_style=False)