kaiyou
129291e848
Use interface name instead of cluster name
...
The cluster name option is not required anymore and
removed, the interface name is used to name the cluster
directly. For backward compatibility, the old path for storing
cluster state is tried as a fallback when loading.
2020-05-27 23:26:29 +02:00
kaiyou
adc7a807df
Expose ClusterName instead of Banner/StatePath
2020-05-27 23:26:29 +02:00
kaiyou
f1de2def7f
Add Banner and StatePath settings
...
Banner is used to carry a custom etc/hosts banner while StatePath holds
the path to cluster state storage.
2020-05-27 23:26:29 +02:00
kaiyou
c50011bc36
Use errors.Wrap instead of manual formatting
2020-05-13 13:52:54 +02:00
kaiyou
dadfbee083
Split the application into modules
...
Splitting into modules will help keep concerns separate,
at the cost of a slightly more verbose code.
2020-05-13 13:52:54 +02:00
kaiyou
a5a55e9447
Properly wrap errors from config.go
...
Co-authored-by: Leo Antunes <leo@costela.net>
2020-05-13 13:52:54 +02:00
kaiyou
7adb944f92
Properly wrap errors from config.go
...
Co-authored-by: Leo Antunes <leo@costela.net>
2020-05-13 13:52:54 +02:00
kaiyou
bce8a0451a
Move the bindAddress computation to config parsing
2020-05-13 13:52:54 +02:00
Leo Antunes
2edf641c46
add option for binding to interface
...
this effectively still bind to an address, but resolves it based on the
interface instead of explicitly.
2019-07-21 23:00:18 +02:00
Leo Antunes
694fd4dd86
fix broken IP detection for private-only hosts
2019-03-27 22:23:15 +01:00
Leo Antunes
abb832d159
be more explicit about --bind-addr
2019-03-27 00:47:23 +01:00
Leo Antunes
a3e1573160
work around memberlist not listening on public IPs
2019-03-27 00:26:59 +01:00
Leo Antunes
407bfbfb7e
add version flag
2019-03-26 23:32:36 +01:00
Leo Antunes
e89a7141e5
add hosts file support
2019-03-26 23:32:36 +01:00
Leo Antunes
b1ff41c523
simplify option names
2019-03-26 23:32:36 +01:00
Leo Antunes
5e01de00c1
first working PoC
2019-03-26 23:32:36 +01:00