How to create a master eligible node in elasticsearch 5

Setting node.master to true will make the node master eligible whether it holds data or not.