| 1 |
{ |
| 2 |
"$defs": { |
| 3 |
"ContainerRegistryModel": { |
| 4 |
"additionalProperties": false, |
| 5 |
"properties": { |
| 6 |
"url": { |
| 7 |
"title": "Url", |
| 8 |
"type": "string" |
| 9 |
} |
| 10 |
}, |
| 11 |
"required": ["url"], |
| 12 |
"title": "ContainerRegistryModel", |
| 13 |
"type": "object" |
| 14 |
}, |
| 15 |
"MoleculeDependencyModel": { |
| 16 |
"additionalProperties": false, |
| 17 |
"properties": { |
| 18 |
"command": { |
| 19 |
"title": "Command", |
| 20 |
"type": ["string", "null"] |
| 21 |
}, |
| 22 |
"enabled": { |
| 23 |
"default": true, |
| 24 |
"title": "Enabled", |
| 25 |
"type": "boolean" |
| 26 |
}, |
| 27 |
"env": { |
| 28 |
"title": "Env", |
| 29 |
"type": "object" |
| 30 |
}, |
| 31 |
"name": { |
| 32 |
"enum": ["galaxy", "shell"], |
| 33 |
"title": "Name", |
| 34 |
"type": "string" |
| 35 |
}, |
| 36 |
"options": { |
| 37 |
"title": "Options", |
| 38 |
"type": "object" |
| 39 |
} |
| 40 |
}, |
| 41 |
"required": ["name"], |
| 42 |
"title": "MoleculeDependencyModel", |
| 43 |
"type": "object" |
| 44 |
}, |
| 45 |
"MoleculeDriverModel": { |
| 46 |
"additionalProperties": false, |
| 47 |
"properties": { |
| 48 |
"cachier": { |
| 49 |
"title": "Cachier", |
| 50 |
"type": "string" |
| 51 |
}, |
| 52 |
"default_box": { |
| 53 |
"title": "DefaultBox", |
| 54 |
"type": "string" |
| 55 |
}, |
| 56 |
"name": { |
| 57 |
"enum": [ |
| 58 |
"azure", |
| 59 |
"ec2", |
| 60 |
"delegated", |
| 61 |
"docker", |
| 62 |
"containers", |
| 63 |
"openstack", |
| 64 |
"podman", |
| 65 |
"vagrant", |
| 66 |
"digitalocean", |
| 67 |
"gce", |
| 68 |
"libvirt", |
| 69 |
"lxd" |
| 70 |
], |
| 71 |
"title": "Name", |
| 72 |
"type": "string" |
| 73 |
}, |
| 74 |
"options": { |
| 75 |
"$ref": "#/$defs/MoleculeDriverOptionsModel" |
| 76 |
}, |
| 77 |
"parallel": { |
| 78 |
"title": "Parallel", |
| 79 |
"type": "boolean" |
| 80 |
}, |
| 81 |
"provider": { |
| 82 |
"title": "Provider", |
| 83 |
"type": "object" |
| 84 |
}, |
| 85 |
"provision": { |
| 86 |
"title": "Provision", |
| 87 |
"type": "boolean" |
| 88 |
}, |
| 89 |
"safe_files": { |
| 90 |
"items": { |
| 91 |
"type": "string" |
| 92 |
}, |
| 93 |
"title": "SafeFiles", |
| 94 |
"type": "array" |
| 95 |
}, |
| 96 |
"ssh_connection_options": { |
| 97 |
"items": { |
| 98 |
"type": "string" |
| 99 |
}, |
| 100 |
"title": "SshConnectionOptions", |
| 101 |
"type": "array" |
| 102 |
} |
| 103 |
}, |
| 104 |
"title": "MoleculeDriverModel", |
| 105 |
"type": "object" |
| 106 |
}, |
| 107 |
"MoleculeDriverOptionsModel": { |
| 108 |
"additionalProperties": false, |
| 109 |
"properties": { |
| 110 |
"ansible_connection_options": { |
| 111 |
"additionalProperties": { |
| 112 |
"type": "string" |
| 113 |
}, |
| 114 |
"title": "Ansible Connection Options", |
| 115 |
"type": "object" |
| 116 |
}, |
| 117 |
"login_cmd_template": { |
| 118 |
"title": "Login Cmd Template", |
| 119 |
"type": "string" |
| 120 |
}, |
| 121 |
"managed": { |
| 122 |
"title": "Managed", |
| 123 |
"type": "boolean" |
| 124 |
} |
| 125 |
}, |
| 126 |
"title": "MoleculeDriverOptionsModel", |
| 127 |
"type": "object" |
| 128 |
}, |
| 129 |
"MoleculePlatformModel": { |
| 130 |
"additionalProperties": true, |
| 131 |
"properties": { |
| 132 |
"box": { |
| 133 |
"title": "Box", |
| 134 |
"type": "string" |
| 135 |
}, |
| 136 |
"cgroupns": { |
| 137 |
"title": "Cgroupns", |
| 138 |
"type": "string" |
| 139 |
}, |
| 140 |
"children": { |
| 141 |
"items": { |
| 142 |
"type": "string" |
| 143 |
}, |
| 144 |
"type": "array" |
| 145 |
}, |
| 146 |
"command": { |
| 147 |
"title": "Command", |
| 148 |
"type": "string" |
| 149 |
}, |
| 150 |
"cpus": { |
| 151 |
"title": "Cpus", |
| 152 |
"type": "integer" |
| 153 |
}, |
| 154 |
"dockerfile": { |
| 155 |
"title": "Dockerfile", |
| 156 |
"type": "string" |
| 157 |
}, |
| 158 |
"env": { |
| 159 |
"items": { |
| 160 |
"type": "object" |
| 161 |
}, |
| 162 |
"title": "Platform Environment Variables", |
| 163 |
"type": "array" |
| 164 |
}, |
| 165 |
"environment": { |
| 166 |
"additionalProperties": { |
| 167 |
"type": "string" |
| 168 |
}, |
| 169 |
"title": "Environment", |
| 170 |
"type": "object" |
| 171 |
}, |
| 172 |
"groups": { |
| 173 |
"items": { |
| 174 |
"type": "string" |
| 175 |
}, |
| 176 |
"title": "Groups", |
| 177 |
"type": "array" |
| 178 |
}, |
| 179 |
"hostname": { |
| 180 |
"title": "Hostname", |
| 181 |
"type": ["string", "boolean"] |
| 182 |
}, |
| 183 |
"image": { |
| 184 |
"title": "Image", |
| 185 |
"type": ["string", "null"] |
| 186 |
}, |
| 187 |
"interfaces": { |
| 188 |
"title": "Interfaces", |
| 189 |
"type": "array" |
| 190 |
}, |
| 191 |
"memory": { |
| 192 |
"title": "Memory", |
| 193 |
"type": "integer" |
| 194 |
}, |
| 195 |
"name": { |
| 196 |
"title": "Name", |
| 197 |
"type": "string" |
| 198 |
}, |
| 199 |
"network_mode": { |
| 200 |
"anyOf": [ |
| 201 |
{ |
| 202 |
"enum": ["bridge", "host", "none"], |
| 203 |
"type": "string" |
| 204 |
}, |
| 205 |
{ |
| 206 |
"pattern": "^service:[a-zA-Z0-9:_.\\\\-]+$", |
| 207 |
"type": "string" |
| 208 |
}, |
| 209 |
{ |
| 210 |
"pattern": "^container:[a-zA-Z0-9][a-zA-Z0-9_.-]+$", |
| 211 |
"type": "string" |
| 212 |
} |
| 213 |
], |
| 214 |
"title": "Network Mode" |
| 215 |
}, |
| 216 |
"networks": { |
| 217 |
"items": { |
| 218 |
"$ref": "#/$defs/platform-network" |
| 219 |
}, |
| 220 |
"markdownDescription": "Used by docker and podman drivers.", |
| 221 |
"title": "Networks", |
| 222 |
"type": "array" |
| 223 |
}, |
| 224 |
"pkg_extras": { |
| 225 |
"title": "Pkg Extras", |
| 226 |
"type": "string" |
| 227 |
}, |
| 228 |
"pre_build_image": { |
| 229 |
"title": "Pre Build Image", |
| 230 |
"type": "boolean" |
| 231 |
}, |
| 232 |
"privileged": { |
| 233 |
"title": "Privileged", |
| 234 |
"type": "boolean" |
| 235 |
}, |
| 236 |
"provider_options": { |
| 237 |
"title": "Provider options", |
| 238 |
"type": "object" |
| 239 |
}, |
| 240 |
"provider_raw_config_args": { |
| 241 |
"items": { |
| 242 |
"type": "string" |
| 243 |
}, |
| 244 |
"title": "Provider Raw Config Args", |
| 245 |
"type": "array" |
| 246 |
}, |
| 247 |
"registry": { |
| 248 |
"$ref": "#/$defs/ContainerRegistryModel" |
| 249 |
}, |
| 250 |
"tmpfs": { |
| 251 |
"items": { |
| 252 |
"type": "string" |
| 253 |
}, |
| 254 |
"title": "Tmpfs", |
| 255 |
"type": "array" |
| 256 |
}, |
| 257 |
"ulimits": { |
| 258 |
"items": { |
| 259 |
"type": "string" |
| 260 |
}, |
| 261 |
"title": "Ulimits", |
| 262 |
"type": "array" |
| 263 |
}, |
| 264 |
"volumes": { |
| 265 |
"items": { |
| 266 |
"type": "string" |
| 267 |
}, |
| 268 |
"title": "Volumes", |
| 269 |
"type": "array" |
| 270 |
} |
| 271 |
}, |
| 272 |
"required": ["name"], |
| 273 |
"title": "MoleculePlatformModel", |
| 274 |
"type": "object" |
| 275 |
}, |
| 276 |
"MoleculeScenarioModel": { |
| 277 |
"additionalProperties": false, |
| 278 |
"properties": { |
| 279 |
"check_sequence": { |
| 280 |
"$ref": "#/$defs/ScenarioSequence" |
| 281 |
}, |
| 282 |
"cleanup_sequence": { |
| 283 |
"$ref": "#/$defs/ScenarioSequence" |
| 284 |
}, |
| 285 |
"converge_sequence": { |
| 286 |
"$ref": "#/$defs/ScenarioSequence" |
| 287 |
}, |
| 288 |
"create_sequence": { |
| 289 |
"$ref": "#/$defs/ScenarioSequence" |
| 290 |
}, |
| 291 |
"dependency_sequence": { |
| 292 |
"$ref": "#/$defs/ScenarioSequence" |
| 293 |
}, |
| 294 |
"destroy_sequence": { |
| 295 |
"$ref": "#/$defs/ScenarioSequence" |
| 296 |
}, |
| 297 |
"idempotence_sequence": { |
| 298 |
"$ref": "#/$defs/ScenarioSequence" |
| 299 |
}, |
| 300 |
"lint_sequence": { |
| 301 |
"$ref": "#/$defs/ScenarioSequence" |
| 302 |
}, |
| 303 |
"name": { |
| 304 |
"title": "Name", |
| 305 |
"type": "string" |
| 306 |
}, |
| 307 |
"prepare_sequence": { |
| 308 |
"$ref": "#/$defs/ScenarioSequence" |
| 309 |
}, |
| 310 |
"side_effect_sequence": { |
| 311 |
"$ref": "#/$defs/ScenarioSequence" |
| 312 |
}, |
| 313 |
"syntax_sequence": { |
| 314 |
"$ref": "#/$defs/ScenarioSequence" |
| 315 |
}, |
| 316 |
"test_sequence": { |
| 317 |
"$ref": "#/$defs/ScenarioSequence" |
| 318 |
}, |
| 319 |
"verify_sequence": { |
| 320 |
"$ref": "#/$defs/ScenarioSequence" |
| 321 |
} |
| 322 |
}, |
| 323 |
"title": "MoleculeScenarioModel", |
| 324 |
"type": "object" |
| 325 |
}, |
| 326 |
"ProvisionerConfigOptionsDefaultsModel": { |
| 327 |
"additionalProperties": true, |
| 328 |
"properties": { |
| 329 |
"ansible_managed": { |
| 330 |
"default": "Ansible managed: Do NOT edit this file manually!", |
| 331 |
"title": "Ansible Managed", |
| 332 |
"type": "string" |
| 333 |
}, |
| 334 |
"display_failed_stderr": { |
| 335 |
"default": true, |
| 336 |
"title": "Display Failed Stderr", |
| 337 |
"type": "boolean" |
| 338 |
}, |
| 339 |
"fact_caching": { |
| 340 |
"title": "Fact Caching", |
| 341 |
"type": "string" |
| 342 |
}, |
| 343 |
"fact_caching_connection": { |
| 344 |
"title": "Fact Caching Connection", |
| 345 |
"type": "string" |
| 346 |
}, |
| 347 |
"forks": { |
| 348 |
"default": 50, |
| 349 |
"title": "Forks", |
| 350 |
"type": "integer" |
| 351 |
}, |
| 352 |
"host_key_checking": { |
| 353 |
"default": false, |
| 354 |
"title": "Host Key Checking", |
| 355 |
"type": "boolean" |
| 356 |
}, |
| 357 |
"interpreter_python": { |
| 358 |
"default": "auto_silent", |
| 359 |
"description": "See https://docs.ansible.com/projects/ansible/devel/reference_appendices/interpreter_discovery.html", |
| 360 |
"title": "Interpreter Python", |
| 361 |
"type": "string" |
| 362 |
}, |
| 363 |
"nocows": { |
| 364 |
"default": 1, |
| 365 |
"title": "Nocows", |
| 366 |
"type": "integer" |
| 367 |
}, |
| 368 |
"retry_files_enabled": { |
| 369 |
"default": false, |
| 370 |
"title": "Retry Files Enabled", |
| 371 |
"type": "boolean" |
| 372 |
} |
| 373 |
}, |
| 374 |
"title": "ProvisionerConfigOptionsDefaultsModel", |
| 375 |
"type": "object" |
| 376 |
}, |
| 377 |
"ProvisionerConfigOptionsModel": { |
| 378 |
"additionalProperties": true, |
| 379 |
"properties": { |
| 380 |
"defaults": { |
| 381 |
"$ref": "#/$defs/ProvisionerConfigOptionsDefaultsModel" |
| 382 |
}, |
| 383 |
"ssh_connection": { |
| 384 |
"$ref": "#/$defs/ProvisionerConfigOptionsSshConnectionModel" |
| 385 |
} |
| 386 |
}, |
| 387 |
"title": "ProvisionerConfigOptionsModel", |
| 388 |
"type": "object" |
| 389 |
}, |
| 390 |
"ProvisionerConfigOptionsSshConnectionModel": { |
| 391 |
"additionalProperties": false, |
| 392 |
"properties": { |
| 393 |
"control_path": { |
| 394 |
"default": "%(directory)s/%%h-%%p-%%r", |
| 395 |
"title": "Control Path", |
| 396 |
"type": "string" |
| 397 |
}, |
| 398 |
"scp_if_ssh": { |
| 399 |
"default": true, |
| 400 |
"title": "Scp If Ssh", |
| 401 |
"type": "boolean" |
| 402 |
} |
| 403 |
}, |
| 404 |
"title": "ProvisionerConfigOptionsSshConnectionModel", |
| 405 |
"type": "object" |
| 406 |
}, |
| 407 |
"ProvisionerModel": { |
| 408 |
"additionalProperties": true, |
| 409 |
"properties": { |
| 410 |
"config_options": { |
| 411 |
"$ref": "#/$defs/ProvisionerConfigOptionsModel" |
| 412 |
}, |
| 413 |
"env": { |
| 414 |
"title": "Env", |
| 415 |
"type": "object" |
| 416 |
}, |
| 417 |
"inventory": { |
| 418 |
"title": "Inventory", |
| 419 |
"type": "object" |
| 420 |
}, |
| 421 |
"log": { |
| 422 |
"title": "Log", |
| 423 |
"type": "boolean" |
| 424 |
}, |
| 425 |
"name": { |
| 426 |
"enum": ["ansible"], |
| 427 |
"title": "Name", |
| 428 |
"type": "string" |
| 429 |
}, |
| 430 |
"playbooks": { |
| 431 |
"title": "Playbooks", |
| 432 |
"type": "object" |
| 433 |
} |
| 434 |
}, |
| 435 |
"title": "ProvisionerModel", |
| 436 |
"type": "object" |
| 437 |
}, |
| 438 |
"ScenarioSequence": { |
| 439 |
"additionalProperties": false, |
| 440 |
"items": { |
| 441 |
"enum": [ |
| 442 |
"check", |
| 443 |
"cleanup", |
| 444 |
"converge", |
| 445 |
"create", |
| 446 |
"dependency", |
| 447 |
"destroy", |
| 448 |
"idempotence", |
| 449 |
"lint", |
| 450 |
"prepare", |
| 451 |
"side_effect", |
| 452 |
"syntax", |
| 453 |
"test", |
| 454 |
"verify" |
| 455 |
], |
| 456 |
"type": "string" |
| 457 |
}, |
| 458 |
"title": "ScenarioSequence", |
| 459 |
"type": "array" |
| 460 |
}, |
| 461 |
"VerifierModel": { |
| 462 |
"additionalProperties": false, |
| 463 |
"properties": { |
| 464 |
"additional_files_or_dirs": { |
| 465 |
"items": { |
| 466 |
"type": "string" |
| 467 |
}, |
| 468 |
"title": "AdditionalFilesOrDirs", |
| 469 |
"type": "array" |
| 470 |
}, |
| 471 |
"enabled": { |
| 472 |
"title": "Enabled", |
| 473 |
"type": "boolean" |
| 474 |
}, |
| 475 |
"env": { |
| 476 |
"title": "Env", |
| 477 |
"type": "object" |
| 478 |
}, |
| 479 |
"name": { |
| 480 |
"default": "ansible", |
| 481 |
"enum": ["ansible", "goss", "inspec", "testinfra"], |
| 482 |
"title": "Name", |
| 483 |
"type": "string" |
| 484 |
}, |
| 485 |
"options": { |
| 486 |
"title": "Options", |
| 487 |
"type": "object" |
| 488 |
} |
| 489 |
}, |
| 490 |
"title": "VerifierModel", |
| 491 |
"type": "object" |
| 492 |
}, |
| 493 |
"platform-network": { |
| 494 |
"properties": { |
| 495 |
"aliases": { |
| 496 |
"items": { |
| 497 |
"type": "string" |
| 498 |
}, |
| 499 |
"type": "array" |
| 500 |
}, |
| 501 |
"ipv4_address": { |
| 502 |
"type": "string" |
| 503 |
}, |
| 504 |
"name": { |
| 505 |
"type": "string" |
| 506 |
} |
| 507 |
}, |
| 508 |
"required": ["name"], |
| 509 |
"type": "object" |
| 510 |
} |
| 511 |
}, |
| 512 |
"$id": "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/molecule.json", |
| 513 |
"$schema": "http://json-schema.org/draft-07/schema", |
| 514 |
"additionalProperties": false, |
| 515 |
"description": "https://docs.ansible.com/projects/molecule/configuration/", |
| 516 |
"examples": ["molecule/*/molecule.yml"], |
| 517 |
"properties": { |
| 518 |
"dependency": { |
| 519 |
"$ref": "#/$defs/MoleculeDependencyModel" |
| 520 |
}, |
| 521 |
"driver": { |
| 522 |
"$ref": "#/$defs/MoleculeDriverModel" |
| 523 |
}, |
| 524 |
"lint": { |
| 525 |
"title": "Lint", |
| 526 |
"type": "string" |
| 527 |
}, |
| 528 |
"log": { |
| 529 |
"default": true, |
| 530 |
"title": "Log", |
| 531 |
"type": "boolean" |
| 532 |
}, |
| 533 |
"platforms": { |
| 534 |
"items": { |
| 535 |
"$ref": "#/$defs/MoleculePlatformModel" |
| 536 |
}, |
| 537 |
"title": "Platforms", |
| 538 |
"type": "array" |
| 539 |
}, |
| 540 |
"prerun": { |
| 541 |
"title": "Prerun", |
| 542 |
"type": "boolean" |
| 543 |
}, |
| 544 |
"provisioner": { |
| 545 |
"$ref": "#/$defs/ProvisionerModel" |
| 546 |
}, |
| 547 |
"role_name_check": { |
| 548 |
"enum": [0, 1, 2], |
| 549 |
"title": "RoleNameCheck", |
| 550 |
"type": "integer" |
| 551 |
}, |
| 552 |
"scenario": { |
| 553 |
"$ref": "#/$defs/MoleculeScenarioModel" |
| 554 |
}, |
| 555 |
"verifier": { |
| 556 |
"$ref": "#/$defs/VerifierModel" |
| 557 |
} |
| 558 |
}, |
| 559 |
"required": ["driver", "platforms"], |
| 560 |
"title": "Molecule Scenario Schema", |
| 561 |
"type": "object" |
| 562 |
} |