openqa: create repodata for scratchrepo
Whoops. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
255ce6ebad
commit
ba8c7b49ff
2 changed files with 16 additions and 4 deletions
|
@ -109,9 +109,9 @@
|
||||||
file: path=/var/tmp/scratchrepo state=directory owner=root group=root
|
file: path=/var/tmp/scratchrepo state=directory owner=root group=root
|
||||||
when: "openqa_scratch is defined"
|
when: "openqa_scratch is defined"
|
||||||
|
|
||||||
- name: Install Koji CLI client
|
- name: Install Koji CLI client and createrepo
|
||||||
package:
|
package:
|
||||||
name: koji
|
name: ["koji", "createrepo"]
|
||||||
state: present
|
state: present
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
@ -124,6 +124,12 @@
|
||||||
loop: "{{ openqa_scratch|flatten(levels=1) }}"
|
loop: "{{ openqa_scratch|flatten(levels=1) }}"
|
||||||
when: "openqa_scratch is defined"
|
when: "openqa_scratch is defined"
|
||||||
|
|
||||||
|
- name: Write repodata
|
||||||
|
command: "createrepo ."
|
||||||
|
args:
|
||||||
|
chdir: /var/tmp/scratchrepo
|
||||||
|
when: "openqa_scratch is defined"
|
||||||
|
|
||||||
- name: Write scratch build repo config
|
- name: Write scratch build repo config
|
||||||
copy: src=scratchrepo.conf dest=/etc/yum.repos.d/scratchrepo.conf owner=root group=root mode=0644
|
copy: src=scratchrepo.conf dest=/etc/yum.repos.d/scratchrepo.conf owner=root group=root mode=0644
|
||||||
when: "openqa_scratch is defined"
|
when: "openqa_scratch is defined"
|
||||||
|
|
|
@ -36,9 +36,9 @@
|
||||||
file: path=/var/tmp/scratchrepo state=directory owner=root group=root
|
file: path=/var/tmp/scratchrepo state=directory owner=root group=root
|
||||||
when: "openqa_scratch is defined"
|
when: "openqa_scratch is defined"
|
||||||
|
|
||||||
- name: Install Koji CLI client
|
- name: Install Koji CLI client and createrepo
|
||||||
package:
|
package:
|
||||||
name: koji
|
name: ["koji", "createrepo"]
|
||||||
state: present
|
state: present
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
@ -51,6 +51,12 @@
|
||||||
loop: "{{ openqa_scratch|flatten(levels=1) }}"
|
loop: "{{ openqa_scratch|flatten(levels=1) }}"
|
||||||
when: "openqa_scratch is defined"
|
when: "openqa_scratch is defined"
|
||||||
|
|
||||||
|
- name: Write repodata
|
||||||
|
command: "createrepo ."
|
||||||
|
args:
|
||||||
|
chdir: /var/tmp/scratchrepo
|
||||||
|
when: "openqa_scratch is defined"
|
||||||
|
|
||||||
- name: Write scratch build repo config
|
- name: Write scratch build repo config
|
||||||
copy: src=scratchrepo.conf dest=/etc/yum.repos.d/scratchrepo.conf owner=root group=root mode=0644
|
copy: src=scratchrepo.conf dest=/etc/yum.repos.d/scratchrepo.conf owner=root group=root mode=0644
|
||||||
when: "openqa_scratch is defined"
|
when: "openqa_scratch is defined"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue