tpcc and host-agent ansible installer add

This commit is contained in:
변정훈
2023-07-11 16:31:15 +09:00
commit 7e0429176c
456 changed files with 55291 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
---
- name: helm.tar.gz copy
copy:
src: "{{ role_path }}/files/helm.tar.gz"
dest: /root
when:
- inventory_hostname == groups['agent-master'][0]
- name: helm install
unarchive:
src: /root/helm.tar.gz
dest: /usr/local/bin/
remote_src: yes
when:
- inventory_hostname == groups['agent-master'][0]
- name: JSDP Clinet Chart copy
copy:
src: "{{ role_path }}/files/jaeger-client"
dest: /root/
when:
- inventory_hostname == groups['agent-master'][0]
- name: Jaeger TPCC Chart copy
copy:
src: "{{ role_path }}/files/jaeger-tpcc"
dest: /root/
when:
- inventory_hostname == groups['agent-master'][0]
- name: Deploy Jaeger Client
kubernetes.core.helm:
name: jaeger-client
chart_ref: "/root/jaeger-client"
release_namespace: "{{ NAMESAPCE }}"
values:
global:
CLUSTER_ID: "{{ CLUSTER_ID }}"
IMXC_IN_REGISTRY: "10.10.31.243:5000/cmoa3"
DATAGATE: "{{ DATAGATE }}"
TRACE_AGENT_VERSION: "rel{{ VERSION }}"
when:
- inventory_hostname == groups['agent-master'][0]
- name: Deploy Jaeger TPCC
kubernetes.core.helm:
name: jaeger-tpcc
chart_ref: "/root/jaeger-tpcc"
release_namespace: "default"
values:
global:
CLUSTER_ID: "{{ CLUSTER_ID }}"
AGENT_NAMESPACE: "{{ NAMESAPCE }}"
TPCC_NAMESPACE: "default"
IMXC_IN_REGISTRY: "10.10.31.243:5000/cmoa3"
when:
- inventory_hostname == groups['agent-master'][0]