forked from ansible-community/molecule-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add molecule vagrant schema json file. Requires ansible/molecule#3898. Signed-off-by: Arnaud Patard <apatard@hupstream.com>
- Loading branch information
Showing
2 changed files
with
183 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
{ | ||
"$defs": { | ||
"MoleculeDriverModel": { | ||
"additionalProperties": false, | ||
"properties": { | ||
"name": { | ||
"enum": ["vagrant"], | ||
"title": "Name", | ||
"type": "string" | ||
}, | ||
"provider": { | ||
"$ref": "#/$defs/MoleculeDriverProviderModel" | ||
}, | ||
"provision": { | ||
"title": "Provision", | ||
"type": "boolean" | ||
}, | ||
"cachier": { | ||
"title": "Cachier", | ||
"type": "string" | ||
}, | ||
"parallel": { | ||
"title": "Parallel", | ||
"type": "boolean" | ||
}, | ||
"default_box": { | ||
"title": "Default box", | ||
"type": "string" | ||
}, | ||
"options": { | ||
"$ref": "#/$defs/MoleculeDriverOptionsModel" | ||
}, | ||
"safe_files": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"title": "SafeFiles", | ||
"type": "array" | ||
}, | ||
"ssh_connection_options": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"title": "SshConnectionOptions", | ||
"type": "array" | ||
} | ||
}, | ||
"required": ["name"], | ||
"title": "MoleculeDriverModel", | ||
"type": "object" | ||
}, | ||
"MoleculeDriverOptionsModel": { | ||
"additionalProperties": false, | ||
"properties": { | ||
"ansible_connection_options": { | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"title": "Ansible Connection Options", | ||
"type": "object" | ||
}, | ||
"login_cmd_template": { | ||
"title": "Login Cmd Template", | ||
"type": "string" | ||
}, | ||
"managed": { | ||
"title": "Managed", | ||
"type": "boolean" | ||
} | ||
}, | ||
"title": "MoleculeDriverOptionsModel", | ||
"type": "object" | ||
}, | ||
"MoleculeDriverProviderModel": { | ||
"additionalProperties": false, | ||
"properties": { | ||
"name": { | ||
"title": "name", | ||
"type": ["string", "null"] | ||
} | ||
}, | ||
"required": ["name"], | ||
"title": "MoleculeDriverProviderModel", | ||
"type": "object" | ||
}, | ||
"MoleculePlatformModel": { | ||
"additionalProperties": false, | ||
"properties": { | ||
"name": { | ||
"title": "Name", | ||
"type": "string" | ||
}, | ||
"hostname": { | ||
"title": "Hostname", | ||
"type": ["string", "boolean"] | ||
}, | ||
"interfaces": { | ||
"title": "Interfaces", | ||
"type": "array" | ||
}, | ||
"instance_raw_config_args": { | ||
"title": "Instance raw config arguments", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"config_options": { | ||
"title": "Config options", | ||
"type": "object" | ||
}, | ||
"box": { | ||
"title": "Box", | ||
"type": "string" | ||
}, | ||
"box_version": { | ||
"title": "Box version", | ||
"type": "string" | ||
}, | ||
"box_url": { | ||
"title": "Box URL", | ||
"type": "string" | ||
}, | ||
"cpus": { | ||
"title": "Cpus", | ||
"type": "integer" | ||
}, | ||
"memory": { | ||
"title": "Memory", | ||
"type": "integer" | ||
}, | ||
"provider_options": { | ||
"title": "Provider options", | ||
"type": "object" | ||
}, | ||
"provider_raw_config_args": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"title": "Provider Raw Config Args", | ||
"type": "array" | ||
}, | ||
"children": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"groups": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"title": "Groups", | ||
"type": "array" | ||
} | ||
}, | ||
"required": ["name"], | ||
"title": "MoleculePlatformModel", | ||
"type": "object" | ||
} | ||
}, | ||
"$id": "https://raw.githubusercontent.com/ansible-community/molecule/main/src/molecule/driver/driver.json", | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"examples": ["molecule/*/molecule.yml"], | ||
"properties": { | ||
"driver": { | ||
"$ref": "#/$defs/MoleculeDriverModel" | ||
}, | ||
"platforms": { | ||
"items": { | ||
"$ref": "#/$defs/MoleculePlatformModel" | ||
}, | ||
"title": "Platforms", | ||
"type": "array" | ||
} | ||
}, | ||
"required": ["driver"], | ||
"title": "Molecule Delegated Driver Schema", | ||
"type": "object" | ||
} |