-
Notifications
You must be signed in to change notification settings - Fork 0
/
openstack-tripleo-image-elements.spec
222 lines (168 loc) · 7.22 KB
/
openstack-tripleo-image-elements.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# Turn off the brp-python-bytecompile script
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
Name: openstack-tripleo-image-elements
Summary: OpenStack TripleO Image Elements for diskimage-builder
Version: XXX
Release: XXX{?dist}
License: ASL 2.0
Group: System Environment/Base
URL: https://wiki.openstack.org/wiki/TripleO
Source0: http://tarballs.openstack.org/tripleo-image-elements/tripleo-image-elements-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-d2to1
BuildRequires: python-pbr
Requires: diskimage-builder
%description
OpenStack TripleO Image Elements is a collection of elements for
diskimage-builder that can be used to build OpenStack images for the TripleO
program.
%prep
%setup -q -n tripleo-image-elements-%{upstream_version}
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
# remove .git-keep-empty files that get installed
find %{buildroot} -name .git-keep-empty | xargs rm -f
%post
manifest_file=/etc/dib-manifests/dib-element-manifest
if [ -f $manifest_file ]; then
source /usr/share/diskimage-builder/lib/common-functions
TMP_HOOKS_PATH=$(mktemp -d)
IMAGE_ELEMENT=$(cat $manifest_file)
ELEMENTS_PATH=/usr/share/instack-undercloud/:/usr/share/tripleo-image-elements/:/usr/share/diskimage-builder/elements/
generate_hooks
# os-apply-config templates
TEMPLATE_ROOT=/usr/libexec/os-apply-config/templates
if [ -d $TEMPLATE_ROOT ]; then
TEMPLATE_SOURCE=$TMP_HOOKS_PATH/os-apply-config
rsync --delete --exclude='.*.swp' -Cr $TEMPLATE_SOURCE/ $TEMPLATE_ROOT/
fi
# os-refresh-config scripts
SCRIPT_BASE=/usr/libexec/os-refresh-config
if [ -d $SCRIPT_BASE ]; then
SCRIPT_SOURCE=$TMP_HOOKS_PATH/os-refresh-config
rsync --delete -r $SCRIPT_SOURCE/ $SCRIPT_BASE/
fi
# bin files
if [ -d /usr/local/bin ]; then
install -m 0755 -o root -g root $TMP_HOOKS_PATH/bin/* /usr/local/bin
fi
fi
# be sure to always exit true
true
%files
%doc LICENSE
%doc README.md
%doc AUTHORS
%doc ChangeLog
%{python_sitelib}/tripleo_image_elements*
%{_datadir}/tripleo-image-elements
%changelog
* Tue Oct 28 2014 James Slagle <jslagle@redhat.com> 0.8.10-8
- Increase rabbitmq timeout
- Copy static files for packaged installs
- Make 101-tuskar-ui re-runnable
* Tue Oct 28 2014 James Slagle <jslagle@redhat.com> 0.8.10-7
- Add Requires on diskimage-builder so the %post script works
* Mon Oct 27 2014 James Slagle <jslagle@redhat.com> 0.8.10-6
- Update patches
* Fri Oct 24 2014 James Slagle <jslagle@redhat.com> 0.8.10-5
- Combine policy installs into one operation
- Update %post
* Thu Oct 23 2014 James Slagle <jslagle@redhat.com> 0.8.10-4
- Update %post script
* Thu Oct 23 2014 James Slagle <jslagle@redhat.com> 0.8.10-3
- Simplify keepalived custom policy
* Tue Oct 21 2014 James Slagle <jslagle@redhat.com> 0.8.10-2
- Make rdo-release install safe
* Mon Oct 20 2014 James Slagle <jslagle@redhat.com> 0.8.10-1
- Update to upstream 0.8.10
* Fri Oct 17 2014 James Slagle <jslagle@redhat.com> 0.8.9-5
- Make sure 100-tuskar-api is +x
* Fri Oct 17 2014 James Slagle <jslagle@redhat.com> 0.8.9-4
- Add package install support for tuskar-ui
- Add package install support for tuskar
* Fri Oct 17 2014 James Slagle <jslagle@redhat.com> 0.8.9-3
- Ensure neutron rootwrap.d symlink is not nested
- SELinux: Fix /mnt/state/var/log/keepalived context
- SELinux: Update keepalived custom policy
* Wed Oct 15 2014 James Slagle <jslagle@redhat.com> 0.8.9-2
- Add ability to enable debug logging on seed
- Support Debian distro for iptables
- Fix os-svc-install
- SELinux: swift denied access to /var/lib/swift/.local
- SELinux: Fix keepalived killall denials
- Remove all first-boot.d references
- Associate default images to storage roles
- Load the storage roles in Tuskar if they exist
- Configure logging for keepalived
- Configures novnc proxy to listen on local-ipv4
- Correct slo middleware position swift proxy-server pipeline
* Mon Oct 13 2014 James Slagle <jslagle@redhat.com> 0.8.9-1
- Update to upstream 0.8.9
* Tue Oct 07 2014 James Slagle <jslagle@redhat.com> 0.8.8-3
- Merge pull request #1 from rwsu/swift-ports
- Associate default images to storage roles
* Tue Oct 07 2014 James Slagle <jslagle@redhat.com> 0.8.8-2
- Associate default images to storage roles
- Load the storage roles in Tuskar if they exist
- Use --resource-registry parameter
* Wed Oct 01 2014 James Slagle <jslagle@redhat.com> 0.8.8-1
- Update to upstream 0.8.8
* Mon Sep 29 2014 James Slagle <jslagle@redhat.com> 0.8.7-1
- Update to upstream 0.8.7
* Mon Sep 15 2014 James Slagle <jslagle@redhat.com> 0.7.6-1
- Update to upstream 0.7.6
* Thu Sep 4 2014 James Slagle <jslagle@redhat.com> - 0.6.5-8
- Add %post script to update files from the element manifest
* Tue Jul 1 2014 James Slagle <jslagle@redhat.com> - 0.6.5-7
- Bump release
* Tue Jul 1 2014 James Slagle <jslagle@redhat.com> - 0.6.5-6
- Add patch Move-rabbitmq-server-cluster-port.patch
* Thu Jun 26 2014 James Slagle <jslagle@redhat.com> - 0.6.5-5
- Add 3 new SELinux patches
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri Apr 25 2014 James Slagle <jslagle@redhat.com> - 0.6.5-3
- Update patch Allow-install-mariadb-from-RDO-repository.patch
since mariadb-galera-devel is no longer available, it's just plain
mariadb-devel
- Make files from swift selinux patch +x
* Wed Apr 23 2014 James Slagle <jslagle@redhat.com> - 0.6.5-2
- Add patch Make-innodb-pool-size-configurable.patch
* Mon Apr 14 2014 James Slagle <jslagle@redhat.com> - 0.6.5-1
- Bump to 0.6.5 release, update patches
* Thu Apr 10 2014 James Slagle <jslagle@redhat.com> - 0.6.3-8
- Add patch for swift SELinux policies
- Add patch for mariadb-galera installs
* Thu Apr 03 2014 James Slagle <jslagle@redhat.com> - 0.6.3-7
- Add +x to newly added files from patches
* Thu Apr 03 2014 James Slagle <jslagle@redhat.com> - 0.6.3-6
- Add patches for improved SELinux support.
* Thu Mar 27 2014 James Slagle <jslagle@redhat.com> - 0.6.3-5
- Add patch for cinder.conf
* Wed Mar 26 2014 James Slagle <jslagle@redhat.com> - 0.6.3-4
- Fix 0002-Fix-tgt-target-in-cinder-element.patch, which was misgenerated
before
* Tue Mar 25 2014 James Slagle <jslagle@redhat.com> - 0.6.3-3
- Add additional patches for some needed workarounds.
* Sun Mar 23 2014 James Slagle <jslagle@redhat.com> - 0.6.3-2
- Add Patch 0008-Add-missing-x.patch
- Add Patch 0009-Create-and-use-libvirtd-group-for-package-install.patch
* Fri Mar 21 2014 James Slagle <jslagle@redhat.com> - 0.6.3-1
- Rebase onto 0.6.3
* Tue Mar 18 2014 James Slagle <jslagle@redhat.com> - 0.6.0-4
- Add patch 0018-Remove-mostly-empty-directories.patch
* Tue Mar 11 2014 James Slagle <jslagle@redhat.com> - 0.6.0-3
- Update based on review feedback
- Added patch 0017-Add-missing-x.patch
* Mon Feb 24 2014 James Slagle <jslagle@redhat.com> - 0.6.0-2
- Add patches for swift package support.
* Thu Feb 20 2014 James Slagle <jslagle@redhat.com> - 0.6.0-1
- Update to 0.6.0 upstream release.
* Mon Feb 17 2014 James Slagle <jslagle@redhat.com> - 0.5.1-1
- Initial rpm build.