pigsty icon indicating copy to clipboard operation
pigsty copied to clipboard

New parameters to control node etc hosts

Open Vonng opened this issue 1 year ago • 1 comments
trafficstars

Docker VMs does not allow writing to /etc/hosts

We should have a new parameter (maybe node_write_hosts) to control that behavior.

Vonng avatar Apr 06 '24 02:04 Vonng

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

Vonng avatar Apr 27 '24 01:04 Vonng

Resolved by https://github.com/Vonng/pigsty/commit/866fc8c2721b59604671554aa485e31fa2b5b40f

Vonng avatar May 10 '24 02:05 Vonng