2020-04-16 11:42:31 +08:00

33 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# oVirt Virtual Machine Infrastructure
#### 介绍
ovirt.vm-infra角色管理oVirt中的虚拟机基础架构。此角色还创建了创建虚拟机的清单它定义了是否将wait_for_ip设置为true以及虚拟机正在运行的状态。所有定义的虚拟机都是ovirt_vm清单组的一部分。如果有分配给虚拟机的任何标签角色还将创建ovirt_tag_{tag_name}组,并将带有该标签的所有虚拟机放置到该清单组。
考虑以下变量结构:
```yaml
vms:
- name: myvm1
tag: mytag1
profile: myprofile
- name: myvm2
tag: mytag2
profile: myprofile
```
该角色将使用两个虚拟机myvm1和myvm2创建清单组ovirt_vm。该角色还将创建具有虚拟机myvm1的清单组ovirt_tag_mytag1和具有虚拟机myvm2的清单组ovirt_tag_mytag2。
#### 依赖说明
* Ansible 2.9或更高版本
* Python SDK版本4.3或更高版本
* python3-jmespath或python2-jmespath
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request