Skip to content

Commit 86112cf

Browse files
Wouter D'Haeseleerglorpen
authored andcommitted
The peer name is not always the same as the FQDN, so use a more clever test
1 parent 267c387 commit 86112cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

manifests/peer.pp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
# peering attempt only resolves a cosmetic issue, not a functional one.
4343
#
4444
define gluster::peer (
45-
$pool = 'default'
45+
$pool = 'default',
46+
$fqdn = $::fqdn,
4647
) {
4748

4849
# we can't do much without the Gluster binary
@@ -51,7 +52,7 @@
5152
if getvar('::gluster_binary') {
5253
# we can't join to ourselves, so it only makes sense to operate
5354
# on other gluster servers in the same pool
54-
if $title != $::fqdn {
55+
if $fqdn != $::fqdn {
5556

5657
# and we don't want to attach a server that is already a member
5758
# of the current pool

0 commit comments

Comments
 (0)