X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/adead93f417f41e73dbbe4e02620b77ef6a5a3db..e1df29a3d682b28400ca35e490aa4a95aa564246:/tools/salt-install/provision.sh diff --git a/tools/salt-install/provision.sh b/tools/salt-install/provision.sh index e95fa2c1f9..b840d86c6f 100755 --- a/tools/salt-install/provision.sh +++ b/tools/salt-install/provision.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash # Copyright (C) The Arvados Authors. All rights reserved. # @@ -178,7 +178,7 @@ VERSION="latest" # Other formula versions we depend on POSTGRES_TAG="v0.41.6" NGINX_TAG="temp-fix-missing-statements-in-pillar" -DOCKER_TAG="v1.0.0" +DOCKER_TAG="v2.0.7" LOCALE_TAG="v0.3.4" LETSENCRYPT_TAG="v2.1.0" @@ -235,23 +235,22 @@ if [ "${DUMP_CONFIG}" = "yes" ]; then else # Install a few dependency packages # First, let's figure out the OS we're working on - OS_ID=$(grep ^ID= /etc/os-release |cut -f 2 -d \") + OS_ID=$(grep ^ID= /etc/os-release |cut -f 2 -d= |cut -f 2 -d \") echo "Detected distro: ${OS_ID}" case ${OS_ID} in - centos) - PREINSTALL_CMD="/bin/true" - INSTALL_CMD="yum install -y" + "centos") + echo "WARNING! Disabling SELinux, see https://dev.arvados.org/issues/18019" + sed -i 's/SELINUX=enforcing/SELINUX=permissive' /etc/sysconfig/selinux + setenforce permissive + yum install -y curl git jq ;; - debian|ubuntu) - PREINSTALL_CMD="DEBIAN_FRONTEND=noninteractive apt update" - INSTALL_CMD="DEBIAN_FRONTEND=noninteractive apt install -y" + "debian"|"ubuntu") + DEBIAN_FRONTEND=noninteractive apt update + DEBIAN_FRONTEND=noninteractive apt install -y curl git jq ;; esac - ${PREINSTALL_CMD} - ${INSTALL_CMD} curl git jq - if which salt-call; then echo "Salt already installed" else @@ -263,6 +262,8 @@ else # Set salt to masterless mode cat > /etc/salt/minion << EOFSM +failhard: "True" + file_client: local file_roots: base: @@ -624,5 +625,10 @@ fi # Test that the installation finished correctly if [ "x${TEST}" = "xyes" ]; then cd ${T_DIR} - ./run-test.sh + # If we use RVM, we need to run this with it, or most ruby commands will fail + RVM_EXEC="" + if [ -x /usr/local/rvm/bin/rvm-exec ]; then + RVM_EXEC="/usr/local/rvm/bin/rvm-exec" + fi + ${RVM_EXEC} ./run-test.sh fi