<commit_before>#!/usr/bin/env bash
set -o errexit
set -o pipefail

SCRIPT_DIR="$(dirname ${BASH_SOURCE[0]})"
USED_OS="${1}"
WORK_DIR="${SCRIPT_DIR}/../workdir"

. ${SCRIPT_DIR}/install_kargo.sh

tweak_group_vars() {
  sed -i "s/bootstrap_os: .*/bootstrap_os: ${USED_OS}/" ./mvp_inventory/group_vars/all.yml
}

pushd ${WORK_DIR}
get_kargo
setup_playbook
tweak_group_vars ${USED_OS}

ansible_verbosity=""
if [ "${DEBUG}" == "true" ]; then
    ansible_verbosity="-vv"
fi

echo "============================"
echo "Running Kargo"
echo "============================"
ansible-playbook --connection=ssh --timeout=30 --limit=all --inventory-file=./mvp_inventory/ --sudo ${ansible_verbosity} cluster.yml
echo ""
echo "============================"
echo "Running post deploy"
echo "============================"
ansible-playbook --connection=ssh --timeout=30 --limit=all --inventory-file=./mvp_inventory/ --sudo ${ansible_verbosity} post_deploy.yml
popd<commit_msg>Remove host limit on post_deploy<commit_after>#!/usr/bin/env bash
set -o errexit
set -o pipefail

SCRIPT_DIR="$(dirname ${BASH_SOURCE[0]})"
USED_OS="${1}"
WORK_DIR="${SCRIPT_DIR}/../workdir"

. ${SCRIPT_DIR}/install_kargo.sh

tweak_group_vars() {
  sed -i "s/bootstrap_os: .*/bootstrap_os: ${USED_OS}/" ./mvp_inventory/group_vars/all.yml
}

pushd ${WORK_DIR}
get_kargo
setup_playbook
tweak_group_vars ${USED_OS}

ansible_verbosity=""
if [ "${DEBUG}" == "true" ]; then
    ansible_verbosity="-vv"
fi

echo "============================"
echo "Running Kargo"
echo "============================"
ansible-playbook --connection=ssh --timeout=30 --limit=all --inventory-file=./mvp_inventory/ --sudo ${ansible_verbosity} cluster.yml
echo ""
echo "============================"
echo "Running post deploy"
echo "============================"
ansible-playbook --connection=ssh --timeout=30 --inventory-file=./mvp_inventory/ --sudo ${ansible_verbosity} post_deploy.yml
popd
{'fraction_non_alphanumeric': 0.2717788210745957, 'fraction_numerical': 0.006259780907668232, 'mean_word_length': 5.85, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6426382', 'n_tokens_mistral': 692, 'n_tokens_neox': 660, 'n_words': 126}