Skip to content

Commit 2d95b7d

Browse files
committed
fix NHC nodename/hostname mismatch
1 parent a94f3e3 commit 2d95b7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ansible/roles/nhc/templates/nhc.conf.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# {{ ansible_managed }}
22

3+
# Nodes have long FQDN hostnames but short nodenames
4+
* || HOSTNAME="$HOSTNAME_S"
5+
36
## Filesystem checks
47
{% for mount in ansible_mounts %}
58
{% set mount_mode = 'rw' if 'rw' in mount.options.split(',') else 'ro' %}

0 commit comments

Comments
 (0)