Change how we get the HTML file accessible in fedora_nightlies
Just can't get Apache config Alias to work for some reason, so let's go with the flow and stick the file in openQA's public directory. This works! Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
9e4e8a5a71
commit
aa2a002a96
5 changed files with 14 additions and 16 deletions
|
@ -2,15 +2,14 @@
|
|||
# to create queues on the infra AMQP broker, by broker config
|
||||
fedora_nightlies_amqp_passive: true
|
||||
|
||||
# fedora-messaging job scheduler settings: most of these are the same
|
||||
# for prod and stg as they both must listen for prod messages. Only
|
||||
# the queue names differs
|
||||
# fedora-messaging job scheduler settings
|
||||
fedora_nightlies_amqp_url: "amqps://openqa:@rabbitmq.fedoraproject.org/%2Fpubsub"
|
||||
fedora_nightlies_amqp_cacert: /etc/fedora-messaging/cacert.pem
|
||||
fedora_nightlies_amqp_key: /etc/pki/fedora-messaging/openqa-key.pem
|
||||
fedora_nightlies_amqp_cert: /etc/pki/fedora-messaging/openqa-cert.pem
|
||||
fedora_nightlies_amqp_queue: "openqa_fedora_nightlies"
|
||||
fedora_nightlies_amqp_routing_keys: ["org.fedoraproject.prod.openqa.job.done", "org.fedoraproject.prod.pungi.compose.status.change"]
|
||||
fedora_nightlies_amqp_html_file: /usr/share/openqa/public/nightlies.html
|
||||
|
||||
# fedora-messaging email error reporting settings
|
||||
fedora_nightlies_amqp_mailto: ["adamwill@fedoraproject.org"]
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Alias /nightlies.html "/var/www/fedora_nightlies/nightlies.html"
|
|
@ -66,6 +66,12 @@
|
|||
## string - Fedora Infrastructure thing; for this role, applies an
|
||||
## infra-specific tweak to httpd config. Don't set it outside
|
||||
## Fedora infra.
|
||||
# - fedora_nightlies_amqp_data_file
|
||||
## string - Full path of JSON file to generate/read. If not set,
|
||||
## fedora_nightlies default will be used
|
||||
# - fedora_nightlies_amqp_html_file
|
||||
## string - Full path of HTML file to generate. If not set,
|
||||
## fedora_nightlies default will be used
|
||||
|
||||
|
||||
- name: Install required packages
|
||||
|
@ -147,12 +153,3 @@
|
|||
- name: Enable and start fedora-messaging fedora_nightlies
|
||||
service: name=fm-consumer@fedora_nightlies enabled=yes state=started
|
||||
when: not fedora_nightlies_disabled|bool
|
||||
|
||||
# This is also icky and assumes something is Including this config snippet,
|
||||
# i.e. a Fedora infra-y openQA server. But making it better is a bit hard
|
||||
- name: Set up Apache config
|
||||
copy: src=openqa-extras-fedora_nightlies.inc.httpd dest=/etc/httpd/conf.d/openqa-extras-fedora_nightlies.inc owner=root group=root mode=0644
|
||||
notify:
|
||||
- reload httpd
|
||||
tags:
|
||||
- config
|
||||
|
|
|
@ -45,10 +45,14 @@ routing_keys = [{% for key in fedora_nightlies_amqp_routing_keys %}"{{ key }}",{
|
|||
[consumer_config]
|
||||
# JSON data file location. If not set, default
|
||||
# /var/lib/fedora_nightlies/nightlies.json will be used
|
||||
#datafile = "/tmp/nightlies.json"
|
||||
{% if fedora_nightlies_amqp_data_file is defined %}
|
||||
datafile = {{ fedora_nightlies_amqp_data_file }}
|
||||
{% endif %}
|
||||
# HTML output file location. If not set, default
|
||||
# /var/www/fedora_nightlies/nightlies.html will be used
|
||||
#htmlfile = "/tmp/nightlies.html"
|
||||
{% if fedora_nightlies_amqp_html_file is defined %}
|
||||
htmlfile = {{ fedora_nightlies_amqp_html_file }}
|
||||
{% endif %}
|
||||
|
||||
[qos]
|
||||
prefetch_size = 0
|
||||
|
|
|
@ -7,5 +7,4 @@
|
|||
ProxyPass /apache-status !
|
||||
{% endif %}
|
||||
Include conf.d/openqa-common.inc
|
||||
IncludeOptional conf.d/openqa-extras-*.inc
|
||||
</VirtualHost>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue