1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
| #!/usr/bin/env python2 # -*- coding: utf-8 -*- from config import ENV MESSAGE_INFO = { 'start_kvm_site': 'Now Start KVM Create', 'app_clone': 'App Clone Genreate CentOS74', 'site_image_ip': 'Source Hosts Site Image IP', 'site_imgxml_cpu': 'Sources Hosts Site Image XML CPU', 'site_imgxml_mem': 'Sources Hosts Site Image XML Memory', 'scp_cloned_img': 'Sources Hosts Scp Cloned Image To Targets hosts', 'scp_cloned_xml': 'Sources Hosts Scp Cloned XML To Targets hosts', 'define_kvm': 'Targets Hosts Define Kvm Hosts', 'start_kvm': 'Targets Hosts Start Kvm Hosts', 'extend_disk': 'Targets Hosts Extend Kvm Disk', 'wait_sleep': 'Sleep 60s For Wait Start Kvm Hosts', 'site_kvm_hosts': 'KVM Site KVM Hosts', 'install_kvm_adminsetd': 'KVM Install Adminsetd And Node_exporter', 'start_yum_tools_install': 'Now Start Yum Tools Install', 'start_nginx_install': 'Now Start Nginx Install', 'nginx_copy': 'Nginx Copy Source File', 'copy_nginx_install_shell': 'Nginx Copy Install Shell', 'create_nginx_log_dir': 'Nginx Create Log Dir', 'create_nginx_group_and_user': 'Nginx Create Group And User', 'install_nginx': 'Nginx Install', 'create_nginx_vhosts_dir': 'Nginx Create Vhosts Dir', 'copy_main_template_config_file': 'Nginx Main Template Config File', 'copy_vhost_template_config_file': 'Nginx Copy Vhost Template Config File', 'copy_service_config_file': 'Nginx Copy Service Config File', 'start_nginx': 'Nginx Start', 'nginx_clean_local_tmp_cache_file': 'Nginx Clean local Tmp Cache File', 'start_php_install': 'Now Start PHP Install', 'php_copy': 'PHP Copy Source File', 'cp_php_install_shell': 'PHP Copy Install Shell', 'create_php_group_and_user': 'PHP Create Group And User', 'create_php_log_dir': 'PHP Create Log Dir', 'create_php_error_log_file': 'PHP Create Error Log File', 'install_php': 'PHP Install', 'cp_main_phpini_config': 'PHP Copy Phpini Config', 'cp_php_www_conf_config': 'PHP Copy PHP WWW Config', 'cp_php_php_fpm_config': 'PHP Copy php-fpm Config', 'cp_php_php_fpm_service': 'PHP Copy php-fpm Service', 'start_php': 'PHP Start', 'php_clean_local_tmp_cache_files': 'PHP Clean local Tmp Cache File', 'start_redis_install': 'Now Start Reids Install', 'redis_copy': 'Redis Copy Source File', 'cp_redis_install_shell': 'Redis Copy Install Shell', 'create_redis_group_and_user': 'Redis Create Grup And User', 'install_redis': 'Redis Install', 'create_redis_log_file': 'Redis Create Redis Log File', 'crate_redis_data_dir': 'Redis Create Data Dir', 'copy_redis_config': 'Redis Copy Config', 'copy_redis_service_config': 'Redis Copy Service Config', 'redis_clean_local_tmp_cache_file': 'Redis Clean Local Tmp Cache File', 'start_jdk_install': 'Now Start Install JDK', 'yum_install_jdk': 'JDK Yum Install', 'start_zabbix_agentd_install': 'Now Start Zabbix Agent Install', 'zabbix_copy': 'Zabbix Copy Source File', 'cp_zabbix_agent_install_shell': 'Zabbix Copy Agent Install Shell', 'create_zabbix_group_and_user': 'Zabbix Create Zabbix Group And User', 'create_zabbix_agent_log_dir': 'Zabbix Create Agent Log Dir', 'install_zabbix_agent': 'Zabbix Install Agent', 'copy_zabbix_agent_config_file': 'Zabbix Copy Zabbix Agent Config', 'copy_zabbix_agent_init_file': 'Zabbix Copy Zabbix Agent init', 'add_zabbix_agent_init': 'Zabbix Agent init', 'start_zabbix_agentd': 'Zabbix Agent start', 'zabbix_clean_local_tmp_cache_file': 'Zabbix Clean Local Tmp Cache File', 'start_mysqlxx_install': 'Now Start Mysqlxx Install', 'deletexx_old_conf': 'MySQLxx Delete Old Conf', 'deletexx_old_conf_dir': 'MySQLxx Delete Old Conf Dir', 'mysqlxx_source': 'MySQLxx Copy Source File', 'cp_mysqlxx_conf': 'MySQLxx Copy Conf', 'copy_mysqlxx_install_sh': 'MySQLxx Copy Install Shell', 'add_mysqlxx_user_and_group': 'MySQLxx Add User And Group', 'createxx_related_directories': 'MySQlxx Create Related Directories', 'createxx_slowlog_file': 'MySQLxx Create Slowlog File', 'install_mysqlxx': 'MySQLxx Install', 'add_mysqlxx_to_PATH': 'MySQLxx Add To PATH', 'cleanxx_local_tmp_cache_file': "MySQLxx Clean Local Tmp Cache File", 'copy_mysqlxx_service_file': "MySQLxx Copy Service File", 'start_mysqlxx_and_enable_it_onboot': 'MySQLxx start And Enable Onboot', 'start_mysqlxx13_install': 'Now Start Mysqlxx13 Install', 'deletexx13_old_conf': 'MySQLxx13 Delete Old Conf', 'deletexx13_old_conf_dir': 'MySQLxx13 Delete Old Conf Dir', 'mysqlxx13_source': 'MySQLxx13 Copy Source File', 'cp_mysqlxx13_conf': 'MySQLxx13 Copy Conf', 'copy_mysqlxx13_install_sh': 'MySQLxx13 Copy Install Shell', 'add_mysqlxx13_user_and_group': 'MySQLxx13 Add User And Group', 'createxx13_related_directories': 'MySQlxx13 Create Related Directories', 'createxx13_slowlog_file': 'MySQLxx13 Create Slowlog File', 'install_mysqlxx13': 'MySQLxx13 Install', 'add_mysqlxx13_to_PATH': 'MySQLxx13 Add To PATH', 'cleanxx13_local_tmp_cache_file': "MySQLxx13 Clean Local Tmp Cache File", 'copy_mysqlxx13_service_file': "MySQLxx13 Copy Service File", 'start_mysqlxx13_and_enable_it_onboot': 'MySQLxx13 Start And Enable Onboot', 'set_kvm_passwd': 'KVM Set root passwd', 'env': 'KVM ENV Is: ', 'name': 'KVM Host Name Is: ', 'ip': 'KVM IP Is: ', 'target': 'TARGET IP Is: ', 'gateway': 'KVM Gateway Is: ', 'netmask': 'KVM Netmask Is: ', 'app': 'KVM APP Is: ', 'cpu': 'KVM CPU Is: ', 'memory': 'KVM Memory Is: ', 'disk': 'KVM Disk Is: ', 'passwd': 'KVM Passwd IS: ' }
|