<% if node['gitlab']['high-availability']['mountpoint'] %>
if ! mountpoint -q '<%= node['gitlab']['high-availability']['mountpoint'] %>' ; then
  echo 'Refusing to start because <%= node['gitlab']['high-availability']['mountpoint'] %> is not a mountpoint.'
  exit 1
fi
<% end %>

<% [node['gitlab']['high-availability']['mountpoint']].flatten.compact.each do |mountpoint| %>
if ! mountpoint -q '<%= mountpoint %>' ; then
  echo 'Refusing to start because <%= mountpoint %> is not a mountpoint.'
  exit 1
fi
<% end %>

Allow to specify multiple mountpoints as an array to high-availability:mountpoint
Allow to specify multiple mountpoints as an array to high-availability:mountpoint
