adding taskotron-proxy role for dev

This commit is contained in:
Tim Flink 2014-07-03 02:00:26 +00:00
parent 98aa091262
commit b797671b6a
4 changed files with 23 additions and 0 deletions

View file

@ -23,5 +23,6 @@ master_user: buildmaster
external_hostname: taskotron.dev.fedoraproject.org
resultsdb_url: http://resultsdb-dev01.qa.fedoraproject.org/resultsdb/api/v1.0
resultsdb_frontend_url: http://resultsdb-dev01.qa.fedoraproject.org/
resultsdb_endpoint: resultsdb
landingpage_title: "Taskotron Development"
deployment_type: dev

View file

@ -69,6 +69,7 @@
- { role: taskotron/buildmaster-configure, tags: ['buildmasterconfig'] }
- { role: taskotron/taskotron-trigger, tags: ['trigger'] }
- { role: taskotron/taskotron-frontend, tags: ['frontend'] }
- { role: taskotron/taskotron-proxy, tags: ['taskotronproxy'] }
handlers:
- include: "{{ handlers }}/restart_services.yml"

View file

@ -0,0 +1,17 @@
# this was designed to be used in dev where there is no global proxy
# this way, we can get away with a single ip and ssl cert instead of
# one for taskotron and one for resultsdb. The url scheme also stays
# closer to stg/prod
- name: ensure packages required for proxying are installedc
action: yum name={{ item }} state=latest
with_items:
- libsemanage-python
- name: allow httpd tcp connections with selinux
seboolean: name=httpd_can_network_connect state=true persistent=yes
- name: copy resultsdb proxy httpd config
template: src=resultsdb.conf.j2 dest=/etc/httpd/conf.d/resultsdb.conf owner=root group=root
notify:
- restart httpd

View file

@ -0,0 +1,4 @@
<Location /{{ resultsdb_endpoint }}/ >
ProxyPass http://{{ resultsdb_frontend_url }}/
ProxyPassReverse http://{{ resultsdb_frontend_url }}/
</Location>