blob: d0708fa9a446537d99c6eecd039037ef74754d5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
%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
%if 0%{?openEuler}
BuildRequires: ansible >= 2.9
Requires: ansible >= 2.9
%else
BuildRequires: ansible-core >= 2.9
BuildRequires: ansible-collection-community-general
Requires: ansible-core >= 2.9
Requires: ansible-collection-community-general
%endif
%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
|