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


  return retvars

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

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

    config[role] = normalize role, vars, config[globalRole]

  return config

parseConfig = (str) ->
  parsed = parse str
  return loadConfig parsed

validateConfig = (str, options) ->
  tv4 = require 'tv4'
