脚本
inventory文件生成
根据 iptable 自动生成 java gateway、 微服务的inventory
手工维护:http://git.yoho.cn/ops/yoho-ansible-roles/tree/master/scripts/inventory/templates 文件中的
nginx
,nameservers
配置
依赖:
pip install jinja2
运行:
python scripts/gen_inventory.py
Name | Last Update |
Last Commit
7f3fc896
–
Enable retry when failed
History
|
---|---|---|
.. | ||
inventory | Loading commit data... | |
qcloud | Loading commit data... | |
yansible | Loading commit data... | |
__init__.py | Loading commit data... | |
cmdb_cobar.py | Loading commit data... | |
cos_archive_retrieve.py | Loading commit data... | |
gen_inventory.py | Loading commit data... | |
readme.md | Loading commit data... | |
server_decomission.py | Loading commit data... | |
switch_lb.py | Loading commit data... | |
sync_bigdata_inventory.py | Loading commit data... | |
zabbix.py | Loading commit data... |
根据 iptable 自动生成 java gateway、 微服务的inventory
手工维护:http://git.yoho.cn/ops/yoho-ansible-roles/tree/master/scripts/inventory/templates 文件中的 nginx
, nameservers
配置
依赖:
pip install jinja2
运行:
python scripts/gen_inventory.py