Import default modules as part of MBS common role.
This commit is contained in:
parent
b10e5a2ca4
commit
e0285b7f50
3 changed files with 50 additions and 4 deletions
|
@ -19,13 +19,13 @@
|
|||
when: not testing
|
||||
with_items:
|
||||
- module-build-service
|
||||
- python-modulemd
|
||||
- libmodulemd
|
||||
- name: yum update mbs packages from testing repo
|
||||
yum: name={{item}} state=latest enablerepo=infrastructure-tags-stg
|
||||
when: testing
|
||||
with_items:
|
||||
- module-build-service
|
||||
- python-modulemd
|
||||
- libmodulemd
|
||||
|
||||
- name: push packages out to backend
|
||||
hosts: mbs-backend:mbs-backend-stg
|
||||
|
@ -48,13 +48,13 @@
|
|||
when: not testing
|
||||
with_items:
|
||||
- module-build-service
|
||||
- python-modulemd
|
||||
- libmodulemd
|
||||
- name: yum update mbs packages from testing repo
|
||||
yum: name={{item}} state=latest enablerepo=infrastructure-tags-stg
|
||||
when: testing
|
||||
with_items:
|
||||
- module-build-service
|
||||
- python-modulemd
|
||||
- libmodulemd
|
||||
|
||||
- name: verify the frontend and stop it
|
||||
hosts: mbs-frontend:mbs-frontend-stg
|
||||
|
|
27
roles/mbs/common/files/platform-f28.yaml.staging
Normal file
27
roles/mbs/common/files/platform-f28.yaml.staging
Normal file
|
@ -0,0 +1,27 @@
|
|||
data:
|
||||
description: Fedora 28 traditional base
|
||||
license:
|
||||
module: [MIT]
|
||||
name: platform
|
||||
profiles:
|
||||
buildroot:
|
||||
rpms: [bash, bzip2, coreutils, cpio, diffutils, fedora-release, findutils, gawk,
|
||||
gcc, gcc-c++, grep, gzip, info, make, patch, redhat-rpm-config, rpm-build,
|
||||
sed, shadow-utils, tar, unzip, util-linux, which, xz]
|
||||
srpm-buildroot:
|
||||
rpms: [bash, fedora-release, fedpkg-minimal, gnupg2, redhat-rpm-config, rpm-build,
|
||||
shadow-utils]
|
||||
stream: f28
|
||||
summary: Fedora 28 traditional base
|
||||
version: 4
|
||||
context: 00000000
|
||||
xmd:
|
||||
mbs:
|
||||
buildrequires: {}
|
||||
commit: virtual
|
||||
requires: {}
|
||||
koji_tag: module-f28-build
|
||||
mse: TRUE
|
||||
document: modulemd
|
||||
version: 1
|
||||
|
|
@ -80,3 +80,22 @@
|
|||
tags:
|
||||
- mbs
|
||||
- mbs/common
|
||||
|
||||
- name: create /etc/module-build-service/default-modules directory
|
||||
file:
|
||||
path: /etc/module-build-service/default-modules
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0775
|
||||
|
||||
- name: copy default modules to /etc/module-build-service/default-modules
|
||||
copy: src={{ item.src }}.{{ env }} dest={{ item.dest }}
|
||||
with_items:
|
||||
- { src: 'platform-f28.yaml', dest: '/etc/module-build-service/default-modules' }
|
||||
|
||||
- name: import default-modules
|
||||
command: /usr/bin/mbs-manager import_module {{ item }}
|
||||
with_fileglob:
|
||||
- /etc/module-ubild-service/default-modules/*.yaml
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue