-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
006c3d7
commit 3d6c34c
Showing
23 changed files
with
245 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
push: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
task-all: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Run task install | ||
run: ./task install | ||
- name: Run task test | ||
run: ./task test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
docker_network_name: mint-system.com | ||
ansible_become: true | ||
ufw_enabled: false | ||
hosts: | ||
- ip: 127.0.0.1 | ||
name: n8n.local odoo.local metabase.local | ||
- ip: 10.101.16.2 | ||
name: erp.brunner-innovation.swiss erp-dev.brunner-innovation.swiss gaia.mint-system.com | ||
|
||
# https://registry.hub.docker.com/_/rabbitmq/ | ||
rabbitmq_image: rabbitmq:3.8-management | ||
rabbitmq_hostname: mq01 | ||
rabbitmq_data_dir: "/usr/share/{{ odoo_hostname }}" | ||
rabbitmq_ports: | ||
- 127.0.0.1:5672:5672 | ||
- 127.0.0.1:8080:15672 | ||
rabbitmq_user: admin | ||
rabbitmq_password: admin | ||
|
||
# https://hub.docker.com/_/postgres | ||
postgres_image: postgres:14 | ||
# postgres_build_image: true # default: false | ||
postgres_hostname: postgres01 | ||
postgres_user: example | ||
postgres_config_map: | ||
- db: metabase-prod | ||
- db: odoo-prod | ||
- db: odoo-int | ||
postgres_password: test | ||
postgres_wal_level: logical | ||
|
||
# https://hub.docker.com/r/getmeili/meilisearch | ||
meilisearch_image: getmeili/meilisearch:v1.10.1 | ||
meilisearch_hostname: meili01 | ||
meilisearch_volume_name: "{{ meilisearch_hostname }}" | ||
meilisearch_master_key: "test" | ||
meilisearch_network_mode: host | ||
meilisearch_task_webhook: http://host.docker.internal:8069/meilisearch/task-webhook | ||
meilisearch_etc_hosts: | ||
"host.docker.internal": host-gateway | ||
|
||
# https://hub.docker.com/r/dpage/pgadmin4/ | ||
pgadmin_image: dpage/pgadmin4:7.6 | ||
pgadmin_hostname: pgadmin01 | ||
pgadmin_user: admin@example.com | ||
pgadmin_password: example | ||
pgadmin_servers: | ||
- name: Postgres | ||
host: postgres01 | ||
username: example | ||
pgadmin_data_dir: /usr/share/{{ pgadmin_hostname }} | ||
pgadmin_volume_name: "{{ pgadmin_hostname }}" | ||
|
||
# https://hub.docker.com/r/n8nio/n8n/tags | ||
n8n_image: n8nio/n8n:1.67.1 | ||
n8n_hostname: n8n01 | ||
n8n_postgresdb_host: postgres01 | ||
n8n_postgresdb_user: example | ||
n8n_postgresdb_password: test | ||
n8n_secure_cookie: "false" | ||
n8n_config_map: | ||
- name: prod | ||
webhook_url: "" | ||
|
||
# https://hub.docker.com/_/nginx/ | ||
nginx_image: nginx:1.26.2-alpine | ||
nginx_hostname: nginx01 | ||
nginx_http_options: | | ||
map $http_upgrade $connection_upgrade { | ||
default upgrade; | ||
'' close; | ||
} | ||
nginx_proxies: | ||
- src_hostname: metabase.local | ||
dest_hostname: metabase01-prod | ||
dest_port: 3000 | ||
- src_hostname: n8n.local | ||
dest_hostname: n8n01-prod | ||
dest_port: 5678 | ||
- src_hostname: odoo.local | ||
dest_hostname: odoo01-prod | ||
dest_port: 8069 | ||
locations: | ||
- path: /websocket | ||
dest_hostname: odoo01-prod | ||
dest_port: 8072 | ||
options: | | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection $connection_upgrade; | ||
include /etc/nginx/conf.d/proxy-params.conf; | ||
# https://hub.docker.com/_/odoo/ | ||
odoo_revision: "18.0.20250106" | ||
odoo_image: mintsystem/odoo:18.0.20250106 | ||
odoo_build_image: true | ||
odoo_build_dockerfile: | | ||
USER root | ||
RUN curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg | ||
RUN curl https://packages.microsoft.com/config/debian/12/prod.list | tee /etc/apt/sources.list.d/mssql-release.list | ||
RUN apt-get update | ||
RUN ACCEPT_EULA=Y apt-get install -y unixodbc msodbcsql18 | ||
USER odoo | ||
RUN uv pip install prometheus-client python-jose pyodbc pymssql | ||
odoo_hostname: odoo01 | ||
odoo_description: Odoo18 | ||
odoo_master_password: odoo | ||
odoo_postgres_user: example | ||
odoo_postgres_password: test | ||
odoo_config_map: | ||
- name: prod | ||
- name: int | ||
odoo_postgres_hostname: "{{ postgres_hostname }}" | ||
|
||
# https://hub.docker.com/r/metabase/metabase | ||
metabase_image: metabase/metabase:v0.51.12.1 | ||
metabase_hostname: metabase01 | ||
metabase_db_host: postgres01 | ||
metabase_db_user: test | ||
metabase_db_pass: test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
all: | ||
hosts: | ||
localhost: | ||
ansible_host: localhost | ||
ansible_connection: local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,4 +83,6 @@ | |
- role: n8n | ||
tags: n8n | ||
- role: mailpit | ||
tags: mailpit | ||
tags: mailpit | ||
- role: metabase | ||
tags: metabase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,6 @@ | |
- role: nginx | ||
tags: nginx | ||
- role: crowdsec | ||
tags: crowdsec | ||
tags: crowdsec | ||
- role: metabase | ||
tags: metabase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
--- | ||
metabase_build_image: false | ||
metabase_config_map: | ||
- name: prod | ||
webhook_url: "" | ||
metabase_description: metabase | ||
metabase_config_map: [name: prod] | ||
metabase_description: Metabase | ||
metabase_state: started | ||
metabase_volume_name: "{{ metabase_hostname }}" | ||
metabase_timezone: Europe/Zurich | ||
metabase_db_type: postgresdb | ||
metabase_postgresdb_port: "5432" | ||
metabase_postgresdb_database: metabase | ||
metabase_postgresdb_schema: public | ||
metabase_db_type: postgres | ||
metabase_db_port: "5432" | ||
metabase_db_dbname: metabase | ||
metabase_postgresdb_user: metabase | ||
metabase_postgresdb_password: "{{ vault_metabase_postgresdb_password }}" | ||
metabase_secure_cookie: "true" | ||
metabase_exporter_requires_package: "python3-passlib" | ||
metabase_exporter_proxy_basic_auth_username: metabase-exporter | ||
metabase_exporter_proxy_basic_auth_password: "{{ vault_metabase_exporter_proxy_basic_auth_password }}" | ||
metabase_exporter_nginx_data_dir: "{{ nginx_data_dir }}/proxies" | ||
metabase_postgresdb_pass: "{{ vault_metabase_postgresdb_pass }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
FROM {{ metabase_build_image }} | ||
FROM {{ metabase_build_image }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# N8N Exporter role | ||
|
||
Add nginx config for N8N exporter path. | ||
|
||
## Usage | ||
|
||
Configure the role. | ||
|
||
```yml | ||
# https://hub.docker.com/r/n8nio/n8n | ||
n8n_exporter_proxy_basic_auth_username: # default: n8n-exporter | ||
n8n_exporter_proxy_basic_auth_password: # default: "{{ vault_n8n_exporter_proxy_basic_auth_password }}" | ||
n8n_exporter_nginx_data_dir: /usr/share/nginx/proxies # default: "{{ nginx_data_dir }}/proxies" | ||
``` | ||
Ensure the nginx proxy includes the n8n-exporter config: | ||
```yml | ||
nginx_proxies: | ||
- src_hostname: server.example.com | ||
ssl: true | ||
exporter: n8n | ||
options: | | ||
include /etc/nginx/conf.d/proxies/n8n-exporter.nginx; | ||
``` | ||
Include the role in your playbook. | ||
```yml | ||
- hosts: n8n | ||
roles: | ||
- role: n8n_exporter | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
n8n_exporter_requires_package: "python3-passlib" | ||
n8n_exporter_nginx_data_dir: "{{ nginx_data_dir }}/proxies" | ||
n8n_exporter_proxy_basic_auth_password: "{{ vault_n8n_exporter_proxy_basic_auth_password }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- name: Include {{ role_name }} tasks | ||
ansible.builtin.include_tasks: "{{ role_name }}.yml" | ||
when: n8n_hostname is defined | ||
tags: | ||
- n8n_exporter |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.