Browse Source

Merge "Baremetal deploy - user playbook interface"

changes/69/776969/21
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
c4752cd2a3
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      tripleo_ansible/ansible_plugins/module_utils/baremetal_deploy.py

+ 16
- 0
tripleo_ansible/ansible_plugins/module_utils/baremetal_deploy.py View File

@ -151,6 +151,21 @@ _INSTANCES_INPUT_SCHEMA = {
}
"""JSON schema of the instances input."""
_ROLE_ANSIBLE_PLAYBOOKS_SCHEMA = {
'type': 'array',
'items': {
'type': 'object',
'properties': {
'playbook': {'type': 'string'},
'pre_network': {'type': 'boolean'},
'extra_vars': {'type': 'object'}
},
'additionalProperties': False,
'required': ['playbook'],
}
}
"""JSON schema of the role ansible_playbooks input."""
_ROLES_INPUT_SCHEMA = {
'type': 'array',
'items': {
@ -161,6 +176,7 @@ _ROLES_INPUT_SCHEMA = {
'count': {'type': 'integer', 'minimum': 0},
'defaults': _ROLE_DEFAULTS_SCHEMA,
'instances': _INSTANCES_INPUT_SCHEMA,
'ansible_playbooks': _ROLE_ANSIBLE_PLAYBOOKS_SCHEMA,
},
'additionalProperties': False,
'required': ['name'],


Loading…
Cancel
Save