-
-
Save rossedman/2c69f6172848125927063569bce7fd14 to your computer and use it in GitHub Desktop.
Consul Installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This needs to be installed here: | |
# /etc/systemd/system/consul.service | |
# | |
[Unit] | |
Description=consul | |
Requires=network-online.target | |
After=network-online.target | |
[Service] | |
Environment="GOMAXPROCS=2" "PATH=/usr/local/bin:/usr/bin:/bin" | |
Restart=on-failure | |
ExecStart=/usr/local/bin/consul agent -config-file=/etc/consul/consul.json -config-dir=/etc/consul/conf.d | |
ExecReload=/bin/kill -HUP $MAINPID | |
KillSignal=TERM | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bootstrap": true, | |
"data_dir": "/opt/consul", | |
"node_name": "CON01", | |
"server": true, | |
"ui": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data_dir": "/opt/consul", | |
"node_name": "CON02", | |
"server": true, | |
"start_join": "IP.OF.LEADER" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment