Hi
I’m learning Consul, and I’ve been trying to figure out how to deploy a consul cluster with Terraform on Digitalocean.
My goal is to create secure deployment of a consul cluster and later use with a deployment of a nomad cluster and have them work together. I’ve been learning via the consul docs and a few Github repos. I’ve come across a few files that i’m not certain what they’re for and I couldn’t find them in the docs so I was wondering if someone could explain why they exist:
- consul-server.service
- consul-client.service
Some other parts i’m confused about are Consul Connect
, I’m not really sure what this is, I think it might be a paid service provided by hashicorp that requires using kubernetes and helm, is that right?
I’ve also found that alot of consul setups include the following snippet, i’m not sure where it originates from but here it is:
if [ $1 == "server" ]; then
systemctl enable consul-server.service
systemctl start consul-server.service
else
systemctl enable consul-client.service
systemctl start consul-client.service
sleep 5
consul join $3
fi
I’m not familiar with systemctl
is that packaged with consul?
I’m sorry if my questions are terrible, i’m a beginner at all these things and hashicorp tools