'What version is cobbler?
If extended == False, returns a float for backwards compatibility
If extended == True, returns a dict:
gitstamp      -- the last git commit hash
gitdate       -- the last git commit date on the builder machine
builddate     -- the time of the build
version       -- something like "1.3.2"
version_tuple -- something like [ 1, 3, 2 ]'

def version(self, extended=False):

    config = ConfigParser()
    config.read('/etc/cobbler/version')
    data = {}
    data['gitdate'] = config.get('cobbler', 'gitdate')
    data['gitstamp'] = config.get('cobbler', 'gitstamp')
    data['builddate'] = config.get('cobbler', 'builddate')
    data['version'] = config.get('cobbler', 'version')
    data['version_tuple'] = []
    for num in data['version'].split('.'):
        data['version_tuple'].append(int(num))
    if (not extended):
        elems = data['version_tuple']
        return ((int(elems[0]) + (0.1 * int(elems[1]))) + (0.001 * int(elems[2])))
    else:
        return data
