openqa: drop all use of wikitcms_user and wikitcms_password
It's all wikitcms_token now, this was all just outdated cruft. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
071fafe09d
commit
4f202be131
5 changed files with 8 additions and 20 deletions
|
@ -21,8 +21,6 @@ openqa_assetsize_updates: 100
|
|||
openqa_key: "{{ prod_openqa_apikey }}"
|
||||
openqa_secret: "{{ prod_openqa_apisecret }}"
|
||||
|
||||
wikitcms_user: coconut
|
||||
wikitcms_password: "{{ prod_wikitcms_password }}"
|
||||
wikitcms_token: "{{ private }}/files/openidc/production/wikitcms.json"
|
||||
|
||||
# The checkcompose settings below cause system(s) in this group to
|
||||
|
|
|
@ -40,7 +40,6 @@ openqa_secret: "{{ stg_openqa_apisecret }}"
|
|||
# for now, we have the 'extra' arches (ppc64 and aarch64) on stg
|
||||
openqa_extraarches: true
|
||||
|
||||
wikitcms_password: "{{ stg_wikitcms_password }}"
|
||||
wikitcms_token: "{{ private }}/files/openidc/staging/wikitcms.json"
|
||||
|
||||
checkcompose_url: "https://{{ external_hostname }}"
|
||||
|
|
|
@ -3,12 +3,12 @@ config = {
|
|||
'fedora_openqa.scheduler.prod.enabled': True,
|
||||
{% endif %}
|
||||
{% if deployment_type is defined and deployment_type == 'prod' %}
|
||||
{% if wikitcms_user is defined and wikitcms_password is defined %}
|
||||
{% if wikitcms_token is defined %}
|
||||
'fedora_openqa.reporter.wiki.prod.enabled': True,
|
||||
{% endif %}
|
||||
'fedora_openqa.reporter.resultsdb.prod.enabled': True,
|
||||
{% elif deployment_type is defined and deployment_type == 'stg' %}
|
||||
{% if wikitcms_user is defined and wikitcms_password is defined %}
|
||||
{% if wikitcms_token is defined %}
|
||||
'fedora_openqa.reporter.wiki.stg.enabled': True,
|
||||
{% endif %}
|
||||
'fedora_openqa.reporter.resultsdb.stg.enabled': True,
|
||||
|
|
|
@ -3,10 +3,9 @@
|
|||
# relvalconsumer_prod set to True, or else we'll stop getting events.
|
||||
#
|
||||
# Required vars
|
||||
# - wikitcms_user
|
||||
## string - FAS username for creating wiki pages
|
||||
# - wikitcms_password
|
||||
## string - password for wikitcms_user
|
||||
# - wikitcms_token
|
||||
## string - a token file to install for unattended reporting to
|
||||
# a wiki using openidc auth
|
||||
#
|
||||
# Required vars with defaults
|
||||
# - relvalconsumer_prod
|
||||
|
@ -44,17 +43,10 @@
|
|||
- name: Create /etc/fedora (credentials files location)
|
||||
file: path=/etc/fedora state=directory owner=root group=fedmsg mode=0750
|
||||
|
||||
# We actually want to handle the case where wikitcms_user isn't defined
|
||||
# We actually want to handle the case where wikitcms_token isn't defined
|
||||
# even though it makes this role essentially do nothing, as we don't
|
||||
# really want openqa-stg creating stuff in the staging wiki all the
|
||||
# time. So in that case install the role but don't set up a credentials
|
||||
# file and leave the role disabled
|
||||
- name: Write wikitcms credentials file
|
||||
template: src=credentials.j2 dest=/etc/fedora/credentials owner=root group=fedmsg mode=0640
|
||||
when: "wikitcms_user is defined and wikitcms_password is defined"
|
||||
tags:
|
||||
- config
|
||||
|
||||
# time. So in that case install the role but leave it disabled
|
||||
- name: Create /root/.openidc (token file location for manual runs as root)
|
||||
file: path=/root/.openidc state=directory owner=root group=root mode=0700
|
||||
|
||||
|
@ -89,7 +81,7 @@
|
|||
|
||||
- name: Enable fedmsg consumer
|
||||
template: src=relvalconsumer.py.j2 dest=/etc/fedmsg.d/relvalconsumer.py owner=root group=root mode=0644
|
||||
when: "wikitcms_user is defined and (wikitcms_password is defined or wikitcms_token is defined)"
|
||||
when: "wikitcms_token is defined"
|
||||
notify:
|
||||
- restart fedmsg-hub
|
||||
tags:
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{{ wikitcms_user }} {{ wikitcms_password }}
|
Loading…
Add table
Add a link
Reference in a new issue