puppet/modules/rhizo_base/templates/vars.sh.erb
Keith Whyte 0e360b2194 Build BTS defs in vars.sh from array
and, Number the BTS from 0 in environment
2020-04-29 00:30:41 +02:00

28 lines
564 B
Text

#!/bin/sh
RHIZO_SCRIPT="/home/rhizomatica/bin"
function logc() {
txt=$1
echo "[`date '+%d-%m-%Y %H:%M:%S'`] $txt" >> $LOGFILE
}
#BTSs IP addresses
<% @bts.each_with_index do |bts, index| -%>
BTS<%= index %>=<%= bts["ip"] %>
<% end -%>
LATENCY_HOST=<%= @latency_check_address %>
LATENCY_TINC=<%= @latency_check_vpn %>
STAT_DISK=<%= @stats_disk %>
STAT_IF=<%= @stats_if %>
RECIPIENTS="<%= @mail_admins -%>"
function bname {
case $1 in
<% @bts.each_with_index do |bts, index| -%>
<%= index %>) echo -n "<%= bts["name"] %>" ;;
<% end -%>
esac
}