]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rpm: ship different yml samples on RHEL vs CentOS 1895/head
authorKen Dreyer <kdreyer@redhat.com>
Thu, 14 Sep 2017 17:22:37 +0000 (11:22 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 14 Sep 2017 17:22:37 +0000 (11:22 -0600)
When building the RPM on CentOS, we will ship the all.yml.sample file
and delete rhcs.yml.sample.

When building the RPM on RHEL, we will ship the rhcs.yml.sample file and
delete all.yml.sample.

ceph-ansible.spec.in

index 0baee039072ed53a4f01b36d3e7db6c7879c6478..d56a96a4eaf4ed62fe4f35961c74b0c8df98ff28 100644 (file)
@@ -44,6 +44,13 @@ pushd %{buildroot}%{_datarootdir}/ceph-ansible
   rm group_vars/common-coreoss.yml.sample
   # These untested playbooks are too unstable for users.
   rm -r infrastructure-playbooks/untested-by-ci
+  %if 0%{?fedora} || 0%{?centos}
+    # Ship the upstream config (delete RHCS)
+    rm group_vars/rhcs.yml.sample
+  %else
+    # Ship only the Red Hat Ceph Storage config (delete upstream)
+    rm group_vars/all.yml.sample
+  %endif
 popd
 
 %check