bootstrap-vz/bootstrapvz/plugins/ansible/manifest-schema.yml
Anders Ingemann a7f2327e42 Litter the manifest schemas with additionalProperties:false
This pretty much eliminates the possiblity of undiscovered typos in the manifest
2015-05-02 13:04:30 +02:00

29 lines
706 B
YAML

---
$schema: http://json-schema.org/draft-04/schema#
title: Ansible plugin manifest
type: object
properties:
plugins:
type: object
properties:
ansible:
type: object
properties:
extra_vars: {type: string}
tags: {type: string}
skip_tags: {type: string}
opt_flags:
type: array
flag: {type: string}
minItems: 1
hosts:
type: array
host: {type: string}
minItems: 1
playbook: {$ref: '#/definitions/absolute_path'}
required: [playbook]
additionalProperties: false
definitions:
absolute_path:
pattern: ^/[^\0]+$
type: string