@@ -14,16 +14,23 @@ KAYOBE_BRANCH=stackhpc/2025.1
14
14
KAYOBE_CONFIG_BRANCH=stackhpc/2025.1
15
15
KAYOBE_ENVIRONMENT=aufn-ceph
16
16
17
+ if [[ ! -f $BASE_PATH /vault-pw ]]; then
18
+ echo " Vault password file not found at $BASE_PATH /vault-pw"
19
+ exit 1
20
+ fi
21
+
17
22
# Install git and tmux.
18
23
if $( which dnf 2> /dev/null > /dev/null) ; then
19
24
sudo dnf -y install git tmux
20
25
else
21
26
sudo apt update
22
- sudo apt -y install git tmux gcc libffi-dev python3-dev python-is-python3
27
+ sudo apt -y install git tmux gcc libffi-dev python3-dev python-is-python3 python3-pip python3.12-venv
23
28
fi
24
29
30
+ export KAYOBE_VAULT_PASSWORD=$( cat $BASE_PATH /vault-pw)
31
+
25
32
# Disable the firewall.
26
- sudo systemctl is-enabled firewalld && sudo systemctl stop firewalld && sudo systemctl disable firewalld
33
+ sudo systemctl is-enabled firewalld && sudo systemctl stop firewalld && sudo systemctl disable firewalld || true
27
34
28
35
# Disable SELinux both immediately and permanently.
29
36
if $( which setenforce 2> /dev/null > /dev/null) ; then
@@ -32,7 +39,7 @@ if $(which setenforce 2>/dev/null >/dev/null); then
32
39
fi
33
40
34
41
# Prevent sudo from performing DNS queries.
35
- echo ' Defaults !fqdn' | sudo tee /etc/sudoers.d/no-fqdn
42
+ echo ' Defaults !fqdn' | sudo tee /etc/sudoers.d/no-fqdn
36
43
37
44
# Clone repositories
38
45
cd $BASE_PATH
47
54
mkdir -p venvs
48
55
pushd venvs
49
56
if [[ ! -d kayobe ]]; then
50
- python3 -m venv kayobe
57
+ python3.12 -m venv kayobe
51
58
fi
52
59
# NOTE: Virtualenv's activate and deactivate scripts reference an
53
60
# unbound variable.
54
61
set +u
55
62
source kayobe/bin/activate
56
63
set -u
57
64
pip install -U pip
58
- pip install ../src/kayobe
65
+ pip install -r ../src/kayobe-config/requirements.txt
59
66
popd
60
67
61
68
# Activate environment
0 commit comments