openQA: try and set up fedora-messaging publishing on staging
Also tweak how we do the plugin config a bit, I don't like the whole 'do special stuff if deployment_mode is set' thing any more. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
f9546b5258
commit
ab4a46bf9e
6 changed files with 23 additions and 5 deletions
|
@ -11,6 +11,8 @@ openqa_dbpassword: "{{ prod_openqa_dbpassword }}"
|
||||||
openqa_key: "{{ prod_openqa_apikey }}"
|
openqa_key: "{{ prod_openqa_apikey }}"
|
||||||
openqa_secret: "{{ prod_openqa_apisecret }}"
|
openqa_secret: "{{ prod_openqa_apisecret }}"
|
||||||
|
|
||||||
|
openqa_webapi_plugins: Fedmsg FedoraUpdateRestart
|
||||||
|
|
||||||
# this is because openqa staging isn't really a staging host
|
# this is because openqa staging isn't really a staging host
|
||||||
# we don't want to set env_suffix to stg on it because that may
|
# we don't want to set env_suffix to stg on it because that may
|
||||||
# break some other plays, but we do need the env suffix for the
|
# break some other plays, but we do need the env suffix for the
|
||||||
|
|
|
@ -21,6 +21,12 @@ openqa_assetsize_updates: 100
|
||||||
# allowed to create queues on the infra AMQP broker, by broker config
|
# allowed to create queues on the infra AMQP broker, by broker config
|
||||||
openqa_amqp_passive: true
|
openqa_amqp_passive: true
|
||||||
|
|
||||||
|
# fedora-messaging publisher settings
|
||||||
|
openqa_amqp_publisher_url: "amqps://openqa{{ openqa_env_suffix }}:@rabbitmq{{ openqa_env_suffix }}.fedoraproject.org/%2Fpubsub"
|
||||||
|
# openQA isn't very ssl-aware here, so we're abusing its URL construction
|
||||||
|
# to stuff the cert and key values in here
|
||||||
|
openqa_amqp_publisher_exchange: "amq.topic&cacertfile=/etc/fedora-messaging/cacert{{ openqa_env_suffix }}.pem&certfile=/etc/pki/fedora-messaging/openqa{{ openqa_env_suffix }}-cert.pem&keyfile=/etc/pki/fedora-messaging/openqa{{ openqa_env_suffix }}-key.pem"
|
||||||
|
|
||||||
# fedora-messaging job scheduler settings: most of these are the same
|
# fedora-messaging job scheduler settings: most of these are the same
|
||||||
# for prod and stg as they both must listen for prod messages. Only
|
# for prod and stg as they both must listen for prod messages. Only
|
||||||
# the queue names differs
|
# the queue names differs
|
||||||
|
|
|
@ -24,6 +24,8 @@ openqa_assetsize_aarch64: 150
|
||||||
openqa_key: "{{ stg_openqa_apikey }}"
|
openqa_key: "{{ stg_openqa_apikey }}"
|
||||||
openqa_secret: "{{ stg_openqa_apisecret }}"
|
openqa_secret: "{{ stg_openqa_apisecret }}"
|
||||||
|
|
||||||
|
openqa_webapi_plugins: FedoraMessaging FedoraUpdateRestart
|
||||||
|
|
||||||
# this is because openqa staging isn't really a staging host
|
# this is because openqa staging isn't really a staging host
|
||||||
# we don't want to set env_suffix to stg on it because that may
|
# we don't want to set env_suffix to stg on it because that may
|
||||||
# break some other plays, but we do need the env suffix for the
|
# break some other plays, but we do need the env suffix for the
|
||||||
|
|
1
roles/openqa/server/defaults/main.yml
Normal file
1
roles/openqa/server/defaults/main.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
openqa_webapi_plugins: FedoraUpdateRestart
|
|
@ -16,6 +16,9 @@
|
||||||
# - external_hostname
|
# - external_hostname
|
||||||
## string - The public hostname for the server (will be used as ServerName)
|
## string - The public hostname for the server (will be used as ServerName)
|
||||||
## default - ansible_nodename
|
## default - ansible_nodename
|
||||||
|
# - openqa_webapi_plugins
|
||||||
|
## string - Space-separated list of openQA WebAPI plugins to enable
|
||||||
|
## default - FedoraUpdateRestart
|
||||||
|
|
||||||
# Optional vars
|
# Optional vars
|
||||||
# - openqa_static_uid
|
# - openqa_static_uid
|
||||||
|
@ -39,9 +42,8 @@
|
||||||
## Fedora testing, 50GB is good
|
## Fedora testing, 50GB is good
|
||||||
## FIXME: this only works for pgsql ATM
|
## FIXME: this only works for pgsql ATM
|
||||||
# - deployment_type
|
# - deployment_type
|
||||||
## string - Fedora Infrastructure thing; for this role, decides
|
## string - Fedora Infrastructure thing; for this role, applies an
|
||||||
## whether to enable some openQA plugins that should be
|
## infra-specific tweak to httpd config. Don't set it outside
|
||||||
## enabled only in Fedora infra. Don't set it outside
|
|
||||||
## Fedora infra.
|
## Fedora infra.
|
||||||
#
|
#
|
||||||
# If openqa_dbhost is set, the others must be too, and the server will be
|
# If openqa_dbhost is set, the others must be too, and the server will be
|
||||||
|
|
|
@ -2,12 +2,17 @@
|
||||||
branding = plain
|
branding = plain
|
||||||
base_url = https://{{ external_hostname }}
|
base_url = https://{{ external_hostname }}
|
||||||
download_domains = fedoraproject.org
|
download_domains = fedoraproject.org
|
||||||
{% if deployment_type is defined %}
|
{% if openqa_webapi_plugins is defined and openqa_webapi_plugins %}
|
||||||
plugins = Fedmsg FedoraUpdateRestart
|
plugins = {{ openqa_webapi_plugins }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
hide_asset_types = repo iso hdd
|
hide_asset_types = repo iso hdd
|
||||||
parallel_cancel_whole_cluster = 0
|
parallel_cancel_whole_cluster = 0
|
||||||
|
|
||||||
|
[amqp]
|
||||||
|
topic_prefix = fedora
|
||||||
|
url = {{ openqa_amqp_publisher_url }}
|
||||||
|
exchange = {{ openqa_amqp_publisher_exchange }}
|
||||||
|
|
||||||
[auth]
|
[auth]
|
||||||
method=OpenID
|
method=OpenID
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue