# web页面信息 login_url: http://10.101.3.135/#/login # 登录页面 web_user: sys_admin # 网页登录用户名 web_pwd: unary123 # 网页登录密码 # bcm服务器信息 bcm_server: 10.101.3.135 bcm_username: root bcm_password: 2008Bc1223!@# bcm_path: '[datastore1] BCM_133/BCM_133.vmx' # 服务器在ESXi的目录 # 生产机信息 agent_name: 962_centos7.3 # 生产机名 agent_ip: '10.101.4.145' # 生产机IP agent_ip2: ~ # 生产机IP2,若不存在,填空值,使用~表示 agent_user: root # 生产机用户名 agent_pwd: unary123 # 生产机密码 agent_disks: [/dev/sda, /dev/sdb] # 生产机磁盘 agent_sys: centos7.3 # 生产机系统 agent_arch: x64 # 生产机系统位数,可填值x86,x64 # 生产机所在ESXi信息 esxi_ip: '10.10.4.111' # ESXi IP esxi_user: root # ESXi用户名 esxi_pwd: unary1223 # ESXi密码 agent_snap: 快照生产机 # 生产机快照 # 生产机所在虚拟化平台信息 platform_type: esxi # 虚拟化平台类型 platform_ip: '10.10.4.111' # 虚拟化平台IP platform_user: root # 虚拟化平台用户名 platform_pwd: unary1223 # 虚拟化平台密码 platform_url: ~ # 虚拟化平台URL agent_uuid: ~ # 生产机UUID agent_path: '[s3] 自动化测试 Centos7.3/自动化测试 Centos7.3.vmx' # 生产机在ESXi的目录 agent_snap: 快照生产机 # 生产机快照 # 代理安装卸载 install_agent: 'E:\\AutoTest\\trunk\\脚本工具\\linux下载安装代理\\agent.bat E:\\AutoTest\\trunk\\脚本工具\\linux下载安装代理\\centos7.3x64' # 代理安装脚本 uninstall_agent: 'E:\\AutoTest\\trunk\\脚本工具\\linux下载安装代理\\agent_uninstall.bat E:\\AutoTest\\trunk\\脚本工具\\linux下载安装代理\\centos7.3x64' # 代理卸载脚本 upgrade_agent: 'E:\\AutoTest\\trunk\\脚本工具\\linux下载安装代理\\agent_upgrade.bat E:\\AutoTest\\trunk\\脚本工具\\linux下载安装代理\\centos7.3x64' # 代理升级脚本 # 数据库信息 db_type: mysql db_user: root # 数据库用户名 db_pwd: unary123A! # 数据库密码 db_database: test # 校验的数据库 start_script: /home/pyScript/run.sh # 启用mysql插数据脚本命令 kill_script: 'ps -ef|grep insert_mysql.py|grep -v grep|cut -c 9-15|xargs kill -9' # 停止mysql插数据脚本命令 # 快照信息 snap_schedule: '2' # 定时快照周期 snap_name: centos7.3 # 快照名 snap_comment: develop # 快照备注 mount_disk: /dev/sdb # 生产机需要挂载的磁盘 # 演练机信息 drill_ip: '10.101.8.145' # 演练机IP drill_ip2: ~ # 演练机IP2,若不存在,填空值,使用~表示 script_path: /home/unary/unaagent/bin/ExtendScript/SetNetScript/ # 生产机上修改IP脚本目录 drill_name1: drillcentos7.3-1 # 演练机名 drill_name2: drillcentos7.3-2 # 演练机名 drill_name3: drillcentos7.3-3 # 演练机名 drill_name4: drillcentos7.3-4 # 演练机名 drill_name5: drillcentos7.3-5 # 演练机名 drill_name6: drillcentos7.3-6 # 演练机名 auto_drill_name: auto_drill # 自动演练机名 auto_drill_time: '1' # 自动演练周期 withagent_drill: 962_drill #有代理关联演练机名(hostname设置为drvm_962_drill,兼容关键字) #有代理接管信息 withagent_ip1: 10.101.9.145 withagent_ip2: 10.101.9.146 withagent_ip3: 10.101.10.145 # 接管机信息 failover_name: 962_takeover # 接管机名(有代理hostname设置为drvm_962_takeover,兼容关键字) failover_wait_time: '1' # 生产机关机后等待时间 # 应用检测信息 chk_services: [mariadb] stop_services: [mariadb] # 停止服务 chk_schedule: '1' # 应用检测周期 chk_failed_times: '2' # 应用检测失败次数 # 文件md5校验 md5_script: 'E:\\AutoTest\\trunk\\脚本工具\\校验MD5\\md5.py' # md5计算脚本 source_dir: /home/data # 校验数据源目录 # 文件系统校验 fsck_type: xfs # 文件系统检查的类型 fsck_part: /dev/sda1 # 文件系统检查的分区 fsck_mp: /boot # 文件系统检查的分区对应的挂载点 # 配置保护 io_space_dev: [/dev/sdb] # 设置IO空间的磁盘,若不存在,填空值,使用~表示 io_space_num: '100' # 设置IO空间的大小,若不存在,填空值,使用~表示 #数据拷贝 remove_command: 'rm /home/copy/*' # 删除命令 copy_command: 'cp /home/copy.iso /home/copy' # 删除命令 sleep_time: 3m # 等待时间 chk_vm_status_time: 60 # 检测容灾机状态次数 #磁盘块大小 size: 32 # 恢复机信息 esxi_ip: '10.10.4.111' # ESXi IP esxi_user: root # ESXi用户名 esxi_pwd: unary1223 # ESXi密码 restore_name: 962_CentOS 7.3 64bit # 恢复机名称 restore_user: root # 恢复机用户名 restore_password: 123456 # 恢复机密码 restore_tool_path: E:\\AutoTest\\trunk\\脚本工具\\自动化迁移工具\\restore.tar # 恢复脚本工具目录 restore_ip: 10.101.5.99 # 恢复机IP(自动化restore固定ip) restore_ip_cfg: "cp /root/linuxSetNet.sh /unary/unary/unaagent/bin/ExtendScript/SetDiffMachineNet/linuxSetNet.sh" setnetwork_path: E:\\AutoTest\\trunk\\脚本工具\\windows下载安装代理\\setnetwork.sh # 设置IP脚本位置 restore_ip2: 10.101.4.145 # 恢复完成后IP restore_path: '[s3] 自动化测试 Centos7.3/自动化测试 Centos7.3.vmx' # 恢复机位置 restore_snap: restore_init # 恢复机快照 uploadfile_bat: E:\\Autotest\\trunk\\脚本工具\\自动化迁移工具\\linux_restore\\UploadFile.bat restore_script: '/root/remote.sh 962_restore' # 执行恢复脚本命令 restore_log_path: E:\\AutoTest\\trunk\\脚本工具\\自动化迁移工具\\upload_restorelog.sh get_cd_driver: E:\Autotest\trunk\脚本工具\自动化迁移工具\linux_restore\restore_upload\restore.bat