From 872a17d1dba7d158671a7e1716fc98e91b8aacb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 2 Mar 2016 17:29:57 +0100 Subject: [PATCH] contrib: fix ceph-common role name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien Han --- contrib/splitup.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/contrib/splitup.yml b/contrib/splitup.yml index f4c55f0ec..04d609c90 100644 --- a/contrib/splitup.yml +++ b/contrib/splitup.yml @@ -8,6 +8,9 @@ # # ansible-playbook -i dummy-ansible-hosts contrib/splitup.yml \ # --tags update --extra-vars github=mhubig/ansible +# +# To point to a specific role, ie: ceph-mon just run with "-e roles=ceph-mon" +# - name: This recipe split the roles into repos and keeps them updated. hosts: localhost @@ -17,7 +20,6 @@ vars: github: ceph/ansible roles: - - ceph-common - ceph-mon - ceph-osd - ceph-mds @@ -40,14 +42,18 @@ command: git subtree split --prefix=roles/{{ item }} -b {{ item }} --squash args: chdir: "{{ basedir }}" - with_items: roles + with_items: + - roles + - ceph.ceph-common - name: adds remote github repos for the splits tags: split command: git remote add {{ item }} git@github.com:{{ github }}-{{ item }}.git args: chdir: "{{ basedir }}" - with_items: roles + with_items: + - roles + - ceph-common - name: adds upstream remote tags: update @@ -64,3 +70,9 @@ args: chdir: "{{ basedir }}" with_items: roles + + - name: update the split repos from master (ceph-common) + tags: update + shell: git push ceph-common $(git subtree split --prefix roles/ceph.ceph-common master):master --force + args: + chdir: "{{ basedir }}"