This project hosts a Vagrantfile meant to make it easy to deploy koji in a local VM for development purpose.
It relies on the playbook provided at: https://github.com/ktdreyer/koji-playbooks
To run the project:
git clone ssh://git@pagure.io/koji-vagrant.git cd koji-vagrant git submodule init git submodule update
Edit the playbook to specify that ansible should be ran using python3:
vim koji-playbooks/setup-koji.yml
And adjust it to:
- name: manage Koji VM hosts: all vars: ansible_python_interpreter: /usr/bin/python3
Create the SSL certs needed by koji:
python3 koji-ssl-admin new-ca python3 koji-ssl-admin server-csr kojidev.example.com python3 koji-ssl-admin sign --ca-key koji-ca.key --ca-cert koji-ca.crt kojidev.example.com.csr cat koji-ca.crt kojidev.example.com.crt > kojidev.example.com.chain.crt
Move the SSL certs into there expected location:
cp koji-ca.* kojidev.example.com.* koji-playbooks/roles/koji-hub/files
Start the VM:
vagrant up
You will need to have vagrant
and vagrant-ssh
installed before.
Code hosted here is licensed under the CC0 license.