This commit introduces a simple Vagrant environment to aid in development of Koji. It is a simple scaffold at this point - it creates an empty database, builds RPMs, installs them, creates a CA, and starts httpd.
Signed-off-by: Randy Barlow randy@electronsweatshop.com
I'm having trouble getting this to work with the instructions. Maybe we can expand the lines int he example vagrantfile into their own little doc. It would be nice to let folks know:
There is also some ongoing work on https://github.com/release-engineering/koji-dojo/tree/vagrant branch. Maybe it would make sense to consolidate these together (not checked yet).
Looks like Koji-dojo repo should be a better location for submitting this kind of work. That repo already contains an assortment of ways to install Koji.
Looks like a temporary file that can be safely removed from the pull request.
https://github.com/release-engineering/koji-dojo/tree/vagrant somewhat intersects with the current pull request, but they don't have too much in common. The former is a vagrant wrapper for koji-dojo, and PR420 is a plain vagrant-based installation. So it's rather an alternative than a duplicate.
For the Ansible part, there are also koji-* roles existing in Ansible galaxy: https://galaxy.ansible.com/list#/roles?page=1&page_size=10&autocomplete=koji I didn't look at them closely, but those could probably be used instead of the devel/ansible/roles/* introduced in this PR.
devel/ansible/roles/*
Here's how I did this in my playbooks:
- postgresql_user: name: koji password: test become_user: postgres - postgresql_db: name: koji owner: koji become_user: postgres
I think we should use CentOS 7 (https://app.vagrantup.com/centos) or 8 (https://bugs.centos.org/view.php?id=16455) so it does not go out of date.
We can replace these openssl commands (and ssl.cnf) with koji-ssl-admin
openssl
ssl.cnf
Incidentally I'm right now working on this due to my personal needs. Ill share what I have in a few days.
There is also https://pagure.io/koji-vagrant
I've pushed my Vagrant configuration to https://github.com/ktdreyer/koji-playbooks/tree/master/vagrant
This commit introduces a simple Vagrant environment to aid in
development of Koji. It is a simple scaffold at this point - it
creates an empty database, builds RPMs, installs them, creates a
CA, and starts httpd.
Signed-off-by: Randy Barlow randy@electronsweatshop.com