def vhosts():
 cmd = '{0} -S'.format(_detect_os())
 ret = {}
 namevhost = ''
 out = __salt__['cmd.run'](cmd)
 for line in out.splitlines():
  if (not line):
   continue
  comps = line.split()
  if ('is a NameVirtualHost' in line):
   namevhost = comps[0]
   ret[namevhost] = {}
  else:
   if (comps[0] == 'default'):
    ret[namevhost]['default'] = {}
    ret[namevhost]['default']['vhost'] = comps[2]
    ret[namevhost]['default']['conf'] = re.sub('\\(|\\)', '', comps[3])
   if (comps[0] == 'port'):
    ret[namevhost][comps[3]] = {}
    ret[namevhost][comps[3]]['vhost'] = comps[3]
    ret[namevhost][comps[3]]['conf'] = re.sub('\\(|\\)', '', comps[4])
    ret[namevhost][comps[3]]['port'] = comps[1]
 return ret

def vhosts ( ) : cmd = '{0} -S' . format ( _detect_os ( ) ) ret = { } namevhost = '' out = __salt__ [ 'cmd.run' ] ( cmd ) for line in out . splitlines ( ) : if ( not line ) : continue comps = line . split ( ) if ( 'is a NameVirtualHost' in line ) : namevhost = comps [ 0 ] ret [ namevhost ] = { } else : if ( comps [ 0 ] == 'default' ) : ret [ namevhost ] [ 'default' ] = { } ret [ namevhost ] [ 'default' ] [ 'vhost' ] = comps [ 2 ] ret [ namevhost ] [ 'default' ] [ 'conf' ] = re . sub ( '\\(|\\)' , '' , comps [ 3 ] ) if ( comps [ 0 ] == 'port' ) : ret [ namevhost ] [ comps [ 3 ] ] = { } ret [ namevhost ] [ comps [ 3 ] ] [ 'vhost' ] = comps [ 3 ] ret [ namevhost ] [ comps [ 3 ] ] [ 'conf' ] = re . sub ( '\\(|\\)' , '' , comps [ 4 ] ) ret [ namevhost ] [ comps [ 3 ] ] [ 'port' ] = comps [ 1 ] return ret
show the settings as parsed from the config file .