20926: Requires manually setting PG version when not using the 'database' role.
[arvados.git] / tools / salt-install / installer.sh
index d41c50e8c511751fa5d1e26ad8d18f06b888ddf2..bb57666da6c02eaf1fece49dd90c41b1a3cc06c4 100755 (executable)
@@ -297,6 +297,12 @@ deploy)
     exit 1
   fi
 
+  if [[ -z "${DATABASE_POSTGRESQL_VERSION:-}" ]]; then
+    echo
+    echo "Please configure DATABASE_POSTGRESQL_VERSION in local.params: It should match the version of the PostgreSQL service you're going to use."
+    exit 1
+  fi
+
   if [[ ${SSL_MODE} == "bring-your-own" ]]; then
     if [[ ! -z "${ROLE2NODES['balancer']:-}" ]]; then
       checkcert balancer