diff --git a/playbooks/manual/upgrade/mbs.yml b/playbooks/manual/upgrade/mbs.yml index 40707d03b2..40c37cd88f 100644 --- a/playbooks/manual/upgrade/mbs.yml +++ b/playbooks/manual/upgrade/mbs.yml @@ -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 diff --git a/roles/mbs/common/files/platform-f28.yaml.staging b/roles/mbs/common/files/platform-f28.yaml.staging new file mode 100644 index 0000000000..a4614ea076 --- /dev/null +++ b/roles/mbs/common/files/platform-f28.yaml.staging @@ -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 + diff --git a/roles/mbs/common/tasks/main.yml b/roles/mbs/common/tasks/main.yml index efcaed8f03..136137d149 100644 --- a/roles/mbs/common/tasks/main.yml +++ b/roles/mbs/common/tasks/main.yml @@ -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 +