From c634b8799161f5b1302ae5cd36732a6f35a3f332 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 7 Apr 2020 18:43:40 +0100 Subject: [PATCH] Expose MC server It's just a local temp config for now, i'll do something proper later --- ansible/group_vars/all/haproxy.yml | 1 + terraform/casey_vps.tf | 7 +++++++ terraform/jakehoward.tech.tf | 8 ++++++++ 3 files changed, 16 insertions(+) diff --git a/ansible/group_vars/all/haproxy.yml b/ansible/group_vars/all/haproxy.yml index c7d1a4a..d662a5d 100644 --- a/ansible/group_vars/all/haproxy.yml +++ b/ansible/group_vars/all/haproxy.yml @@ -2,6 +2,7 @@ haproxy: exposed_ports: - 8448 - 4242 + - 25566 stats_pass: !vault | $ANSIBLE_VAULT;1.1;AES256 61356632383432353833616431393962613037646634656133316135363465313962663061633830 diff --git a/terraform/casey_vps.tf b/terraform/casey_vps.tf index b5c054d..7794fff 100644 --- a/terraform/casey_vps.tf +++ b/terraform/casey_vps.tf @@ -50,3 +50,10 @@ resource "vultr_firewall_rule" "casey_matrix" { from_port = 8448 network = "0.0.0.0/0" } + +resource "vultr_firewall_rule" "casey_mc" { + firewall_group_id = vultr_firewall_group.casey.id + protocol = "tcp" + from_port = 25566 + network = "0.0.0.0/0" +} diff --git a/terraform/jakehoward.tech.tf b/terraform/jakehoward.tech.tf index 515c251..e75169a 100644 --- a/terraform/jakehoward.tech.tf +++ b/terraform/jakehoward.tech.tf @@ -187,3 +187,11 @@ resource "cloudflare_record" "jakehowardtech_calibre" { type = "A" ttl = 1 } + +resource "cloudflare_record" "jakehowardtech_mc" { + zone_id = cloudflare_zone.jakehowardtech.id + name = "mc" + value = vultr_server.casey.main_ip + type = "A" + ttl = 1 +}