-
-
Save stolsma/1eba81d63fed92d100d3bd5224a6e229 to your computer and use it in GitHub Desktop.
Consul Installation
This file contains hidden or 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 hidden or 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 hidden or 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