cluster-deployment/src/steps-postinstall/75-consul.sh

19 lines
535 B
Bash
Raw Normal View History

2022-04-30 14:03:28 +00:00
#!/usr/bin/env bash
task_begin "Installing Consul configuration";
# /etc/consul is created by the apt postinstall script
subtask_begin "Copying configuration files";
cp "configs/consul-client.hcl" "/etc/consul/client.hcl";
cp "configs/consul-server.hcl" "/etc/consul/server.hcl";
subtask_end "$?";
2022-04-30 14:10:22 +00:00
# No UFW rules required, as we're now using wesher/wireguard, and allowing all inbound traffic on that interface
2022-04-30 14:03:28 +00:00
subtask_begin "Starting Consul and enabling on boot";
2022-05-01 01:27:32 +00:00
systemctl enable --now consul;
2022-04-30 14:03:28 +00:00
subtask_end "$?";
task_end "$?";