Add bootstrap compose templates to observability roles
This commit is contained in:
parent
4dc54f6644
commit
e811acd9dc
5
playbooks/deploy_OpenObserve_docker.yaml
Normal file
5
playbooks/deploy_OpenObserve_docker.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
- name: setup OpenObserve
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- docker/OpenObserve/
|
||||||
5
playbooks/deploy_Tempo_docker.yaml
Normal file
5
playbooks/deploy_Tempo_docker.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
- name: setup Tempo
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- docker/Tempo/
|
||||||
5
playbooks/deploy_VictoriaLogs_docker.yaml
Normal file
5
playbooks/deploy_VictoriaLogs_docker.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
- name: setup VictoriaLogs
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- docker/VictoriaLogs/
|
||||||
5
playbooks/deploy_VictoriaMetrics_docker.yaml
Normal file
5
playbooks/deploy_VictoriaMetrics_docker.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
- name: setup VictoriaMetrics
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- docker/VictoriaMetrics/
|
||||||
5
playbooks/deploy_otel_docker.yaml
Normal file
5
playbooks/deploy_otel_docker.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
- name: setup otel
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- docker/otel/
|
||||||
5
playbooks/roles/docker/OpenObserve/README.md
Normal file
5
playbooks/roles/docker/OpenObserve/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# OpenObserve (docker)
|
||||||
|
|
||||||
|
Placeholder role for docker-compose style deployment of OpenObserve.
|
||||||
|
|
||||||
|
Templates include docker-compose.yaml with bootstrap nginx and certbot services mirroring the Zitadel setup.
|
||||||
5
playbooks/roles/docker/OpenObserve/tasks/main.yml
Normal file
5
playbooks/roles/docker/OpenObserve/tasks/main.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
# TODO: implement docker deployment tasks
|
||||||
|
- name: Placeholder task
|
||||||
|
debug:
|
||||||
|
msg: "Role placeholder. Implement docker deployment tasks."
|
||||||
@ -0,0 +1,41 @@
|
|||||||
|
services:
|
||||||
|
bootstrap-nginx:
|
||||||
|
profiles: ["bootstrap"]
|
||||||
|
image: nginx:mainline-alpine
|
||||||
|
container_name: bootstrap-nginx
|
||||||
|
volumes:
|
||||||
|
- "{{ zitadel_workspace }}/certbot/www:/var/www/certbot"
|
||||||
|
- "{{ zitadel_workspace }}/certbot/conf:/etc/letsencrypt"
|
||||||
|
- "{{ zitadel_workspace }}/nginx/nginx.conf:/etc/nginx/nginx.conf"
|
||||||
|
- "{{ zitadel_workspace }}/nginx/conf.d/bootstrap-nginx.conf:/etc/nginx/conf.d/bootstrap-nginx.conf"
|
||||||
|
ports:
|
||||||
|
- "80:80" # 暂时只占用80
|
||||||
|
networks:
|
||||||
|
- app
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "wget", "-qO-", "http://localhost"]
|
||||||
|
interval: 3s
|
||||||
|
timeout: 2s
|
||||||
|
retries: 10
|
||||||
|
start_period: 3s
|
||||||
|
certbot:
|
||||||
|
profiles: ["bootstrap"]
|
||||||
|
image: certbot/certbot
|
||||||
|
container_name: certbot
|
||||||
|
command: >
|
||||||
|
certonly --webroot
|
||||||
|
--webroot-path=/var/www/certbot
|
||||||
|
--email manbuzhe2009@qq.com
|
||||||
|
--agree-tos
|
||||||
|
--no-eff-email
|
||||||
|
--keep-until-expiring
|
||||||
|
--non-interactive
|
||||||
|
-d {{ zitadel_domain }}
|
||||||
|
volumes:
|
||||||
|
- "{{ zitadel_workspace }}/certbot/conf:/etc/letsencrypt"
|
||||||
|
- "{{ zitadel_workspace }}/certbot/www:/var/www/certbot"
|
||||||
|
networks:
|
||||||
|
- app
|
||||||
|
|
||||||
|
networks:
|
||||||
|
app:
|
||||||
5
playbooks/roles/docker/Tempo/README.md
Normal file
5
playbooks/roles/docker/Tempo/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Tempo (docker)
|
||||||
|
|
||||||
|
Placeholder role for docker-compose style deployment of Tempo.
|
||||||
|
|
||||||
|
Templates include docker-compose.yaml with bootstrap nginx and certbot services mirroring the Zitadel setup.
|
||||||
5
playbooks/roles/docker/Tempo/tasks/main.yml
Normal file
5
playbooks/roles/docker/Tempo/tasks/main.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
# TODO: implement docker deployment tasks
|
||||||
|
- name: Placeholder task
|
||||||
|
debug:
|
||||||
|
msg: "Role placeholder. Implement docker deployment tasks."
|
||||||
41
playbooks/roles/docker/Tempo/templates/docker-compose.yaml
Normal file
41
playbooks/roles/docker/Tempo/templates/docker-compose.yaml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
services:
|
||||||
|
bootstrap-nginx:
|
||||||
|
profiles: ["bootstrap"]
|
||||||
|
image: nginx:mainline-alpine
|
||||||
|
container_name: bootstrap-nginx
|
||||||
|
volumes:
|
||||||
|
- "{{ zitadel_workspace }}/certbot/www:/var/www/certbot"
|
||||||
|
- "{{ zitadel_workspace }}/certbot/conf:/etc/letsencrypt"
|
||||||
|
- "{{ zitadel_workspace }}/nginx/nginx.conf:/etc/nginx/nginx.conf"
|
||||||
|
- "{{ zitadel_workspace }}/nginx/conf.d/bootstrap-nginx.conf:/etc/nginx/conf.d/bootstrap-nginx.conf"
|
||||||
|
ports:
|
||||||
|
- "80:80" # 暂时只占用80
|
||||||
|
networks:
|
||||||
|
- app
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "wget", "-qO-", "http://localhost"]
|
||||||
|
interval: 3s
|
||||||
|
timeout: 2s
|
||||||
|
retries: 10
|
||||||
|
start_period: 3s
|
||||||
|
certbot:
|
||||||
|
profiles: ["bootstrap"]
|
||||||
|
image: certbot/certbot
|
||||||
|
container_name: certbot
|
||||||
|
command: >
|
||||||
|
certonly --webroot
|
||||||
|
--webroot-path=/var/www/certbot
|
||||||
|
--email manbuzhe2009@qq.com
|
||||||
|
--agree-tos
|
||||||
|
--no-eff-email
|
||||||
|
--keep-until-expiring
|
||||||
|
--non-interactive
|
||||||
|
-d {{ zitadel_domain }}
|
||||||
|
volumes:
|
||||||
|
- "{{ zitadel_workspace }}/certbot/conf:/etc/letsencrypt"
|
||||||
|
- "{{ zitadel_workspace }}/certbot/www:/var/www/certbot"
|
||||||
|
networks:
|
||||||
|
- app
|
||||||
|
|
||||||
|
networks:
|
||||||
|
app:
|
||||||
5
playbooks/roles/docker/VictoriaLogs/README.md
Normal file
5
playbooks/roles/docker/VictoriaLogs/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# VictoriaLogs (docker)
|
||||||
|
|
||||||
|
Placeholder role for docker-compose style deployment of VictoriaLogs.
|
||||||
|
|
||||||
|
Templates include docker-compose.yaml with bootstrap nginx and certbot services mirroring the Zitadel setup.
|
||||||
5
playbooks/roles/docker/VictoriaLogs/tasks/main.yml
Normal file
5
playbooks/roles/docker/VictoriaLogs/tasks/main.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
# TODO: implement docker deployment tasks
|
||||||
|
- name: Placeholder task
|
||||||
|
debug:
|
||||||
|
msg: "Role placeholder. Implement docker deployment tasks."
|
||||||
@ -0,0 +1,41 @@
|
|||||||
|
services:
|
||||||
|
bootstrap-nginx:
|
||||||
|
profiles: ["bootstrap"]
|
||||||
|
image: nginx:mainline-alpine
|
||||||
|
container_name: bootstrap-nginx
|
||||||
|
volumes:
|
||||||
|
- "{{ zitadel_workspace }}/certbot/www:/var/www/certbot"
|
||||||
|
- "{{ zitadel_workspace }}/certbot/conf:/etc/letsencrypt"
|
||||||
|
- "{{ zitadel_workspace }}/nginx/nginx.conf:/etc/nginx/nginx.conf"
|
||||||
|
- "{{ zitadel_workspace }}/nginx/conf.d/bootstrap-nginx.conf:/etc/nginx/conf.d/bootstrap-nginx.conf"
|
||||||
|
ports:
|
||||||
|
- "80:80" # 暂时只占用80
|
||||||
|
networks:
|
||||||
|
- app
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "wget", "-qO-", "http://localhost"]
|
||||||
|
interval: 3s
|
||||||
|
timeout: 2s
|
||||||
|
retries: 10
|
||||||
|
start_period: 3s
|
||||||
|
certbot:
|
||||||
|
profiles: ["bootstrap"]
|
||||||
|
image: certbot/certbot
|
||||||
|
container_name: certbot
|
||||||
|
command: >
|
||||||
|
certonly --webroot
|
||||||
|
--webroot-path=/var/www/certbot
|
||||||
|
--email manbuzhe2009@qq.com
|
||||||
|
--agree-tos
|
||||||
|
--no-eff-email
|
||||||
|
--keep-until-expiring
|
||||||
|
--non-interactive
|
||||||
|
-d {{ zitadel_domain }}
|
||||||
|
volumes:
|
||||||
|
- "{{ zitadel_workspace }}/certbot/conf:/etc/letsencrypt"
|
||||||
|
- "{{ zitadel_workspace }}/certbot/www:/var/www/certbot"
|
||||||
|
networks:
|
||||||
|
- app
|
||||||
|
|
||||||
|
networks:
|
||||||
|
app:
|
||||||
5
playbooks/roles/docker/VictoriaMetrics/README.md
Normal file
5
playbooks/roles/docker/VictoriaMetrics/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# VictoriaMetrics (docker)
|
||||||
|
|
||||||
|
Placeholder role for docker-compose style deployment of VictoriaMetrics.
|
||||||
|
|
||||||
|
Templates include docker-compose.yaml with bootstrap nginx and certbot services mirroring the Zitadel setup.
|
||||||
5
playbooks/roles/docker/VictoriaMetrics/tasks/main.yml
Normal file
5
playbooks/roles/docker/VictoriaMetrics/tasks/main.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
# TODO: implement docker deployment tasks
|
||||||
|
- name: Placeholder task
|
||||||
|
debug:
|
||||||
|
msg: "Role placeholder. Implement docker deployment tasks."
|
||||||
@ -0,0 +1,41 @@
|
|||||||
|
services:
|
||||||
|
bootstrap-nginx:
|
||||||
|
profiles: ["bootstrap"]
|
||||||
|
image: nginx:mainline-alpine
|
||||||
|
container_name: bootstrap-nginx
|
||||||
|
volumes:
|
||||||
|
- "{{ zitadel_workspace }}/certbot/www:/var/www/certbot"
|
||||||
|
- "{{ zitadel_workspace }}/certbot/conf:/etc/letsencrypt"
|
||||||
|
- "{{ zitadel_workspace }}/nginx/nginx.conf:/etc/nginx/nginx.conf"
|
||||||
|
- "{{ zitadel_workspace }}/nginx/conf.d/bootstrap-nginx.conf:/etc/nginx/conf.d/bootstrap-nginx.conf"
|
||||||
|
ports:
|
||||||
|
- "80:80" # 暂时只占用80
|
||||||
|
networks:
|
||||||
|
- app
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "wget", "-qO-", "http://localhost"]
|
||||||
|
interval: 3s
|
||||||
|
timeout: 2s
|
||||||
|
retries: 10
|
||||||
|
start_period: 3s
|
||||||
|
certbot:
|
||||||
|
profiles: ["bootstrap"]
|
||||||
|
image: certbot/certbot
|
||||||
|
container_name: certbot
|
||||||
|
command: >
|
||||||
|
certonly --webroot
|
||||||
|
--webroot-path=/var/www/certbot
|
||||||
|
--email manbuzhe2009@qq.com
|
||||||
|
--agree-tos
|
||||||
|
--no-eff-email
|
||||||
|
--keep-until-expiring
|
||||||
|
--non-interactive
|
||||||
|
-d {{ zitadel_domain }}
|
||||||
|
volumes:
|
||||||
|
- "{{ zitadel_workspace }}/certbot/conf:/etc/letsencrypt"
|
||||||
|
- "{{ zitadel_workspace }}/certbot/www:/var/www/certbot"
|
||||||
|
networks:
|
||||||
|
- app
|
||||||
|
|
||||||
|
networks:
|
||||||
|
app:
|
||||||
5
playbooks/roles/docker/otel/README.md
Normal file
5
playbooks/roles/docker/otel/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# otel (docker)
|
||||||
|
|
||||||
|
Placeholder role for docker-compose style deployment of otel.
|
||||||
|
|
||||||
|
Templates include docker-compose.yaml with bootstrap nginx and certbot services mirroring the Zitadel setup.
|
||||||
5
playbooks/roles/docker/otel/tasks/main.yml
Normal file
5
playbooks/roles/docker/otel/tasks/main.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
# TODO: implement docker deployment tasks
|
||||||
|
- name: Placeholder task
|
||||||
|
debug:
|
||||||
|
msg: "Role placeholder. Implement docker deployment tasks."
|
||||||
41
playbooks/roles/docker/otel/templates/docker-compose.yaml
Normal file
41
playbooks/roles/docker/otel/templates/docker-compose.yaml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
services:
|
||||||
|
bootstrap-nginx:
|
||||||
|
profiles: ["bootstrap"]
|
||||||
|
image: nginx:mainline-alpine
|
||||||
|
container_name: bootstrap-nginx
|
||||||
|
volumes:
|
||||||
|
- "{{ zitadel_workspace }}/certbot/www:/var/www/certbot"
|
||||||
|
- "{{ zitadel_workspace }}/certbot/conf:/etc/letsencrypt"
|
||||||
|
- "{{ zitadel_workspace }}/nginx/nginx.conf:/etc/nginx/nginx.conf"
|
||||||
|
- "{{ zitadel_workspace }}/nginx/conf.d/bootstrap-nginx.conf:/etc/nginx/conf.d/bootstrap-nginx.conf"
|
||||||
|
ports:
|
||||||
|
- "80:80" # 暂时只占用80
|
||||||
|
networks:
|
||||||
|
- app
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "wget", "-qO-", "http://localhost"]
|
||||||
|
interval: 3s
|
||||||
|
timeout: 2s
|
||||||
|
retries: 10
|
||||||
|
start_period: 3s
|
||||||
|
certbot:
|
||||||
|
profiles: ["bootstrap"]
|
||||||
|
image: certbot/certbot
|
||||||
|
container_name: certbot
|
||||||
|
command: >
|
||||||
|
certonly --webroot
|
||||||
|
--webroot-path=/var/www/certbot
|
||||||
|
--email manbuzhe2009@qq.com
|
||||||
|
--agree-tos
|
||||||
|
--no-eff-email
|
||||||
|
--keep-until-expiring
|
||||||
|
--non-interactive
|
||||||
|
-d {{ zitadel_domain }}
|
||||||
|
volumes:
|
||||||
|
- "{{ zitadel_workspace }}/certbot/conf:/etc/letsencrypt"
|
||||||
|
- "{{ zitadel_workspace }}/certbot/www:/var/www/certbot"
|
||||||
|
networks:
|
||||||
|
- app
|
||||||
|
|
||||||
|
networks:
|
||||||
|
app:
|
||||||
Loading…
Reference in New Issue
Block a user