def index_template_get(name, hosts=None, profile=None):
    '''
    Retrieve template definition of index or index/type

    name