Validate a configuration file.

def validate(config):
    """Validate a configuration file."""
    with open(config) as fh:
        data = utils.yaml_load(fh.read())
        jsonschema.validate(data, CONFIG_SCHEMA)