Add spec file from RPM
Initial work on creating the spec file for RedHat based systems Change-Id: I7ea22e71f7f25dafad839595c498919401e4f3af Signed-off-by: Arif Ali <mail@arif-ali.co.uk>
This commit is contained in:
parent
01bd63011d
commit
ab30065231
|
@ -0,0 +1,64 @@
|
|||
%global service ceilometer
|
||||
|
||||
Summary: Ceilometer Salt formula
|
||||
Name: salt-formula-%{service}
|
||||
Version: 0.2
|
||||
URL: https://wiki.openstack.org/wiki/OpenStackSalt
|
||||
Release: 1
|
||||
License: ASL 2.0
|
||||
Requires: salt-master
|
||||
BuildArch: noarch
|
||||
Source: http://tarballs.openstack.org/%{service}/salt-formula-%{service}.tar.gz
|
||||
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
|
||||
%description
|
||||
Install and configure Ceilometer server and client.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}
|
||||
|
||||
%install
|
||||
install -d -m 755 %{buildroot}/usr/share/salt-formulas/env/%{service}/files/juno
|
||||
install -D -m 644 %{service}/files/juno/* %{buildroot}/usr/share/salt-formulas/env/%{service}/files/juno/
|
||||
install -d -m 755 %{buildroot}/usr/share/salt-formulas/env/%{service}/files/kilo
|
||||
install -D -m 644 %{service}/files/kilo/* %{buildroot}/usr/share/salt-formulas/env/%{service}/files/kilo/
|
||||
#install -d -m 755 %{buildroot}/usr/share/salt-formulas/env/%{service}/files/liberty
|
||||
#install -D -m 644 %{service}/files/liberty/* %{buildroot}/usr/share/salt-formulas/env/%{service}/files/liberty/
|
||||
|
||||
install -D -m 644 %{service}/files/*.conf %{buildroot}/usr/share/salt-formulas/env/%{service}/files/
|
||||
install -D -m 644 %{service}/*.sls %{buildroot}/usr/share/salt-formulas/env/%{service}/
|
||||
install -D -m 644 %{service}/*.jinja %{buildroot}/usr/share/salt-formulas/env/%{service}/
|
||||
|
||||
install -d -m 755 %{buildroot}/usr/share/salt-formulas/env/%{service}/meta
|
||||
install -D -m 644 %{service}/meta/*.yml %{buildroot}/usr/share/salt-formulas/env/%{service}/meta/.
|
||||
|
||||
install -d -m 755 %{buildroot}/usr/share/salt-formulas/reclass/service/%{service}/agent/publisher
|
||||
install -d -m 755 %{buildroot}/usr/share/salt-formulas/reclass/service/%{service}/server/publisher
|
||||
|
||||
install -D -m 644 metadata/service/agent/*.yml %{buildroot}/usr/share/salt-formulas/reclass/service/%{service}/agent/
|
||||
install -D -m 644 metadata/service/server/*.yml %{buildroot}/usr/share/salt-formulas/reclass/service/%{service}/server/
|
||||
|
||||
install -D -m 644 metadata/service/agent/publisher/*.yml %{buildroot}/usr/share/salt-formulas/reclass/service/%{service}/agent/publisher/
|
||||
install -D -m 644 metadata/service/server/publisher/*.yml %{buildroot}/usr/share/salt-formulas/reclass/service/%{service}/server/publisher/
|
||||
|
||||
install -D -m 644 metadata/service/*.yml %{buildroot}/usr/share/salt-formulas/reclass/service/%{service}/
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%doc CHANGELOG.rst
|
||||
%doc VERSION
|
||||
/usr/share/salt-formulas/env/%{service}/
|
||||
/usr/share/salt-formulas/reclass/service/%{service}/
|
||||
|
||||
%post
|
||||
%systemd_post salt-master.service
|
||||
|
||||
%preun
|
||||
%systemd_preun salt-master.service
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart salt-master.service
|
Loading…
Reference in New Issue