From 0f7714cb1bdc94a0180e84878b8bb936b45d64e6 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sun, 9 Feb 2014 22:43:22 +0000 Subject: [PATCH] Add support for signing and importing into the testing repository --- playbooks/sign_and_import.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/playbooks/sign_and_import.yml b/playbooks/sign_and_import.yml index d252e0ecc4..24fc541998 100644 --- a/playbooks/sign_and_import.yml +++ b/playbooks/sign_and_import.yml @@ -1,10 +1,13 @@ # This playbook takes new rpms specified with a fileglob, signs them, and adds # them to the infrastructure repo. # +# To push to infra-testing: +# requires --extra-vars="rpmdir='/home/fedora/ralph/rpms/' testing=True" +# +# To push to infra: # requires --extra-vars="rpmdir='/home/fedora/ralph/rpms/'" # TODO -- grab rpms from koji build/task ids beforehand? -# TODO -- how do make it easy to select the infra-testing repo? # TODO -- other arches than x86_64? - name: batch sign and import a directory full of rpms @@ -16,8 +19,7 @@ # repo. Since we're in freeze right now, we'll default to the testing repo. # It would be nice to be able to toggle this from the command line. vars: - #- repodir: /mnt/fedora/app/fi-repo/testing/6 - - repodir: /mnt/fedora/app/fi-repo/6 + - repodir: /mnt/fedora/app/fi-repo/{% if testing %}testing/{% endif %}6 tasks: - name: Fail if no rpmdir provided @@ -32,7 +34,7 @@ - name: make a directory where we store the rpms afterwards file: path={{ rpmdir }}-old state=directory - - name: copy the source rpms to the SRPMS dir + - name: copy the source rpms to the SRPMS dir of {{ repodir }} copy: src={{ item }} dest={{ repodir }}/SRPMS/ with_fileglob: - "{{ rpmdir }}/*.src.rpm" @@ -45,7 +47,7 @@ with_fileglob: - "{{ rpmdir }}/*.src.rpm" - - name: copy the binary rpms to the x86_64 dir + - name: copy the binary rpms to the x86_64 dir of {{ repodir }} copy: src={{ item }} dest={{ repodir }}/x86_64/ with_fileglob: - "{{ rpmdir }}/*.rpm"