Module Assign NameStore Str Expr Str ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias Assign NameStore Str FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call NameLoad ListComp TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Return ListComp Call NameLoad NameLoad comprehension NameStore NameLoad orelse If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Str orelse Return NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict For NameStore NameLoad body Assign NameStore Dict Str Str Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad Str attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad If BoolOpOr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Dict Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Delete SubscriptDel NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword Call NameLoad NameLoad Str keyword NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad body Continue Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body AugAssignAdd NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Return Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list decorator_list
N/A N/A __auther__ Compass Dev Team (dev-team@syscompass.org) N/A package installer: ansible plugin. Cheetah.Template Template copy deepcopy N/A json N/A logging N/A os N/A re N/A shutil N/A subprocess compass.deployment.installers.installer PKInstaller compass.deployment.utils constants const compass.utils setting_wrapper compass_setting compass.utils util N/A NAME AnsibleInstaller byteify N/A N/A input N/A N/A N/A N/A isinstance input dict N/A N/A N/A dict N/A N/A N/A byteify key N/A byteify value N/A N/A key value N/A N/A input iteritems N/A N/A N/A isinstance input list N/A N/A N/A N/A byteify element N/A element input N/A N/A N/A isinstance input unicode N/A N/A N/A N/A input encode utf-8 N/A N/A input N/A AnsibleInstaller N/A PKInstaller N/A N/A INVENTORY_TMPL_DIR inventories N/A GROUPVARS_TMPL_DIR vars N/A INVENTORY_PATCH_TEMPALTE_DIR inventories N/A ANSIBLE_DIR ansible_dir N/A ANSIBLE_RUN_DIR ansible_run_dir N/A LOG_FILE ansible_log_file N/A ANSIBLE_CONFIG ansible_config N/A INVENTORY inventory_file N/A GROUP_VARIABLE group_variable N/A HOSTS_PATH etc_hosts_path N/A RUNNER_DIRS runner_dirs __init__ N/A N/A self config_manager N/A N/A N/A N/A N/A N/A super AnsibleInstaller self __init__ N/A N/A self config_manager config_manager N/A N/A self tmpl_name N/A N/A N/A self config_manager get_cluster_flavor_template N/A N/A self installer_settings N/A N/A N/A self config_manager get_pk_installer_settings N/A settings N/A self installer_settings N/A N/A self ansible_dir N/A N/A settings setdefault N/A self ANSIBLE_DIR None N/A N/A self ansible_run_dir N/A N/A settings setdefault N/A self ANSIBLE_RUN_DIR None N/A N/A self log_file N/A N/A settings setdefault N/A self LOG_FILE None N/A N/A self ansible_config N/A N/A settings setdefault N/A self ANSIBLE_CONFIG None N/A N/A self inventory N/A N/A settings setdefault N/A self INVENTORY None N/A N/A self group_variable N/A N/A settings setdefault N/A self GROUP_VARIABLE None N/A N/A self hosts_path N/A N/A settings setdefault N/A self HOSTS_PATH None N/A N/A self runner_dirs N/A N/A settings setdefault N/A self RUNNER_DIRS None N/A N/A self playbook N/A N/A N/A self tmpl_name replace tmpl yml N/A N/A self runner_files N/A N/A self playbook N/A adapter_name N/A N/A N/A self config_manager get_dist_system_name N/A N/A self tmpl_dir N/A N/A AnsibleInstaller get_tmpl_path adapter_name N/A N/A self adapter_dir N/A N/A N/A os path join N/A self ansible_dir adapter_name N/A N/A N/A logging debug %s instance created self N/A get_tmpl_path N/A N/A cls adapter_name N/A N/A N/A tmpl_path N/A N/A N/A os path join N/A N/A N/A os path join N/A compass_setting TMPL_DIR ansible_installer adapter_name N/A tmpl_path N/A classmethod __repr__ N/A N/A self N/A N/A N/A N/A %s[name=%s,installer_url=%s] N/A N/A N/A self __class__ __name__ N/A self NAME N/A self installer_url N/A generate_installer_config N/A N/A self N/A N/A N/A Render ansible config file by OS installing.

        The output format:
        {
           '1'($host_id/clusterhost_id):{
               'tool': 'ansible',
           },
           .....
        }
         N/A host_ids N/A N/A N/A self config_manager get_host_id_list N/A os_installer_configs N/A N/A host_id host_ids N/A N/A temp N/A tool ansible N/A N/A os_installer_configs N/A host_id temp N/A os_installer_configs N/A get_env_name N/A N/A self dist_sys_name cluster_name N/A N/A N/A N/A N/A - join N/A dist_sys_name cluster_name N/A _get_cluster_tmpl_vars N/A N/A self N/A N/A N/A Generate template variables dict

        Generates based on cluster level config.
        The vars_dict will be:
        {
            "baseinfo": {
                "id":1,
                "name": "cluster01",
                ...
            },
            "package_config": {
                .... //mapped from original package config based on metadata
            },
            "role_mapping": {
                ....
            }
        }
         N/A cluster_vars_dict N/A N/A cluster_baseinfo N/A N/A N/A self config_manager get_cluster_baseinfo N/A N/A cluster_vars_dict N/A N/A const BASEINFO cluster_baseinfo N/A pk_metadata N/A N/A N/A self config_manager get_pk_config_meatadata N/A pk_config N/A N/A N/A self config_manager get_cluster_package_config N/A os_metadata N/A N/A N/A self config_manager get_os_config_metadata N/A os_config N/A N/A N/A self config_manager get_cluster_os_config N/A pk_meta_dict N/A N/A self get_tmpl_vars_from_metadata pk_metadata pk_config N/A os_meta_dict N/A N/A self get_tmpl_vars_from_metadata os_metadata os_config N/A N/A N/A util merge_dict pk_meta_dict os_meta_dict N/A N/A cluster_vars_dict N/A N/A const PK_CONFIG pk_meta_dict N/A mapping N/A N/A N/A self config_manager get_cluster_roles_mapping N/A N/A N/A logging info cluster role mapping is %s mapping N/A N/A cluster_vars_dict N/A N/A const ROLES_MAPPING mapping N/A hosts_ip_settings N/A N/A N/A self config_manager get_hosts_ip_settings N/A N/A pk_meta_dict N/A network_cfg N/A ip_settings N/A N/A pk_meta_dict N/A network_cfg N/A sys_intf_mappings N/A N/A N/A logging info hosts_ip_settings is %s hosts_ip_settings N/A N/A cluster_vars_dict N/A ip_settings hosts_ip_settings N/A N/A byteify cluster_vars_dict N/A _generate_inventory_attributes N/A N/A self global_vars_dict N/A N/A N/A inventory_tmpl_path N/A N/A N/A os path join N/A N/A N/A os path join N/A self tmpl_dir N/A self INVENTORY_TMPL_DIR N/A self tmpl_name N/A N/A N/A N/A N/A os path exists inventory_tmpl_path N/A N/A N/A N/A logging error Inventory template '%s' does not exist N/A self tmpl_name N/A N/A Exception N/A Template '%s' does not exist! N/A self tmpl_name N/A N/A N/A self get_config_from_template inventory_tmpl_path global_vars_dict N/A _generate_group_vars_attributes N/A N/A self global_vars_dict N/A N/A N/A N/A N/A logging info global vars dict is %s global_vars_dict N/A group_vars_tmpl_path N/A N/A N/A os path join N/A N/A N/A os path join N/A self tmpl_dir N/A self GROUPVARS_TMPL_DIR N/A self tmpl_name N/A N/A N/A N/A N/A os path exists group_vars_tmpl_path N/A N/A N/A N/A logging error Vars template '%s' does not exist N/A self tmpl_name N/A N/A Exception N/A Template '%s' does not exist! N/A self tmpl_name N/A N/A N/A self get_config_from_template group_vars_tmpl_path global_vars_dict N/A _generate_hosts_attributes N/A N/A self global_vars_dict N/A N/A N/A hosts_tmpl_path N/A N/A N/A os path join N/A N/A N/A os path join N/A self tmpl_dir hosts N/A self tmpl_name N/A N/A N/A N/A N/A os path exists hosts_tmpl_path N/A N/A N/A N/A logging error Hosts template '%s' does not exist N/A self tmpl_name N/A N/A Exception N/A Template '%s' does not exist! N/A self tmpl_name N/A N/A N/A self get_config_from_template hosts_tmpl_path global_vars_dict N/A _generate_ansible_cfg_attributes N/A N/A self global_vars_dict N/A N/A N/A ansible_cfg_tmpl_path N/A N/A N/A os path join N/A N/A N/A os path join N/A self tmpl_dir ansible_cfg N/A self tmpl_name N/A N/A N/A N/A N/A os path exists ansible_cfg_tmpl_path N/A N/A N/A N/A logging error cfg template '%s' does not exist N/A self tmpl_name N/A N/A Exception N/A Template '%s' does not exist! N/A self tmpl_name N/A N/A N/A self get_config_from_template ansible_cfg_tmpl_path global_vars_dict N/A get_config_from_template N/A N/A self tmpl_path vars_dict N/A N/A N/A N/A N/A logging debug vars_dict is %s vars_dict N/A N/A N/A N/A N/A N/A os path exists tmpl_path N/A vars_dict N/A N/A N/A N/A logging info Template dir or vars_dict is None! N/A N/A N/A searchList N/A N/A copy_vars_dict N/A deepcopy vars_dict N/A N/A key value N/A N/A vars_dict iteritems N/A N/A N/A isinstance value dict N/A N/A temp N/A copy_vars_dict N/A key N/A N/A copy_vars_dict N/A key N/A N/A N/A searchList append temp N/A N/A N/A searchList append copy_vars_dict N/A tmpl N/A Template file N/A open tmpl_path r searchList searchList N/A N/A N/A tmpl respond N/A _create_ansible_run_env N/A N/A self env_name ansible_run_destination N/A N/A N/A N/A N/A N/A os path exists ansible_run_destination N/A N/A N/A N/A shutil rmtree ansible_run_destination True N/A N/A N/A os mkdir ansible_run_destination N/A dirs N/A self runner_dirs N/A files N/A self runner_files N/A dir dirs N/A N/A N/A N/A N/A N/A os path exists N/A N/A N/A os path join N/A self ansible_dir dir N/A N/A N/A N/A N/A os system N/A cp -rf %s %s N/A N/A N/A N/A os path join N/A self ansible_dir dir ansible_run_destination N/A file files N/A N/A N/A N/A logging info file is %s file N/A N/A N/A shutil copy N/A N/A N/A os path join N/A self adapter_dir file N/A N/A N/A os path join ansible_run_destination file N/A prepare_ansible N/A N/A self env_name global_vars_dict N/A N/A N/A ansible_run_destination N/A N/A N/A os path join N/A self ansible_run_dir env_name N/A N/A N/A N/A os path exists ansible_run_destination N/A N/A ansible_run_destination -expansion N/A N/A N/A self _create_ansible_run_env env_name ansible_run_destination N/A inv_config N/A N/A self _generate_inventory_attributes global_vars_dict N/A inventory_dir N/A N/A N/A os path join ansible_run_destination inventories N/A vars_config N/A N/A self _generate_group_vars_attributes global_vars_dict N/A vars_dir N/A N/A N/A os path join ansible_run_destination group_vars N/A hosts_config N/A N/A self _generate_hosts_attributes global_vars_dict N/A hosts_destination N/A N/A N/A os path join ansible_run_destination N/A self hosts_path N/A cfg_config N/A N/A self _generate_ansible_cfg_attributes global_vars_dict N/A cfg_destination N/A N/A N/A os path join ansible_run_destination N/A self ansible_config N/A N/A N/A os mkdir inventory_dir N/A N/A N/A os mkdir vars_dir N/A inventory_destination N/A N/A N/A os path join inventory_dir N/A self inventory N/A group_vars_destination N/A N/A N/A os path join vars_dir N/A self group_variable N/A N/A N/A self serialize_config inv_config inventory_destination N/A N/A N/A self serialize_config vars_config group_vars_destination N/A N/A N/A self serialize_config hosts_config hosts_destination N/A N/A N/A self serialize_config cfg_config cfg_destination N/A deploy N/A N/A self N/A N/A N/A Start to deploy a distributed system.

        Return both cluster and hosts deployed configs.
        The return format:
        {
            "cluster": {
                "id": 1,
                "deployed_package_config": {
                    "roles_mapping": {...},
                    "service_credentials": {...},
                    ....
                }
            },
            "hosts": {
                1($clusterhost_id): {
                    "deployed_package_config": {...}
                },
                ....
            }
        }
         N/A host_list N/A N/A N/A self config_manager get_host_id_list N/A N/A host_list N/A N/A N/A N/A adapter_name N/A N/A N/A self config_manager get_adapter_name N/A cluster_name N/A N/A N/A self config_manager get_clustername N/A env_name N/A N/A self get_env_name adapter_name cluster_name N/A global_vars_dict N/A N/A self _get_cluster_tmpl_vars N/A N/A N/A logging info %s var dict: %s N/A N/A self __class__ __name__ global_vars_dict N/A N/A N/A self prepare_ansible env_name global_vars_dict N/A patch N/A N/A self patched_role_mapping N/A N/A N/A adapter_name N/A N/A N/A self config_manager get_adapter_name N/A cluster_name N/A N/A N/A self config_manager get_clustername N/A env_name N/A N/A self get_env_name adapter_name cluster_name N/A ansible_run_destination N/A N/A N/A os path join N/A self ansible_run_dir env_name N/A inventory_dir N/A N/A N/A os path join ansible_run_destination inventories N/A patched_global_vars_dict N/A N/A self _get_cluster_tmpl_vars N/A mapping N/A N/A N/A self config_manager get_cluster_patched_roles_mapping N/A N/A patched_global_vars_dict N/A roles_mapping mapping N/A patched_inv N/A N/A self _generate_inventory_attributes patched_global_vars_dict N/A inv_file N/A N/A N/A os path join inventory_dir patched_inventory.yml N/A N/A N/A self serialize_config patched_inv inv_file N/A config_file N/A N/A N/A os path join ansible_run_destination N/A self ansible_config N/A playbook_file N/A N/A N/A os path join ansible_run_destination N/A self playbook N/A log_file N/A N/A N/A os path join ansible_run_destination patch.log N/A cmd N/A ANSIBLE_CONFIG=%s ansible-playbook -i %s %s N/A config_file inv_file playbook_file N/A N/A open log_file w logfile N/A N/A N/A N/A subprocess Popen cmd shell True stdout logfile stderr logfile N/A patched_role_mapping N/A cluster_os_ready N/A N/A self N/A N/A N/A adapter_name N/A N/A N/A self config_manager get_adapter_name N/A cluster_name N/A N/A N/A self config_manager get_clustername N/A env_name N/A N/A self get_env_name adapter_name cluster_name N/A ansible_run_destination N/A N/A N/A os path join N/A self ansible_run_dir env_name N/A expansion_dir N/A ansible_run_destination -expansion N/A N/A N/A N/A os path exists expansion_dir N/A N/A ansible_run_destination expansion_dir N/A inventory_dir N/A N/A N/A os path join ansible_run_destination inventories N/A inventory_file N/A N/A N/A os path join inventory_dir N/A self inventory N/A playbook_file N/A N/A N/A os path join ansible_run_destination N/A self playbook N/A log_file N/A N/A N/A os path join ansible_run_destination run.log N/A config_file N/A N/A N/A os path join ansible_run_destination N/A self ansible_config N/A cmd N/A ANSIBLE_CONFIG=%s ansible-playbook -i %s %s N/A config_file inventory_file playbook_file N/A N/A open log_file w logfile N/A N/A N/A N/A subprocess Popen cmd shell True stdout logfile stderr logfile N/A N/A