exit 1
fi
-if [ "$srchost" = "`hostname -f`" ]; then
- src="$srcdir"
-else
+if ! [ "$srchost" = "`hostname -f`" ]; then
echo >&2 "Component $component is sourced from $srchost, not this host."
exit 1
fi
masters = []
scope.lookupvar('site::localinfo').keys.sort.each do |node|
if scope.lookupvar('site::localinfo')[node]['static_master']
- line << "masters+=(\"#{node}\"}"
+ lines << " masters+=(\"#{node}\")"
end
end
lines.join("\n")
%>
for master_idx in ${!masters[*]}; do
- ssh "${masters[$master_idx]}" static-master-update-component "$component"
+ ssh -o AddressFamily=inet -t -o ServerAliveInterval=300 -o PreferredAuthentications=publickey "${masters[$master_idx]}" static-master-update-component "$component"
done
fi