From 439a3e0e794310f9712f790102d4113a2eea93d9 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 22 Mar 2023 15:45:22 +0000 Subject: automatic import of cephadm-ansible --- .gitignore | 1 + cephadm-ansible.spec | 43 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 45 insertions(+) create mode 100644 cephadm-ansible.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..5b85bb6 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/sources b/sources new file mode 100644 index 0000000..58a77cb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +bac8ceaa32c90aaa752c197856831bfe cephadm-ansible-1.14.0-d3b87c4.tar.gz -- cgit v1.2.3