Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WEB
- {
- "node_name": "web",
- "datacenter": "dc1",
- "domain": "test.consul",
- "client_addr": "0.0.0.0",
- "recursors": ["8.8.8.8"],
- "bind_addr": "192.168.10.20",
- "log_file": "/var/log/consul/consul.log",
- "data_dir": "/var/lib/consul",
- "leave_on_terminate": true,
- "rejoin_after_leave": true,
- "encrypt": "key_key_key",
- "encrypt_verify_incoming": true,
- "encrypt_verify_outgoing": true,
- "verify_incoming": true,
- "verify_outgoing": true,
- "verify_server_hostname": true,
- "ca_file": "/etc/consul.d/test.consul-agent-ca.pem",
- "auto_encrypt": {
- "tls": true
- },
- "enable_local_script_checks": true,
- "pid_file": "/var/lib/consul/consul.pid",
- "retry_join": [
- "192.168.10.10",
- "192.168.10.11"
- ]
- }
- DB
- {
- "node_name": "database",
- "datacenter": "dc1",
- "domain": "test.consul",
- "client_addr": "0.0.0.0",
- "recursors": ["8.8.8.8"],
- "bind_addr": "192.168.10.30",
- "log_file": "/var/log/consul/consul.log",
- "data_dir": "/var/lib/consul",
- "leave_on_terminate": true,
- "rejoin_after_leave": true,
- "encrypt": "key_key_key",
- "encrypt_verify_incoming": true,
- "encrypt_verify_outgoing": true,
- "verify_incoming": true,
- "verify_outgoing": true,
- "verify_server_hostname": true,
- "ca_file": "/etc/consul.d/test.consul-agent-ca.pem",
- "auto_encrypt": {
- "tls": true
- },
- "enable_local_script_checks": true,
- "pid_file": "/var/lib/consul/consul.pid",
- "retry_join": [
- "192.168.10.10",
- "192.168.10.11"
- ]
- }
- MASTER1
- {
- "node_name": "master1",
- "datacenter": "dc1",
- "domain": "test.consul",
- "client_addr": "0.0.0.0",
- "recursors": ["8.8.8.8"],
- "bind_addr": "192.168.10.10",
- "log_file": "/var/log/consul/consul.log",
- "data_dir": "/var/lib/consul",
- "leave_on_terminate": true,
- "rejoin_after_leave": true,
- "server":true,
- "ui": true,
- "bootstrap_expect": 2,
- "encrypt": "key_key_key",
- "encrypt_verify_incoming": true,
- "encrypt_verify_outgoing": true,
- "verify_incoming": true,
- "verify_outgoing": true,
- "verify_server_hostname": true,
- "ca_file": "/etc/consul.d/test.consul-agent-ca.pem",
- "cert_file": "/etc/consul.d/master1-crt.pem",
- "key_file": "/etc/consul.d/master1-key.pem",
- "auto_encrypt": {
- "allow_tls": true
- },
- "connect": {
- "enabled": true
- },
- "enable_local_script_checks": true,
- "pid_file": "/var/lib/consul/consul.pid",
- "retry_join": [
- "192.168.10.10",
- "192.168.10.11"
- ]
- }
- MASTER2
- {
- "node_name": "master2",
- "datacenter": "dc1",
- "domain": "test.consul",
- "client_addr": "0.0.0.0",
- "recursors": ["8.8.8.8"],
- "bind_addr": "192.168.10.11",
- "log_file": "/var/log/consul/consul.log",
- "data_dir": "/var/lib/consul",
- "leave_on_terminate": true,
- "rejoin_after_leave": true,
- "server":true,
- "ui": true,
- "bootstrap_expect": 2,
- "encrypt": "key_key_key",
- "encrypt_verify_incoming": true,
- "encrypt_verify_outgoing": true,
- "verify_incoming": true,
- "verify_outgoing": true,
- "verify_server_hostname": true,
- "ca_file": "/etc/consul.d/test.consul-agent-ca.pem",
- "cert_file": "/etc/consul.d/master2-crt.pem",
- "key_file": "/etc/consul.d/master2-key.pem",
- "auto_encrypt": {
- "allow_tls": true
- },
- "connect": {
- "enabled": true
- },
- "enable_local_script_checks": true,
- "pid_file": "/var/lib/consul/consul.pid",
- "retry_join": [
- "192.168.10.10",
- "192.168.10.11"
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement