     config[role] = normalize role, vars, config[globalRole]
 
   return config
+
+parseConfig = (str) ->
+  parsed = parse str
+  return loadConfig parsed
 
 validateConfig = (str, options) ->
   tv4 = require 'tv4'


  return retvars

parseConfig = (str) ->
  parsed = parse str
  config = {}

  # Extract globals first, as they will be merged into individual roles

exports.validate = validateConfig
exports.parse = parseConfig
exports.parseOnly = parse
exports.load = loadConfig
exports.serialize = serialize
exports.defaults = addDefaults
