testing if $is_multinode is the problem - correcter regex

This commit is contained in:
Rikard Danielsson 2025-03-05 15:00:14 +01:00
parent a6eaddbd8f
commit 74da008b5e
Signed by untrusted user: richir
GPG key ID: 584D2AA2FA669135

View file

@ -388,7 +388,7 @@ define sunetdrive::app_type (
}
}
}
if $facts['networking']['hostname'] == 'node1' or $facts['networking']['hostname'] =~ /^multinode[1-9]+\..*/{
if $facts['networking']['hostname'] == 'node1' or $facts['networking']['hostname'] =~ /^multinode[1-9]+$/{
file { '/usr/lib/nagios/plugins/check_nextcloud_mounts.py':
ensure => present,
force => true,