openqa, check-compose, relvalconsumer: drop remaining fedmsg bits
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
1c855ec84b
commit
52d7450a9c
5 changed files with 15 additions and 35 deletions
|
@ -175,13 +175,6 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- name: Wipe the old fedmsg consumer config file
|
|
||||||
file: path=/etc/fedmsg.d/checkcomp_consumer.py state=absent
|
|
||||||
notify:
|
|
||||||
- restart fedmsg-hub
|
|
||||||
tags:
|
|
||||||
- config
|
|
||||||
|
|
||||||
- name: Install config file
|
- name: Install config file
|
||||||
template: src=check-compose.conf.j2 dest=/etc/check-compose.conf mode=0644
|
template: src=check-compose.conf.j2 dest=/etc/check-compose.conf mode=0644
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
openqa_hostname: localhost
|
openqa_hostname: localhost
|
||||||
openqa_consumer: true
|
|
||||||
openqa_extraarches: false
|
openqa_extraarches: false
|
||||||
openqa_amqp_passive: false
|
openqa_amqp_passive: false
|
||||||
openqa_amqp_scheduler_url: "amqps://fedora:@rabbitmq.fedoraproject.org/%2Fpublic_pubsub"
|
openqa_amqp_scheduler_url: "amqps://fedora:@rabbitmq.fedoraproject.org/%2Fpublic_pubsub"
|
||||||
|
|
|
@ -3,10 +3,6 @@
|
||||||
## string - hostname of openQA server to run jobs for and query
|
## string - hostname of openQA server to run jobs for and query
|
||||||
## job results from
|
## job results from
|
||||||
## default - localhost
|
## default - localhost
|
||||||
# - openqa_consumer
|
|
||||||
## bool - whether to enable the fedmsg consumer and run whenever
|
|
||||||
## a compose completes
|
|
||||||
## default - true
|
|
||||||
# - external_hostname
|
# - external_hostname
|
||||||
## string - The public hostname of the openQA server (used in
|
## string - The public hostname of the openQA server (used in
|
||||||
## links back from ResultsDB and wiki results)
|
## links back from ResultsDB and wiki results)
|
||||||
|
@ -232,8 +228,12 @@
|
||||||
notify:
|
notify:
|
||||||
- restart openqa scheduler consumer
|
- restart openqa scheduler consumer
|
||||||
|
|
||||||
|
# FIXME: we should probably have the fedora-messaging consumers run as
|
||||||
|
# someone other than root and then we'd need another token file for
|
||||||
|
# them, as we used to have for the fedmsg user. But for now they run
|
||||||
|
# as root and use this one.
|
||||||
- name: openQA client config
|
- name: openQA client config
|
||||||
template: src=client.conf.j2 dest=/etc/openqa/client.conf owner=root group=fedmsg mode=0640
|
template: src=client.conf.j2 dest=/etc/openqa/client.conf owner=root group=root mode=0640
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
@ -252,25 +252,19 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- name: Create /root/.openidc (token file location for manual runs as root)
|
# FIXME: we should probably have the fedora-messaging consumers run as
|
||||||
|
# someone other than root and then we'd need another token file for
|
||||||
|
# them, as we used to have for the fedmsg user. But for now they run
|
||||||
|
# as root and use this one.
|
||||||
|
- name: Create /root/.openidc (wiki access token file location)
|
||||||
file: path=/root/.openidc state=directory owner=root group=root mode=0700
|
file: path=/root/.openidc state=directory owner=root group=root mode=0700
|
||||||
|
|
||||||
- name: Create /usr/share/fedmsg/.openidc (token file location for fedmsg consumer runs)
|
|
||||||
file: path=/usr/share/fedmsg/.openidc state=directory owner=root group=fedmsg mode=0750
|
|
||||||
|
|
||||||
- name: Write wikitcms token file for root
|
- name: Write wikitcms token file for root
|
||||||
copy: src={{ wikitcms_token }} dest=/root/.openidc/oidc_wikitcms.json owner=root group=root mode=0600
|
copy: src={{ wikitcms_token }} dest=/root/.openidc/oidc_wikitcms.json owner=root group=root mode=0600
|
||||||
when: "wikitcms_token is defined"
|
when: "wikitcms_token is defined"
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- name: Wipe the old fedmsg consumer config file
|
|
||||||
file: path=/etc/fedmsg.d/openqa_consumer.py state=absent
|
|
||||||
notify:
|
|
||||||
- restart fedmsg-hub
|
|
||||||
tags:
|
|
||||||
- config
|
|
||||||
|
|
||||||
- name: Create /etc/pki/fedora-messaging
|
- name: Create /etc/pki/fedora-messaging
|
||||||
file:
|
file:
|
||||||
dest: /etc/pki/fedora-messaging
|
dest: /etc/pki/fedora-messaging
|
||||||
|
|
|
@ -94,7 +94,7 @@
|
||||||
# stable and testing
|
# stable and testing
|
||||||
- name: Install openQA packages
|
- name: Install openQA packages
|
||||||
package:
|
package:
|
||||||
name: ['openqa', 'openqa-httpd', 'openqa-plugin-fedmsg', 'openqa-plugin-fedoraupdaterestart',
|
name: ['openqa', 'openqa-httpd', 'openqa-plugin-fedora-messaging', 'openqa-plugin-fedoraupdaterestart',
|
||||||
'python3-fedfind']
|
'python3-fedfind']
|
||||||
state: present
|
state: present
|
||||||
# enablerepo: "updates-testing"
|
# enablerepo: "updates-testing"
|
||||||
|
@ -265,9 +265,10 @@
|
||||||
pause: seconds=5
|
pause: seconds=5
|
||||||
when: "services is defined and services is changed"
|
when: "services is defined and services is changed"
|
||||||
|
|
||||||
# the 'dispatcher' role requires this to be root.fedmsg 0640. so we
|
# the 'dispatcher' role may require this to have a non-root group and
|
||||||
# don't enforce ownership here and set mode to 0640 so we don't wind
|
# sets it 0640, so we don't enforce ownership here and set mode to
|
||||||
# up ping-ponging it between server and dispatcher roles.
|
# 0640 so we don't wind up ping-ponging it between server and
|
||||||
|
# dispatcher roles.
|
||||||
- name: openQA client config
|
- name: openQA client config
|
||||||
template: src=client.conf.j2 dest=/etc/openqa/client.conf mode=0640
|
template: src=client.conf.j2 dest=/etc/openqa/client.conf mode=0640
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -220,13 +220,6 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- name: Wipe the old fedmsg consumer config file
|
|
||||||
file: path=/etc/fedmsg.d/relvalconsumer.py state=absent
|
|
||||||
notify:
|
|
||||||
- restart fedmsg-hub
|
|
||||||
tags:
|
|
||||||
- config
|
|
||||||
|
|
||||||
- name: Enable and start fedora-messaging relvalconsumer
|
- name: Enable and start fedora-messaging relvalconsumer
|
||||||
service: name=fm-consumer@relvalconsumer enabled=yes state=started
|
service: name=fm-consumer@relvalconsumer enabled=yes state=started
|
||||||
when: not relvalconsumer_disabled|bool
|
when: not relvalconsumer_disabled|bool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue