openqa: adjust for changes to scheduler design
mainly systemd unit changes, clean up the old ones, enable the new.
This commit is contained in:
parent
56e50a4a26
commit
24435918ea
3 changed files with 27 additions and 15 deletions
|
@ -29,9 +29,6 @@ openqa_secret: "{{ stg_openqa_apisecret }}"
|
||||||
|
|
||||||
wikitcms_password: "{{ stg_wikitcms_password }}"
|
wikitcms_password: "{{ stg_wikitcms_password }}"
|
||||||
|
|
||||||
# For now let's not run any scheduled jobs on stg
|
|
||||||
openqa_triggers: []
|
|
||||||
|
|
||||||
checkcompose_url: "https://{{ external_hostname }}"
|
checkcompose_url: "https://{{ external_hostname }}"
|
||||||
|
|
||||||
deployment_type: stg
|
deployment_type: stg
|
||||||
|
|
|
@ -1,6 +1,2 @@
|
||||||
openqa_hostname: localhost
|
openqa_hostname: localhost
|
||||||
openqa_triggers:
|
openqa_consumer: True
|
||||||
- current
|
|
||||||
- branched
|
|
||||||
- rawhide
|
|
||||||
- stable
|
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
# - openqa_hostname
|
# - openqa_hostname
|
||||||
## string - hostname of openQA server to run jobs for
|
## string - hostname of openQA server to run jobs for
|
||||||
## default - localhost
|
## default - localhost
|
||||||
# - openqa_triggers
|
# - openqa_consumer
|
||||||
## list - the timers to enable - i.e. which scheduled runs
|
## bool - whether to enable the fedmsg consumer and run whenever
|
||||||
## will actually be triggered by this dispatcher
|
## a compose completes
|
||||||
## default - ['current', 'branched', 'rawhide', 'stable']
|
## default - true
|
||||||
#
|
#
|
||||||
# Optional vars
|
# Optional vars
|
||||||
# - wikitcms_user
|
# - wikitcms_user
|
||||||
|
@ -72,6 +72,25 @@
|
||||||
chdir: /root/openqa_fedora_tools-dispatcher/scheduler
|
chdir: /root/openqa_fedora_tools-dispatcher/scheduler
|
||||||
when: "gittools|changed or not insttools.stat.exists"
|
when: "gittools|changed or not insttools.stat.exists"
|
||||||
|
|
||||||
|
# TEMPORARY one-time cleanup of old systemd units/timers
|
||||||
|
- name: Disable and stop old systemd timers
|
||||||
|
service: name=openqa-trigger-{{ item }}.timer enabled=no state=stopped
|
||||||
|
with_items:
|
||||||
|
- branched
|
||||||
|
- current
|
||||||
|
- rawhide
|
||||||
|
- stable
|
||||||
|
|
||||||
|
- name: Delete old systemd timer and unit files
|
||||||
|
file: path=/usr/lib/systemd/systemd/openqa-{{ item }} state=absent
|
||||||
|
with_items:
|
||||||
|
- trigger-branched.timer
|
||||||
|
- trigger-current.timer
|
||||||
|
- trigger-rawhide.timer
|
||||||
|
- trigger-stable.timer
|
||||||
|
- trigger-nightly@.service
|
||||||
|
- trigger@.service
|
||||||
|
|
||||||
- name: Reload systemd config to pick up installed units
|
- name: Reload systemd config to pick up installed units
|
||||||
command: "systemctl daemon-reload"
|
command: "systemctl daemon-reload"
|
||||||
when: "gittools|changed or not insttools.stat.exists"
|
when: "gittools|changed or not insttools.stat.exists"
|
||||||
|
@ -98,6 +117,6 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- name: Enable and start timers
|
- name: Enable and start consumer
|
||||||
service: name=openqa-trigger-{{ item }}.timer enabled=yes state=started
|
service: name=openqa-consumer.server enabled=yes state=started
|
||||||
with_items: "{{ openqa_triggers }}"
|
when: "openqa_consumer is defined and openqa_consumer"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue