Gsub
This commit is contained in:
parent
37e419cf75
commit
709d2165ac
|
@ -163,7 +163,7 @@ define service {
|
||||||
check_command check_nextcloud
|
check_command check_nextcloud
|
||||||
check_interval 5
|
check_interval 5
|
||||||
check_period 24x7
|
check_period 24x7
|
||||||
<% cur_cust = regsubst("#{site}", '\.drive.*','') %>
|
<% cur_cust = site.gsub(/\.drive.*/,'') %>
|
||||||
# 'check_nextcloud' command definition
|
# 'check_nextcloud' command definition
|
||||||
<% if @environment == 'prod' and not site.match('test') and @fullnodes.include?(cur_cust) %>
|
<% if @environment == 'prod' and not site.match('test') and @fullnodes.include?(cur_cust) %>
|
||||||
contacts slack
|
contacts slack
|
||||||
|
|
Loading…
Reference in a new issue