diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | cephadm-ansible.spec | 43 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 45 insertions, 0 deletions
@@ -0,0 +1 @@ +/cephadm-ansible-1.14.0-d3b87c4.tar.gz diff --git a/cephadm-ansible.spec b/cephadm-ansible.spec new file mode 100644 index 0000000..47244df --- /dev/null +++ b/cephadm-ansible.spec @@ -0,0 +1,43 @@ +%global commit d3b87c41ec8da5401cb1fc3ef292b0990b7bf953 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: cephadm-ansible +Version: 1.14.0 +Release: 1%{?dist} +Summary: ansible playbooks to be used with cephadm +License: ASL 2.0 +URL: https://github.com/ceph/cephadm-ansible +Source0: %{name}-%{version}-%{shortcommit}.tar.gz + +BuildArch: noarch + +BuildRequires: ansible-core >= 2.9 +BuildRequires: ansible-collection-community-general +Requires: ansible-core >= 2.9 +Requires: ansible-collection-community-general + +%description +cephadm-ansible is a collection of Ansible playbooks to simplify workflows that are not covered by cephadm. + +%prep +%autosetup -p1 + +%build + +%install +mkdir -p %{buildroot}%{_datarootdir}/cephadm-ansible + +for f in ansible.cfg *.yml ceph_defaults library module_utils validate; do + cp -a $f %{buildroot}%{_datarootdir}/cephadm-ansible +done + +%check +ansible-playbook -i tests/functional/hosts cephadm-preflight.yml --syntax-check +ansible-playbook -i tests/functional/hosts cephadm-purge-cluster.yml -e fsid=%(uuidgen) --syntax-check + +%files +%doc README.md +%license LICENSE +%{_datarootdir}/cephadm-ansible + +%changelog @@ -0,0 +1 @@ +bac8ceaa32c90aaa752c197856831bfe cephadm-ansible-1.14.0-d3b87c4.tar.gz |