Authored by chunhua.zhang

add

... ... @@ -27,6 +27,19 @@
10.66.70.41
[java-product]
10.66.70.47
10.66.70.96
[java-message]
10.66.70.47
10.66.70.96
[java-sns]
10.66.70.47
10.66.70.96
[java-brower]
10.66.70.42
... ... @@ -55,12 +68,3 @@
10.66.103.20
# all java services
[java-services:children]
java-users
java-resources
java-order
java-promotion
... ...
... ... @@ -112,3 +112,97 @@
remote_user: root
roles:
- java-rsyslog
# rsyslog config for java user
- hosts: java-users
vars:
rsyslog_module: users
rsyslog_files:
- bind-mobile
- browerSync
- change-bind-mobile
- debug-log
- login
- phone-valid
- instalment
- register
- register-big-data
- signinbyopenid-login
- user-import
- user_sign
- valid_pwd_err_log
- verify_student
- warn-log
- yohocoin_red
remote_user: root
roles:
- java-rsyslog
# rsyslog config for java resources
- hosts: java-resources
vars:
rsyslog_module: resoucres
rsyslog_files:
- debug-log
- warn-log
remote_user: root
roles:
- java-rsyslog
# rsyslog config for java resources
- hosts: java-resources
vars:
rsyslog_module: resoucres
rsyslog_files:
- debug-log
- warn-log
remote_user: root
roles:
- java-rsyslog
# rsyslog config for java product
- hosts: java-product
vars:
rsyslog_module: product
rsyslog_files:
- debug-log
- warn-log
- storage
- externalCallLog
- interface-log
remote_user: root
roles:
- java-rsyslog
# rsyslog config for java message
- hosts: java-message
vars:
rsyslog_module: message
rsyslog_files:
- debug-log
- warn-log
- smsSend
remote_user: root
roles:
- java-rsyslog
# rsyslog config for java sns
- hosts: java-sns
vars:
rsyslog_module: sns
rsyslog_files:
- debug
- warn
- sns-guang-log
remote_user: root
roles:
- java-rsyslog
... ...
#!/usr/bin/env python
# coding=utf-8
""""
generate ansible inventory files from auto-deploy: http://git.yoho.cn/yohoops/auto_deploy/tree/master/scripts/iptable
"""
import json
from subprocess import call
call("mkdir -p ~/.tmp")
call("rm -rf ~/.tmp/auto_deploy")
call("git clone --recursive git@git.yoho.cn:yohoops/auto_deploy.git", "~/.tmp/")
print("success write ansible inventory hosts files to file: [inventory_hosts]")
... ...