def get_inventory_config(conf_type: str, inventory: dict) -> dict:
    """Return the configuration for a the config type as input

    The returned value will contain a dictionary with 'name' as key
    and the config as value

    Args:
        conf_type (str): type of configuration to initialize
        inventory (dict): inventory to read to collect configuration

    Returns:
        dict: configuration data
    """
    configs = {}
    conf_list = inventory.get(conf_type)
    if not conf_list:
        # No configuration specified
        return {}

    for conf_obj in conf_list:
        name = conf_obj.get('name')
        if name:
            if conf_obj.get('copy'):
                # copy the content of the other inventory
                # into the current inventory and override
                # values
                configs[name] = configs[conf_obj['copy']].copy()
                for k, v in conf_obj.items():
                    if k not in ['copy']:
                        configs[name][k] = v
            else:
                configs[name] = conf_obj

    return configs