Initial commit: VMware vSphere API simulator scaffold.
Add the FastAPI app, PostgreSQL migrations, Docker/Helm packaging, API contracts, docs, client examples, and the unit/integration/compatibility test suite for local client and tooling labs without a real vCenter.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
**Language / Язык:** [English](../../examples/ansible.md) | [Русский](ansible.md)
|
||||
|
||||
# Ansible
|
||||
|
||||
Playbook использует модуль `uri` против HTTPS-шлюза
|
||||
(`https://localhost`): вход по Basic-auth сессии, затем вызовы с
|
||||
заголовком `vmware-api-session-id` для остального жизненного цикла.
|
||||
|
||||
```bash
|
||||
cd examples/ansible
|
||||
ansible-playbook -i inventory.ini vsphere_playbook.yml
|
||||
```
|
||||
|
||||
[`vsphere_playbook.yml`](../../../examples/ansible/vsphere_playbook.yml) охватывает:
|
||||
вход в сессию, список ВМ, создание, power on, опрос CIS-задачи
|
||||
(`/api/cis/tasks/{task}`), запись файла в лабораторную гостевую виртуальную ФС,
|
||||
power off, удаление и выход из сессии.
|
||||
|
||||
Перед опорой на фиксированные имена ВМ/MOID из предыдущего запуска выполните
|
||||
повторный seed симулятора (`make seed`).
|
||||
|
||||
Для lab-набора на официальном `pulumi-vsphere` (непустые export'ы, HTML-отчёт)
|
||||
см. [`pulumi-tests/`](../../../pulumi-tests/README.ru.md) или `make pulumi-tests`.
|
||||
Reference in New Issue
Block a user