initial upload
This commit is contained in:
7
files/consul/configs/consul.hcl
Normal file
7
files/consul/configs/consul.hcl
Normal file
@@ -0,0 +1,7 @@
|
||||
datacenter = "MSI-DC"
|
||||
data_dir = "/opt/consul"
|
||||
encrypt = "eRhnp22+c0bkV0wPolk6Mw=="
|
||||
retry_join = ["consul-admin"]
|
||||
performance {
|
||||
raft_multiplier = 1
|
||||
}
|
||||
23
files/consul/configs/consul.service
Normal file
23
files/consul/configs/consul.service
Normal file
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Consul Service Discovery Agent
|
||||
Documentation=https://www.consul.io/
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=consul
|
||||
Group=consul
|
||||
ExecStart=/usr/local/bin/consul agent -server -ui \
|
||||
-data-dir=/opt/consul \
|
||||
-node=consul-%H \
|
||||
-config-dir=/etc/consul.d
|
||||
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
KillSignal=SIGINT
|
||||
TimeoutStopSec=5
|
||||
Restart=on-failure
|
||||
SyslogIdentifier=consul
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
4
files/consul/configs/server.hcl
Normal file
4
files/consul/configs/server.hcl
Normal file
@@ -0,0 +1,4 @@
|
||||
server = true
|
||||
bootstrap_expect = 2
|
||||
bind_addr = "10.11.10.101"
|
||||
ui = true
|
||||
10
files/consul/configs/service-apache.hcl
Normal file
10
files/consul/configs/service-apache.hcl
Normal file
@@ -0,0 +1,10 @@
|
||||
service {
|
||||
name = "apache"
|
||||
port = 443
|
||||
tags = [ "srv1", "pedimedic", "webmail", "git" ]
|
||||
check {
|
||||
http = "https://srv1.maruntiel.com"
|
||||
interval = "5s"
|
||||
tlsSkipVerify = true
|
||||
}
|
||||
}
|
||||
9
files/consul/configs/service-mysql.hcl
Normal file
9
files/consul/configs/service-mysql.hcl
Normal file
@@ -0,0 +1,9 @@
|
||||
service {
|
||||
name = "mariadb"
|
||||
port = 3306
|
||||
tags = [ "db" ]
|
||||
check {
|
||||
tcp = "localhost:3306"
|
||||
interval = "5s"
|
||||
}
|
||||
}
|
||||
8
files/consul/configs/service-ssh.hcl
Normal file
8
files/consul/configs/service-ssh.hcl
Normal file
@@ -0,0 +1,8 @@
|
||||
service {
|
||||
name = "SSHD"
|
||||
port = 22
|
||||
check {
|
||||
tcp = "localhost:22"
|
||||
interval = "5s"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user