MINDXDL_NAMESPACE: "mindx-dl"
MINDX_USER: hwMindX
MINDX_USER_ID: 9000
MINDX_GROUP: hwMindX
MINDX_GROUP_ID: 9000
HIAI_GROUP: HwHiAiUser
host_count: "{{ ansible_play_hosts_all | length }}"
first_host: "{{ ansible_play_hosts_all[0] }}"
no_copy_flag: "{{ NO_COPY | default('false') }}"
scale: "{{ SCALE | default('false') }}"
use_mindxdl: "{{ SCENE_NUM != 4 }}"
ascend_deployer_work_dir: "{{ ansible_config_file | dirname }}"
resource_dir: "{{ ascend_deployer_work_dir }}/resources"
resource_path: "~/resources"
resources_dir: "~/resources"
docker_daemonfile_path: "/etc/docker/daemon.json"
DOCKER_COMPONENT: "docker"
K8S_COMPONENT: "k8s"
DOCKER_RUNTIME_COMPONENT: "docker-runtime"
DEVICE_PLUGIN_COMPONENT: "device-plugin"
VOLCANO_COMPONENT: "volcano"
NODED_COMPONENT: "noded"
NPU_EXPORTER_COMPONENT: "npu-exporter"
ASCEND_OPERATOR: "ascend-operator"
RESILIENCE_CONTROLLER: "resilience-controller"
CLUSTERD: "clusterd"
SCENES: {
1: ["{{DOCKER_COMPONENT}}", "{{K8S_COMPONENT}}", "{{DOCKER_RUNTIME_COMPONENT}}", "{{DEVICE_PLUGIN_COMPONENT}}",
"{{VOLCANO_COMPONENT}}", "{{NODED_COMPONENT}}", "{{NPU_EXPORTER_COMPONENT}}",
"{{ASCEND_OPERATOR}}", "{{RESILIENCE_CONTROLLER}}", "{{CLUSTERD}}"],
2: ["{{DOCKER_RUNTIME_COMPONENT}}", "{{DEVICE_PLUGIN_COMPONENT}}", "{{VOLCANO_COMPONENT}}"],
3: ["{{DOCKER_RUNTIME_COMPONENT}}", "{{DEVICE_PLUGIN_COMPONENT}}"],
4: ["{{DOCKER_COMPONENT}}", "{{K8S_COMPONENT}}"]
}
NO_DOCKER_K8S_SCENES: [2, 3]
SCENE_NUM: 1
EXTRA_COMPONENT: ""
NODE_NAME: "{{ set_hostname if set_hostname is defined else ansible_hostname }}"
user: HwHiAiUser
group: HwHiAiUser
install_path: /usr/local/Ascend
in_k8s_group: "{{ inventory_hostname in groups['master'] or inventory_hostname in groups['worker'] }}"