]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
contrib: fix ceph-common role name 593/head
authorSébastien Han <seb@redhat.com>
Wed, 2 Mar 2016 16:29:57 +0000 (17:29 +0100)
committerSébastien Han <seb@redhat.com>
Wed, 2 Mar 2016 16:29:57 +0000 (17:29 +0100)
Signed-off-by: Sébastien Han <seb@redhat.com>
contrib/splitup.yml

index f4c55f0ec9065c27cc26c7fd0d2adb888877bf00..04d609c909b994b34bee14da66c7e0a247de8ad5 100644 (file)
@@ -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
       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 }}"