forked from gluster/gdeploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gdeploy.spec
70 lines (56 loc) · 1.77 KB
/
gdeploy.spec
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
%define name gdeploy
%define version 1
%define release 0
%define gdeploymod ansible/modules/extras/system/glusterfs
%define gdeploytemp /usr/share/ansible/gdeploy
%define gdeploydoc /usr/share/doc/ansible/gdeploy
Name: %{name}
Version: %{version}
Release: %{?release}
Summary: Tool to deploy and manage GlusterFS cluster.
Group: Applications/System
License: GPLv3
URL: http://www.redhat.com/storage
Source0: %{name}-%{version}.%{release}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}.%{release}-buildroot
Requires: ansible >= 1.9 python >= 2.6
BuildRequires: python-setuptools
%description
This package provides ansible modules to setup and configure GluterFS. With
these modules you can:
Configure backend to setup GlusterFS
* Setup backend with lvm thinpool support
* Create Filesystem
* Mount the filesystem
* Create and start a GlusterFS volume
* Mount the clients
Tool to generate the playbooks, group_vars/host_vars
%prep
%setup -n %{name}-%{version}.%{release}
%build
python setup.py build
%install
# Install the binary and python libraries
rm -rf %{buildroot}
python setup.py install -O1 --root=%{buildroot} --record=INSTALLED_FILES
mkdir -p %{buildroot}/%{python_sitelib}/%{gdeploymod}
install -m 755 modules/* \
%{buildroot}/%{python_sitelib}/%{gdeploymod}
# Install the templates into /usr/share/ansible/gdeploy/templates
mkdir -p %{buildroot}/%{gdeploytemp}
cp -r templates %{buildroot}/%{gdeploytemp}
# Documentation
mkdir -p %{buildroot}/%{gdeploydoc}
cp -r README.md examples %{buildroot}/%{gdeploydoc}
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%{python_sitelib}/%{gdeploymod}
%{gdeploytemp}
%doc README.md
%docdir %{gdeploydoc}
%{gdeploydoc}
%changelog
* Mon Aug 3 2015 Sachidananda Urs <[email protected]> 1.0
- Initial release.