-
-
Save stolsma/1eba81d63fed92d100d3bd5224a6e229 to your computer and use it in GitHub Desktop.
Revisions
-
rossedman revised this gist
Apr 8, 2016 . 3 changed files with 18 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,8 @@ # # This needs to be installed here: # /etc/systemd/system/consul.service # [Unit] Description=consul Requires=network-online.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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ { "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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ { "data_dir": "/opt/consul", "node_name": "CON02", "server": true, "start_join": "IP.OF.LEADER" } -
rossedman revised this gist
Apr 8, 2016 . 1 changed file with 4 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,14 @@ [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 -
yunano created this gist
May 1, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ [Unit] Description=consul agent Requires=network-online.target After=network-online.target [Service] EnvironmentFile=-/etc/sysconfig/consul Environment=GOMAXPROCS=2 Restart=on-failure ExecStart=/usr/local/sbin/consul agent $OPTIONS -config-dir=/etc/consul.d ExecReload=/bin/kill -HUP $MAINPID KillSignal=SIGINT [Install] WantedBy=multi-user.target