mirror of https://github.com/ceph/ceph-ansible.git
rpm: do not package coreos-related files
These are unnecessary on RPM-based platforms, and it makes it harder to audit the RPM-packaged files for security when we ship things that are unneeded.pull/1507/head
parent
18ede1694d
commit
94be99d158
|
@ -35,6 +35,14 @@ for f in ansible.cfg *.yml *.sample group_vars roles library plugins infrastruct
|
||||||
cp -a $f %{buildroot}%{_datarootdir}/ceph-ansible
|
cp -a $f %{buildroot}%{_datarootdir}/ceph-ansible
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Strip coreos files.
|
||||||
|
# These are unneeded on RPM-based distros, and the playbooks download random
|
||||||
|
# things from around the internet.
|
||||||
|
pushd %{buildroot}%{_datarootdir}/ceph-ansible
|
||||||
|
rm -r roles/ceph-common-coreos
|
||||||
|
rm group_vars/common-coreoss.yml.sample
|
||||||
|
popd
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# Borrowed from upstream's .travis.yml:
|
# Borrowed from upstream's .travis.yml:
|
||||||
ansible-playbook -i dummy-ansible-hosts test.yml --syntax-check
|
ansible-playbook -i dummy-ansible-hosts test.yml --syntax-check
|
||||||
|
|
Loading…
Reference in New Issue