Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Traefik configuration for new private IP RabbitMQ #1417

Merged
merged 4 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions files/traefik/rules/mq-router.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tcp:

Check warning on line 1 in files/traefik/rules/mq-router.yml

View workflow job for this annotation

GitHub Actions / Lint

1:1 [document-start] missing document start "---"
routers:
mq-rtr:
rule: "HostSNI(`*`)" # || ClientIP(`132.230.224.103`)" Allow by host IP
service: "mq"
entryPoints:
- amqps
tls:
passthrough: true
6 changes: 6 additions & 0 deletions files/traefik/rules/mq-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tcp:

Check warning on line 1 in files/traefik/rules/mq-service.yml

View workflow job for this annotation

GitHub Actions / Lint

1:1 [document-start] missing document start "---"
services:
mq:
loadBalancer:
servers:
- address: "10.5.68.232:5671" #replace once mq02 is in playbook
5 changes: 5 additions & 0 deletions group_vars/traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ traefik_containers:
- --global.checkNewVersion=false
- --entryPoints.web.address=:80
- --entryPoints.websecure.address=:443
- --entryPoints.amqps.address=:5671
- --entryPoints.web.http.redirections.entryPoint.to=websecure
- --entryPoints.web.http.redirections.entryPoint.scheme=https
- --entryPoints.metrics.address=:8082
Expand Down Expand Up @@ -148,6 +149,10 @@ traefik_containers:
published_port: 443
protocol: tcp
mode: host
- target_port: 5671
published_port: 5671
protocol: tcp
mode: host
- target_port: 8082
published_port: 8082
protocol: tcp
Expand Down
13 changes: 13 additions & 0 deletions traefik-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@
- policycoreutils-python-utils
- python3-pip

- name: Configure Firewall
ansible.posix.firewalld:
service: "{{ item }}"
permanent: true
zone: public
state: enabled
with_items:
- ssh
- amqps
- http
- https
- ntp

- name: Install python docker
become: true
ansible.builtin.pip:
Expand Down
Loading