Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhdbs/consul-bootstrap-server-agent
consul with bootstrap UI, consul server and agent
https://github.com/mhdbs/consul-bootstrap-server-agent
aws consul consul-agent consul-bootstrap consul-kv consul-server
Last synced: about 4 hours ago
JSON representation
consul with bootstrap UI, consul server and agent
- Host: GitHub
- URL: https://github.com/mhdbs/consul-bootstrap-server-agent
- Owner: mhdbs
- License: apache-2.0
- Created: 2019-07-07T16:23:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-07T16:30:31.000Z (over 5 years ago)
- Last Synced: 2024-01-26T05:13:08.489Z (10 months ago)
- Topics: aws, consul, consul-agent, consul-bootstrap, consul-kv, consul-server
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# consul-bootstrap-server-agent
consul with bootstrap UI, consul server and agentConsul service discovery tool examples.
```
# Run these on all consul servers.
sudo su
apt-get update
apt-get install git unzip -y
cd /root
wget https://dl.bintray.com/mitchellh/consul/0.5.2_linux_amd64.zip
unzip 0.5.2_linux_amd64.zip
rm -f 0.5.2_linux_amd64.zip
mv consul /usr/bin/
git clone https://github.com/mhdbs/consul-bootstrap-server-agent.git
``````
# Bootstrap / Web UI Server
---------------------------
wget https://dl.bintray.com/mitchellh/consul/0.5.2_web_ui.zip
unzip 0.5.2_web_ui.zip
rm -f 0.5.2_web_ui.zip
cd /root/consul-bootstrap-server-agent
cp bootstrap.json config.json# Save this keygen! Note, if your key has a slash in it you need to escape them for setup.sh. Or just regenerate one until it doesn't have a slash :)
consul keygen
``````
# Non Boostrap Consul Server
---------------------------
cd /root/consul-bootstrap-server-agent
cp server.json config.json
``````
# Consul Agent Server
---------------------------
apt-get install apache2 -y
cd /root/consul-bootstrap-server-agent
cp agent.json config.json
``````
./setup.sh HOSTNAME ENCRYPT_KEY IP_OF_BOOTSTRAP IP_NON_BOOTSTRAP
nohup consul agent -config-dir /root/consul-bootstrap-server-agent/config.json &# Now lets test on our agent server.
curl -X PUT -d 'test' http://localhost:8500/v1/kv/web/key1
curl http://localhost:8500/v1/kv/web/key1
curl http://localhost:8500/v1/kv/web/key1?raw
```