From 39d38c10f24dc4bbe2959c6817153eab51a2ab9f Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Tue, 1 Mar 2016 09:29:39 -0700 Subject: initial package import --- .gitignore | 1 + ceph-ansible.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 48 insertions(+) create mode 100644 .gitignore create mode 100644 ceph-ansible.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd9a744 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ceph-ansible-0-f9c3159.tar.gz diff --git a/ceph-ansible.spec b/ceph-ansible.spec new file mode 100644 index 0000000..6fb97b7 --- /dev/null +++ b/ceph-ansible.spec @@ -0,0 +1,46 @@ +# We are packaging git snapshots until upstream starts using real version +# numbers. https://github.com/ceph/ceph-ansible/issues/557 + +%global commitdate 20160229 +%global commit f9c3159e0d0e20dc3c8362e6f0258f666d9210b8 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: ceph-ansible +Version: 0 +Release: 0.1.%{commitdate}git%{shortcommit}%{?dist} +Summary: Ansible playbooks for Ceph +License: MIT +URL: https://github.com/ceph/ceph-ansible +Source0: https://github.com/ceph/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz + +BuildArch: noarch + +BuildRequires: ansible + +%description +Ansible playbooks for Ceph + +%prep +%autosetup -p1 -n %{name}-%{commit} + +%build + +%install +mkdir -p %{buildroot}%{_datarootdir}/ceph-ansible + +for f in *.yml *.sample group_vars roles library plugins; do + cp -a $f %{buildroot}%{_datarootdir}/ceph-ansible +done + +%check +# Borrowed from upstream's .travis.yml: +ansible-playbook -i dummy-ansible-hosts test.yml --syntax-check + +%files +%doc README.md +%license LICENSE +%{_datarootdir}/ceph-ansible + +%changelog +* Mon Feb 29 2016 Ken Dreyer - 0-0.1.20160229gitf9c3159 +- initial package diff --git a/sources b/sources new file mode 100644 index 0000000..7c2b864 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +ee2d9e1e60cf39a969e9ca228cce3489 ceph-ansible-0-f9c3159.tar.gz -- cgit