koji: Add playbooks for Koji

The `koji.yml` playbook can be used to deploy an entire Koji ecosystem.
It is composed of three smaller playbooks:

* `koji-hub.yml`: Deploys the Koji hub, GC, and Kojira
* `koji-web.yml`: Deploys the Koji Web GUI
* `koji-builder.yml`: Deploys the Koji builder
jenkins-master
Dustin 2018-08-12 10:09:20 -05:00
parent a0dd911a63
commit f9cba30582
5 changed files with 35 additions and 0 deletions

10
hosts
View File

@ -36,6 +36,16 @@ git0.pyrocufflink.blue
[jenkins-slave]
cm0.pyrocufflink.blue
[koji:children]
koji-builder
koji-hub
[koji-builder]
[koji-hub]
[koji-web]
[named-server:children]
pyrocufflink-dns

4
koji-builder.yml Normal file
View File

@ -0,0 +1,4 @@
- hosts: koji-builder
roles:
- ssh-hostkeys
- koji-builder

9
koji-hub.yml Normal file
View File

@ -0,0 +1,9 @@
- hosts: koji-hub
roles:
- postgresql-server
- apache
- koji-hub
- cronie
- koji-gc
- kojira
- koji-client

4
koji-web.yml Normal file
View File

@ -0,0 +1,4 @@
- hosts: koji-web
roles:
- apache
- koji-web

8
koji.yml Normal file
View File

@ -0,0 +1,8 @@
- import_playbook: koji-hub.yml
- import_playbook: koji-web.yml
# For new installations, it is not safe to start kojid immediately, as the
# `koji add-host` command needs to be run first to avoid the "User n is not a
# host" error. Until a `koji_user` module exists to automatically handle this,
# it is best to simply let the user handle it and explicitly apply the
# `koji-builder.yml` platbook later
#- import_playbook: koji-builder.yml