This repository holds the specific playbooks required to manage the Open edX installation at NAU.
This repository uses another different repository.
The secure-nau-data repository is the private NAU repository where the keys and passwords are stored,
on per environment.
Commands to clone the dependencies:
git clone -b master git@github.com:fccn/secure-nau-data.git nau-data
git clone -b master git@github.com:fccn/nau_playbooks.git nau_playbooksBecause of the old version of Open edX that we use on NAU, we need to use the older Python 3.11 version.
Double check that you are using the Python 3.11 version, with:
python --versionTo install the pip on the older Python version 3.11, run:
wget https://bootstrap.pypa.io/get-pip.py
python3.11 get-pip.pyuv venv --seed venv -p python3.11Some python pip dependencies or some ansible modules also require some operating system packages.
sudo apt install -y build-essential software-properties-common python3-software-properties curl git libxml2-dev libxslt1-dev libfreetype6-dev python3-pip python3-apt python3-dev tree libmysqlclient-dev libssl-dev libffi-dev python3-minimalpython3.11 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
ansible-galaxy install -p vendor/roles -r requirements.ymlTo run an ansible playbook, like for example the deploy.yml playbook, use a similar command:
ansible-playbook -i nau-data/envs/<env>/hosts.ini deploy.yml --limit XPTO