mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-11-29 08:26:28 +00:00
Merge pull request #14996 from akatch/openqa_dev_demo_fixes
Openqa dev demo fixes
This commit is contained in:
commit
5d586cdbe1
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
- name: Check for non-empty postgres data directory
|
- name: Check for non-empty postgres data directory
|
||||||
stat:
|
stat:
|
||||||
path: /var/lib/pgsql/data
|
path: /var/lib/pgsql/data/base
|
||||||
register: postgres_data_dir
|
register: postgres_data_dir
|
||||||
|
|
||||||
- name: If postgresql is not already running, initialize database
|
- name: If postgresql is not already running, initialize database
|
||||||
@ -68,7 +68,7 @@
|
|||||||
permanent: true
|
permanent: true
|
||||||
state: enabled
|
state: enabled
|
||||||
loop:
|
loop:
|
||||||
- httpd
|
- http
|
||||||
- openqa-vnc
|
- openqa-vnc
|
||||||
|
|
||||||
- name: Permit VNC traffic for local workers
|
- name: Permit VNC traffic for local workers
|
||||||
@ -103,6 +103,11 @@
|
|||||||
group: "{{ openqa_group }}"
|
group: "{{ openqa_group }}"
|
||||||
mode: "0775"
|
mode: "0775"
|
||||||
|
|
||||||
|
# fifloader.py will fail if the Demo user is not logged in
|
||||||
|
- name: Authenticate to web UI the first time
|
||||||
|
uri:
|
||||||
|
url: "http://{{ openqa_host }}/login"
|
||||||
|
|
||||||
- name: Run fifloader.py
|
- name: Run fifloader.py
|
||||||
command: ./fifloader.py -l -c templates.fif.json templates-updates.fif.json
|
command: ./fifloader.py -l -c templates.fif.json templates-updates.fif.json
|
||||||
changed_when: "1 != 1"
|
changed_when: "1 != 1"
|
||||||
@ -136,11 +141,14 @@
|
|||||||
args:
|
args:
|
||||||
chdir: "{{ openqa_homedir }}/share/factory/iso/fixed"
|
chdir: "{{ openqa_homedir }}/share/factory/iso/fixed"
|
||||||
|
|
||||||
- name: Start OpenQA worker
|
- name: Start {{ openqa_worker_count }} OpenQA workers
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: "openqa-worker@1"
|
name: "openqa-worker@{{ item }}"
|
||||||
state: started
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
|
# range 'end' parameter is exclusive, so add 1
|
||||||
|
loop: "{{ range(1, (openqa_worker_count|int + 1)) | list }}"
|
||||||
|
tags: start_workers
|
||||||
|
|
||||||
- name: POST a job
|
- name: POST a job
|
||||||
command: |
|
command: |
|
||||||
|
Loading…
Reference in New Issue
Block a user