脚本
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
f6516f74
–
Add new java-nginx-az3 hosts
History
|
---|---|---|
.. | ||
inventory | Loading commit data... | |
lb_manager | Loading commit data... | |
qcloud | Loading commit data... | |
switch | Loading commit data... | |
tools | Loading commit data... | |
yansible | Loading commit data... | |
__init__.py | Loading commit data... | |
readme.md | Loading commit data... | |
switch_lb.py | Loading commit data... | |
sync_bigdata_inventory.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