pigsty
pigsty copied to clipboard
Designate a primary meta node when multiple meta node exists
trafficstars
If there are multiple meta nodes, we have to provide a way to designate one as the primary meta node.
It is reasonable to use the CURRENT node as the primary meta node.
The rough idea is to introduce a new variable meta_ip which points to the current node by default.
Which plays the part of the default placeholder 10.10.10.10
So we can replace those hard-coded 10.10.10.10 with meta_ip too, and make it much more elegant and convenient.
We may also need some templating or special logical to handle that too.