sudo yum install -y git python3 python3-pip libselinux-python3 maven
For MacOS, install gnu-tar and add it to the system PATH
https://stackoverflow.com/questions/54528115/unable-to-extract-tar-file-though-ansible-unarchive-module-in-macos
brew install git python maven gnu-tar
sudo pip3 install psycopg2-binary ansible openshift jmespath
sudo install -d -o $USER -g $USER /usr/local/src/opendatapolicing
git clone git@github.com:opendatapolicing/opendatapolicing.git /usr/local/src/opendatapolicing
ansible-galaxy install -r /usr/local/src/opendatapolicing/ansible/roles/requirements.yml
cd /usr/local/src/opendatapolicing && ansible-playbook opendatapolicing_install_project.yml -K
Configure vault file
see opendatapolicing-ansible for sample
install -d /usr/local/src/opendatapolicing-ansible/inventories/opendatapolicing-hackathon/host_vars/localhost/
ansible-vault create /usr/local/src/opendatapolicing-ansible/inventories/opendatapolicing-hackathon/host_vars/localhost/vault
ansible-vault edit /usr/local/src/opendatapolicing-ansible/inventories/opendatapolicing-hackathon/host_vars/localhost/vault
Create OpenShift Token
VAULT_ID=opendatapolicing-hackathon/host_vars/localhost
ansible-playbook -i /usr/local/src/opendatapolicing-ansible/inventories/opendatapolicing-hackathon/hosts /usr/local/src/opendatapolicing/ansible/project_token_setup.yml --ask-vault-pass -e "ocp_cluster_user_user=username" -e "ocp_cluster_user_password=changeme"