pigsty
pigsty copied to clipboard
New parameters to control node etc hosts
trafficstars
Docker VMs does not allow writing to /etc/hosts
We should have a new parameter (maybe node_write_hosts) to control that behavior.
Adding a new parameter: node_write_etc_hosts
#--------------------------------------------------------------#
# Setup Node Static DNS Records [node_hosts]
#--------------------------------------------------------------#
- name: setup node dns
tags: node_hosts
when: node_write_etc_hosts|bool
Besides, if dns_enabled is false, the pgsql role should not write dns records
to infra nodes' /etc/hosts
Resolved by https://github.com/Vonng/pigsty/commit/866fc8c2721b59604671554aa485e31fa2b5b40f