Advertisement
kalimalrazif

Untitled

Apr 9th, 2021
808
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.76 KB | None | 0 0
  1. WEB
  2. {
  3.     "node_name":   "web",
  4.     "datacenter":  "dc1",
  5.     "domain":      "test.consul",
  6.     "client_addr": "0.0.0.0",
  7.     "recursors": ["8.8.8.8"],
  8.     "bind_addr":   "192.168.10.20",
  9.     "log_file": "/var/log/consul/consul.log",
  10.     "data_dir": "/var/lib/consul",
  11.     "leave_on_terminate": true,
  12.     "rejoin_after_leave": true,
  13.     "encrypt": "key_key_key",
  14.     "encrypt_verify_incoming": true,
  15.     "encrypt_verify_outgoing": true,
  16.     "verify_incoming": true,
  17.     "verify_outgoing": true,
  18.     "verify_server_hostname": true,
  19.     "ca_file": "/etc/consul.d/test.consul-agent-ca.pem",
  20.     "auto_encrypt": {
  21.         "tls": true
  22.     },
  23.     "enable_local_script_checks": true,
  24.     "pid_file": "/var/lib/consul/consul.pid",
  25.     "retry_join": [
  26.                 "192.168.10.10",
  27.                 "192.168.10.11"
  28.     ]
  29. }
  30. DB
  31. {
  32.     "node_name":   "database",
  33.     "datacenter":  "dc1",
  34.     "domain":      "test.consul",
  35.     "client_addr": "0.0.0.0",
  36.     "recursors": ["8.8.8.8"],
  37.     "bind_addr":   "192.168.10.30",
  38.     "log_file": "/var/log/consul/consul.log",
  39.     "data_dir": "/var/lib/consul",
  40.     "leave_on_terminate": true,
  41.     "rejoin_after_leave": true,
  42.     "encrypt": "key_key_key",
  43.     "encrypt_verify_incoming": true,
  44.     "encrypt_verify_outgoing": true,
  45.     "verify_incoming": true,
  46.     "verify_outgoing": true,
  47.     "verify_server_hostname": true,
  48.     "ca_file": "/etc/consul.d/test.consul-agent-ca.pem",
  49.     "auto_encrypt": {
  50.         "tls": true
  51.     },
  52.     "enable_local_script_checks": true,
  53.     "pid_file": "/var/lib/consul/consul.pid",
  54.     "retry_join": [
  55.                 "192.168.10.10",
  56.                 "192.168.10.11"
  57.     ]
  58. }
  59.  
  60. MASTER1
  61. {
  62.     "node_name":   "master1",
  63.     "datacenter":  "dc1",
  64.     "domain":      "test.consul",
  65.     "client_addr": "0.0.0.0",
  66.     "recursors": ["8.8.8.8"],
  67.     "bind_addr":   "192.168.10.10",
  68.     "log_file": "/var/log/consul/consul.log",
  69.     "data_dir": "/var/lib/consul",
  70.     "leave_on_terminate": true,
  71.     "rejoin_after_leave": true,
  72.     "server":true,
  73.     "ui": true,
  74.     "bootstrap_expect": 2,
  75.     "encrypt": "key_key_key",
  76.     "encrypt_verify_incoming": true,
  77.     "encrypt_verify_outgoing": true,
  78.     "verify_incoming": true,
  79.     "verify_outgoing": true,
  80.     "verify_server_hostname": true,
  81.     "ca_file": "/etc/consul.d/test.consul-agent-ca.pem",
  82.     "cert_file": "/etc/consul.d/master1-crt.pem",
  83.     "key_file": "/etc/consul.d/master1-key.pem",
  84.     "auto_encrypt": {
  85.         "allow_tls": true
  86.     },
  87.     "connect": {
  88.         "enabled": true
  89.     },
  90.     "enable_local_script_checks": true,
  91.     "pid_file": "/var/lib/consul/consul.pid",
  92.     "retry_join": [
  93.                 "192.168.10.10",
  94.                 "192.168.10.11"
  95.     ]
  96. }
  97.  
  98. MASTER2
  99. {
  100.     "node_name":   "master2",
  101.     "datacenter":  "dc1",
  102.     "domain":      "test.consul",
  103.     "client_addr": "0.0.0.0",
  104.     "recursors": ["8.8.8.8"],
  105.     "bind_addr":   "192.168.10.11",
  106.     "log_file": "/var/log/consul/consul.log",
  107.     "data_dir": "/var/lib/consul",
  108.     "leave_on_terminate": true,
  109.     "rejoin_after_leave": true,
  110.     "server":true,
  111.     "ui": true,
  112.     "bootstrap_expect": 2,
  113.     "encrypt": "key_key_key",
  114.     "encrypt_verify_incoming": true,
  115.     "encrypt_verify_outgoing": true,
  116.     "verify_incoming": true,
  117.     "verify_outgoing": true,
  118.     "verify_server_hostname": true,
  119.     "ca_file": "/etc/consul.d/test.consul-agent-ca.pem",
  120.     "cert_file": "/etc/consul.d/master2-crt.pem",
  121.     "key_file": "/etc/consul.d/master2-key.pem",
  122.     "auto_encrypt": {
  123.         "allow_tls": true
  124.     },
  125.     "connect": {
  126.         "enabled": true
  127.     },
  128.     "enable_local_script_checks": true,
  129.     "pid_file": "/var/lib/consul/consul.pid",
  130.     "retry_join": [
  131.                 "192.168.10.10",
  132.                 "192.168.10.11"
  133.     ]
  134. }
  135.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement