-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprovision.sh
31 lines (26 loc) · 964 Bytes
/
provision.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Assuming system is already registered and content attached
# https://access.redhat.com/solutions/5524661
# subscription-manager register
# subscription-manager attach --auto
whoami
# Install required packages
sudo dnf install -y podman skopeo \
python3-pip vi git jq \
rsync unzip tar sudo \
gcc gcc-c++ \
openssl openssl-devel \
libpq-devel glibc-headers \
libcurl-devel libssh-devel \
python3-devel openldap-devel
# Prepare git configuration
sudo git config --global --add safe.directory /vagrant
# Prepare for ansible-navigator on ARM64
sudo subscription-manager repos --enable codeready-builder-for-rhel-9-aarch64-rpms
sudo dnf install -y oniguruma-devel
# Prepare python virtual environment
python3 -m pip install --upgrade pip
python3 -m pip install virtualenv
python3 -m venv ansible
source ansible/bin/activate && \
pip install --upgrade pip && \
pip install ansible-navigator[ansible-core] ansible-core envsubst