ansible-nutanix-inventory:与Nutanix API交互的Ansible动态清单脚本

时间:2021-01-31 08:13:31
【文件属性】:
文件名称:ansible-nutanix-inventory:与Nutanix API交互的Ansible动态清单脚本
文件大小:7KB
文件格式:ZIP
更新时间:2021-01-31 08:13:31
ansible ansible-inventory nutanix nutanix-automation AnsiblePython Nutanix Ansible的外部清单脚本 总览 此脚本生成Ansible可以通过向一个或多个Nutanix群集发出API请求来理解的清单。 假定旁边有一个nutanix.yml文件。 要指定nutanix.yml的其他路径,请定义NUTANIX_YML_PATH环境变量: export NUTANIX_YML_PATH=/path/to/nutanix.yml 该脚本要求所有VM名称和IP地址在群集之间都是唯一的,否则将失败。 这是为了防止具有相同名称或IP地址的VM在清单中相互覆盖。 实施缓存是为了减少流量并加快库存结果。 缓存文件保留的时间长度由nutanix.yml中的max_cache_age确定。 您也可以使用--refresh-cache开关强制更新--refresh-cache 。 对于每个主机,将注册以下变量: 雅典卫城 clusterUuid ConstanceGroupName containerIds-列表 containerUuids-列表 控制器Vm cpuReservedInHz diskCapacityInBytes 可显示的
【文件预览】:
ansible-nutanix-inventory-master
----nutanix.yml(463B)
----README.md(4KB)
----nutanix.py(21KB)

网友评论