This commit is contained in:
havelight-ee
2023-06-22 14:29:58 +09:00
parent b9fefae7ff
commit 021f48a493
14 changed files with 13 additions and 15 deletions

1
documentation Submodule

Submodule documentation added at 6ae96f1963

View File

@@ -46,4 +46,4 @@
- name: "Check dsk-docker-trace-agent"
include_tasks: dsk-docker-trace-agent.yml
when: '"dsk-docker-trace-agent" in datasaker_docker_agents'
when: '"dsk-docker-trace-agent" in datasaker_docker_agents'

View File

@@ -42,4 +42,4 @@
src: global-config.yml.j2
dest: "{{ datasaker_docker_global_config }}"
when:
- datasaker_docker_agents
- datasaker_docker_agents

View File

@@ -75,7 +75,6 @@
update_cache: yes
with_items:
- "{{ datasaker_agents }}"
# - Restart {{ item }} service
ignore_errors: true
- name: "Install datasaker log agent"

View File

@@ -34,4 +34,4 @@
- "{{ datasaker_docker_global_config }}:/etc/datasaker/global-config.yml:ro"
- "{{ datasaker_docker_path }}/dsk-docker-log-agent-config.yml:/etc/datasaker/dsk-log-agent/agent-config.yml:ro"
- "{{ item }}"
loop: "{{ custom_log_volume | default(['{{ docker_default_path }}:/var/log/sample/:ro']) }}"
loop: "{{ custom_log_volume | default(['{{ docker_default_path }}:/var/log/sample/:ro']) }}"

View File

@@ -30,7 +30,6 @@
- "{{ datasaker_docker_path }}/agent/dsk-node-agent"
- "{{ datasaker_docker_path }}/log"
- name: "Run Datasaker Container Agent"
ansible.builtin.docker_container:
name: dsk-docker-container-agent
@@ -66,4 +65,4 @@
- "{{ datasaker_docker_path }}:/var/datasaker/"
- "/proc/:/host/proc/:ro"
- "/sys/:/host/sys/:ro"
- "{{ datasaker_docker_global_config }}:/etc/datasaker/global-config.yml:ro"
- "{{ datasaker_docker_global_config }}:/etc/datasaker/global-config.yml:ro"

View File

@@ -54,4 +54,4 @@
volumes:
- "{{ datasaker_docker_path }}:/var/datasaker/"
- "{{ datasaker_docker_global_config }}:/etc/datasaker/global-config.yml:ro"
- "{{ datasaker_docker_path }}/dsk-docker-plan-postgres-config.yml:/etc/datasaker/dsk-plan-postgres-agent/agent-config.yml:ro"
- "{{ datasaker_docker_path }}/dsk-docker-plan-postgres-config.yml:/etc/datasaker/dsk-plan-postgres-agent/agent-config.yml:ro"

View File

@@ -34,4 +34,4 @@
volumes:
- "{{ datasaker_docker_path }}:/var/datasaker/"
- "{{ datasaker_docker_global_config }}:/etc/datasaker/global-config.yml:ro"
- "{{ datasaker_docker_path }}/dsk-docker-trace-agent-config.yml:/etc/datasaker/dsk-trace-agent/agent-config.yml:ro"
- "{{ datasaker_docker_path }}/dsk-docker-trace-agent-config.yml:/etc/datasaker/dsk-trace-agent/agent-config.yml:ro"

View File

@@ -10,4 +10,4 @@
- name: "Setting dsk-log-agent config"
template:
src: log-agent-config.yml.j2
dest: "/etc/datasaker/dsk-log-agent/agent-config.yml"
dest: "/etc/datasaker/dsk-log-agent/agent-config.yml"

View File

@@ -12,4 +12,4 @@
- name: "Setting dsk-postgres-agent config"
template:
src: postgres-agent-config.yml.j2
dest: "/etc/datasaker/dsk-postgres-agent/agent-config.yml"
dest: "/etc/datasaker/dsk-postgres-agent/agent-config.yml"

View File

@@ -45,4 +45,4 @@
notify:
- Reload systemd configuration
- Restart {{ item }} service
ignore_errors: true
ignore_errors: true

View File

@@ -43,4 +43,4 @@
- name: "Uninstall Datasaker Agent"
include_tasks: remove-datasaker.yml
when:
- uninstall == True
- uninstall == True

View File

@@ -3,4 +3,4 @@
path: /var/datasaker
owner: "{{ datasaker_docker_user }}"
group: "{{ datasaker_docker_group }}"
recurse: yes
recurse: yes

View File

@@ -127,5 +127,4 @@
when:
- datasaker_clean == True
- datasaker_docker_agents
ignore_errors: yes
ignore_errors: yes