X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f7f0081a516055b4bf52cf625cfd8dffa253ac24..63f2a0c654cdddc7e56064a4f8bc394c2109083f:/tools/salt-install/provision.sh diff --git a/tools/salt-install/provision.sh b/tools/salt-install/provision.sh index 4f9c209ef0..63e2d886ac 100755 --- a/tools/salt-install/provision.sh +++ b/tools/salt-install/provision.sh @@ -631,7 +631,7 @@ if [ -z "${ROLES}" ]; then echo "extra_custom_certs_dir: /srv/salt/certs" > ${P_DIR}/extra_custom_certs.sls echo "extra_custom_certs:" >> ${P_DIR}/extra_custom_certs.sls - for c in controller websocket workbench workbench2 webshell keepweb keepproxy shell; do + for c in controller websocket workbench workbench2 webshell keepweb keepproxy; do # Are we in a single-host-single-hostname env? if [ "${USE_SINGLE_HOSTNAME}" = "yes" ]; then # Are we in a single-host-single-hostname env? @@ -831,7 +831,7 @@ if [ "${DUMP_CONFIG}" = "yes" ]; then fi # Now run the install -salt-call --local state.apply -l ${LOG_LEVEL} +salt-call --state-output=mixed --local state.apply -l ${LOG_LEVEL} # Finally, make sure that /etc/hosts is not overwritten on reboot if [ -d /etc/cloud/cloud.cfg.d ]; then @@ -840,17 +840,19 @@ if [ -d /etc/cloud/cloud.cfg.d ]; then fi # Leave a copy of the Arvados CA so the user can copy it where it's required -if [ "$DEV_MODE" = "yes" ]; then - echo "Copying the Arvados CA certificate to the installer dir, so you can import it" - # If running in a vagrant VM, also add default user to docker group +if [ "${SSL_MODE}" = "self-signed" ]; then + echo "Copying the Arvados CA certificate '${CLUSTER}.${DOMAIN}-arvados-snakeoil-ca.crt' to the installer dir, so you can import it" if [ "x${VAGRANT}" = "xyes" ]; then cp /etc/ssl/certs/arvados-snakeoil-ca.pem /vagrant/${CLUSTER}.${DOMAIN}-arvados-snakeoil-ca.pem + else + cp /etc/ssl/certs/arvados-snakeoil-ca.pem ${SCRIPT_DIR}/${CLUSTER}.${DOMAIN}-arvados-snakeoil-ca.crt + fi +fi +if [ "x${VAGRANT}" = "xyes" ]; then + # If running in a vagrant VM, also add default user to docker group echo "Adding the vagrant user to the docker group" usermod -a -G docker vagrant - else - cp /etc/ssl/certs/arvados-snakeoil-ca.pem ${SCRIPT_DIR}/${CLUSTER}.${DOMAIN}-arvados-snakeoil-ca.pem - fi fi # Test that the installation finished correctly