AFAICT there is no way to remove IPs from the hostsfile in this formula yet.
And also none to trim back superfluous hostnames for a given IP.
By using the hosts.only state we can both remove IPs from
the hostsfile and reduce the hostnames for a given IP to the ones listed
in pillar[hostsfile:only].
Oh, and you also can set multiple hostnames for an IP properly (something I wanted since #12).
So no { myhostname: 192.0.2.17, myhostname.localdomain: 192.0.2.17 } silliness to add to your pillar.
If someone can come up with a better pillar key than hostfile:only I'm all for it.
AFAICT there is no way to remove IPs from the hostsfile in this formula yet. And also none to trim back superfluous hostnames for a given IP.
By using the hosts.only state we can both remove IPs from the hostsfile and reduce the hostnames for a given IP to the ones listed in
pillar[hostsfile:only]
.An example:
Oh, and you also can set multiple hostnames for an IP properly (something I wanted since #12). So no
{ myhostname: 192.0.2.17, myhostname.localdomain: 192.0.2.17 }
silliness to add to your pillar.If someone can come up with a better pillar key than
hostfile:only
I'm all for it.