forked from vvaldez/astapor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openstack-foreman-installer.spec
75 lines (62 loc) · 2.35 KB
/
openstack-foreman-installer.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
71
72
73
74
75
%{?scl:%scl_package rubygem-%{gem_name}}
%{!?scl:%global pkg_name %{name}}
%global homedir /usr/share/openstack-foreman-installer
Name: %{?scl_prefix}openstack-foreman-installer
Version: 0.0.4
Release: 1%{?dist}
Summary: Installer & Configuration tool for OpenStack
Group: Applications/System
License: GPLv2
URL: https://github.com/jsomara/astapor
Source0: https://file.rdu.redhat.com:~/jomara/openstack-foreman-installer.tar.gz
Requires: %{?scl_prefix}ruby-puppet
Requires: packstack-modules-puppet
Requires: %{?scl_prefix}ruby
Requires: foreman >= 1.1
Requires: %{?scl_prefix}rubygem-foreman_openstack_simplify
# Requires: foreman-mysql >= 1.1
# Requires: foreman-installer >= 2.0
Requires: mysql-server
%description
Tools for configuring The Foreman for provisioning & configuration of
OpenStack.
%prep
%setup -q
%build
%install
install -d -m 0755 %{buildroot}%{homedir}
install -d -m 0755 %{buildroot}%{homedir}/bin
install -m 0755 bin/foreman-setup.rb %{buildroot}%{homedir}/bin
install -m 0755 bin/foreman_server.sh %{buildroot}%{homedir}/bin
install -m 0644 bin/foreman-params.json %{buildroot}%{homedir}/bin
install -d -m 0755 %{buildroot}%{homedir}/puppet/modules
cp -Rp puppet/* %{buildroot}%{homedir}/puppet/modules/
install -d -m 0755 %{buildroot}%{homedir}/config
install -m 0644 config/broker-ruby %{buildroot}%{homedir}/config
install -m 0644 config/database.yml %{buildroot}%{homedir}/config
install -m 0644 config/foreman-nightlies.repo %{buildroot}%{homedir}/config
install -m 0644 config/ruby193-passenger.conf %{buildroot}%{homedir}/config
%files
%{homedir}/
%{homedir}/bin/
%{homedir}/bin/foreman-setup.rb
%{homedir}/bin/foreman_server.sh
%{homedir}/bin/foreman-params.json
%{homedir}/puppet/
%{homedir}/puppet/*
%{homedir}/config/
%{homedir}/config/broker-ruby
%{homedir}/config/database.yml
%{homedir}/config/foreman-nightlies.repo
%{homedir}/config/ruby193-passenger.conf
%changelog
* Fri May 24 2013 Jordan OMara <[email protected]> 0.0.4-1
- Some fixes for 193 foreman ([email protected])
- work in progress-- "puppet apply" tweaks. note, no puppet::server
* Fri May 24 2013 Jordan OMara <[email protected]> 0.0.3-1
- Changes for ruby193-foreman packages ([email protected])
* Tue May 21 2013 Jordan OMara <[email protected]> 0.0.2-1
- new package built with tito
* Mon May 20 2013 Jordan OMara <[email protected]> 0.0.1-1
- initial packaging