summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Dreyer <ktdreyer@ktdreyer.com>2016-03-01 09:29:39 -0700
committerKen Dreyer <ktdreyer@ktdreyer.com>2016-03-01 09:29:39 -0700
commit39d38c10f24dc4bbe2959c6817153eab51a2ab9f (patch)
treea8d171c84aef818cd3f324ecb139818158dc5da0
downloadceph-ansible-39d38c10f24dc4bbe2959c6817153eab51a2ab9f.tar.gz
ceph-ansible-39d38c10f24dc4bbe2959c6817153eab51a2ab9f.tar.xz
ceph-ansible-39d38c10f24dc4bbe2959c6817153eab51a2ab9f.zip
initial package import
-rw-r--r--.gitignore1
-rw-r--r--ceph-ansible.spec46
-rw-r--r--sources1
3 files changed, 48 insertions, 0 deletions
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 <kdreyer@redhat.com> - 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