forked from theforeman/foreman-installer-staypuft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
foreman-installer-staypuft.spec
404 lines (332 loc) · 17.6 KB
/
foreman-installer-staypuft.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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
# We don't want to use SCL since we are missing some dependencies
# in SCL and we still support 1.8 for installer
%global scl_ruby /usr/bin/ruby
# set and uncomment all three to set alpha tag
#global alphatag RC1
#global dotalphatag .%{alphatag}
#global dashalphatag -%{alphatag}
Name: foreman-installer-staypuft
Epoch: 1
Version: 0.5.5
Release: 1%{?dotalphatag}%{?dist}
Summary: Foreman-installer plugin that allows you to install staypuft
Group: Applications/System
License: GPLv3+ and ASL 2.0
URL: http://theforeman.org
Source0: %{name}-%{version}%{?dashalphatag}.tar.gz
BuildArch: noarch
Requires: foreman-installer >= 1.5.0
Requires: ntp
Requires: rubygem-kafo >= 0.6.4
Requires: rubygem-foreman_api >= 0.1.4
Requires: git
Requires: %{name}-client = %{epoch}:%{version}-%{release}
%if 0%{?fedora} > 18 || 0%{?rhel} > 6
Requires: %{?scl_prefix}ruby(release)
Requires: iptables-services
%else
Requires: %{?scl_prefix}ruby(abi)
%endif
%description
This is a Foreman-installer plugins that allows you to install and configure
staypuft foreman plugin
%package client
Summary: A staypuft client installer which registers a host in staypuft
BuildArch: noarch
Requires: foreman-installer >= 1.5.0
Requires: rubygem-kafo >= 0.6.0
%if 0%{?fedora} > 18 || 0%{?rhel} > 6
Requires: %{?scl_prefix}ruby(release)
%else
Requires: %{?scl_prefix}ruby(abi)
%endif
%description client
This package installs subset of foreman-installer-staypuft files so it can
be used only for registering a new client to staypuft instance.
%prep
%setup -q -n %{name}-%{version}%{?dashalphatag}
%build
#replace shebangs for SCL
%if %{?scl:1}%{!?scl:0}
sed -ri '1sX(/usr/bin/ruby|/usr/bin/env ruby)X%{scl_ruby}X' bin/staypuft-installer
%endif
%install
install -d -m0755 %{buildroot}%{_datadir}/foreman-installer
cp -R hooks modules %{buildroot}%{_datadir}/foreman-installer
install -d -m0755 %{buildroot}%{_sbindir}
cp bin/staypuft-installer %{buildroot}%{_sbindir}/staypuft-installer
cp bin/staypuft-client-installer %{buildroot}%{_sbindir}/staypuft-client-installer
install -d -m0755 %{buildroot}%{_bindir}
install -d -m0755 %{buildroot}%{_sysconfdir}/foreman/
cp config/staypuft-client-installer.yaml %{buildroot}%{_sysconfdir}/foreman/staypuft-client-installer.yaml
cp config/staypuft-installer.yaml %{buildroot}%{_sysconfdir}/foreman/staypuft-installer.yaml
cp config/staypuft-installer.answers.yaml %{buildroot}%{_sysconfdir}/foreman/staypuft-installer.answers.yaml
%files
%defattr(-,root,root,-)
%doc LICENSE
%{_datadir}/foreman-installer/hooks/boot/10-add_options.rb
%{_datadir}/foreman-installer/hooks/lib/base_seeder.rb
%{_datadir}/foreman-installer/hooks/lib/foreman.rb
%attr(755, root, root) %{_datadir}/foreman-installer/hooks/lib/install_modules.sh
%{_datadir}/foreman-installer/hooks/lib/authentication_wizard.rb
%{_datadir}/foreman-installer/hooks/lib/base_wizard.rb
%{_datadir}/foreman-installer/hooks/lib/provisioning_seeder.rb
%{_datadir}/foreman-installer/hooks/lib/provisioning_wizard.rb
%{_datadir}/foreman-installer/hooks/lib/subscription_seeder.rb
%{_datadir}/foreman-installer/hooks/post/10-setup_provisioning.rb
%{_datadir}/foreman-installer/hooks/pre_validations/10-gather_and_set_staypuft_values.rb
%{_datadir}/foreman-installer/hooks/pre_values/10-register_staypuft_modules.rb
%{_datadir}/foreman-installer/modules/firewall
%{_datadir}/foreman-installer/modules/network
%{_datadir}/foreman-installer/modules/ssh_keygen
%{_datadir}/foreman-installer/modules/sshkeypair
%{_datadir}/foreman-installer/modules/foreman/manifests/plugin/staypuft.pp
%{_datadir}/foreman-installer/modules/foreman/manifests/plugin/staypuft_client.pp
%{_datadir}/foreman-installer/modules/foreman/manifests/plugin/staypuft_network.pp
%{_datadir}/foreman-installer/modules/foreman/manifests/puppet/agent/service.pp
%config %attr(600, root, root) %{_sysconfdir}/foreman/staypuft-installer.yaml
%config(noreplace) %attr(600, root, root) %{_sysconfdir}/foreman/staypuft-installer.answers.yaml
%{_sbindir}/staypuft-installer
%files client
%doc LICENSE
%{_datadir}/foreman-installer/hooks/boot/10-add_client_options.rb
%{_datadir}/foreman-installer/hooks/post/10-register_in_staypuft.rb
%{_datadir}/foreman-installer/modules/foreman/manifests/plugin/staypuft_client.pp
%config %attr(600, root, root) %{_sysconfdir}/foreman/staypuft-client-installer.yaml
%{_sbindir}/staypuft-client-installer
%changelog
* Thu Jan 08 2015 Brad P. Crochet <[email protected]> 0.5.5-1
- BZ #1173634 - deployment runs without completing/failing ([email protected])
* Tue Dec 16 2014 Brad P. Crochet <[email protected]> 0.5.4-1
- BZ #1174837: Fix tenant subnet check ([email protected])
* Fri Dec 12 2014 Brad P. Crochet <[email protected]> 0.5.3-1
- require iptables-services on EL7 ([email protected])
- BZ #1173634: deployment runs without completing/failing ([email protected])
- BZ #1148947: Make kickstart template consistent with disk layout
- BZ #1152543: 2 of 2 - use only autodetection for 'Foreman URL'
- BZ #1152543: 1 of 2 - fix error message printing ([email protected])
- BZ #1172851: include rh common channel by default ([email protected])
* Tue Dec 09 2014 Brad P. Crochet <[email protected]> 0.5.2-1
- Add rhel 7 and fix section label ([email protected])
- the installer repo is required for client installation ([email protected])
- BZ #1169980: Disable firewalld before setting up iptables ([email protected])
* Wed Nov 26 2014 Brad P. Crochet <[email protected]> 0.5.1-1
- BZ #1151274: Add support for setting MTU on tenant network ([email protected])
- BZ#1167880 puppet error "Could not find class quickstack::openstack_common"
- Remove manual host registration ([email protected])
- should say to install client on the remote host ([email protected])
* Wed Nov 19 2014 Brad P. Crochet <[email protected]> 0.5.0-2
- Add epoch to client requires line ([email protected])
- Update spec to have main package depend on client package ([email protected])
* Tue Nov 18 2014 Brad P. Crochet <[email protected]> 0.5.0-1
- move to OSP 6 ([email protected])
- BZ #1162794: Properly configure bond interfaces with vlans ([email protected])
- Remove EPEL repo from RHEL ([email protected])
- BZ #1158680: Let primary interface participate in bonds ([email protected])
- BZ #1129521: Unconfigured interfaces should be ONBOOT=no ([email protected])
- Correct the config when a bond and vlan are used together ([email protected])
- BZ #1157819: Set DEFROUTE=no on all interfaces by default ([email protected])
- Revert "bz#1152516 don't autostart networking in discovery image"
- Workaround for http://projects.theforeman.org/issues/7975 ([email protected])
- Wait for certificate to allow manual signing ([email protected])
- Fail the installer if the registration puppet run fails ([email protected])
- Wait for client registration to finish ([email protected])
- Remove puppetmaster param from staypuft_client.pp ([email protected])
- Set staypuft_ssh_public_key as a host parameter ([email protected])
- Rename param to staypuft_ssh_public_key for consistency ([email protected])
- Make the RPM installable on RHEL 7 ([email protected])
- Pass settings as string when using Foreman > 1.6 ([email protected])
- Fix a syntax error ([email protected])
- Remove get_ready implementation from ProvisioningWizard ([email protected])
- no-daemonize puppetssh commmand ([email protected])
- Add staypuft-client-installer ([email protected])
- bz#1152516 don't autostart networking in discovery image ([email protected])
* Wed Oct 15 2014 Brad P. Crochet <[email protected]> 0.4.4-1
- BZ #1148746: Assign DEFROUTE to vlan or bond ([email protected])
* Thu Oct 09 2014 Brad P. Crochet <[email protected]> 0.4.3-1
- Add staypuft-register-host command ([email protected])
- Add custom repositories snippet ([email protected])
- BZ#1147577: Add biosboot partition in case GPT disk label ([email protected])
* Wed Oct 08 2014 Brad P. Crochet <[email protected]> 0.4.2-1
- Merge pull request #95 from ares/bonding ([email protected])
- Merge pull request #99 from mburns72h/bz1148435 ([email protected])
- rhbz#1148435 use single quotes for passwords ([email protected])
- Remove 'service network restart' from network config snippet
- Update readme ([email protected])
- Configure gateway if bootmode is static ([email protected])
- Install provisioning template that configures bonds ([email protected])
- Add local RPM building instructions to readme ([email protected])
* Tue Sep 23 2014 Marek Hulan <[email protected]> 0.4.1-1
- Fix whitespace in condition ([email protected])
- BZ#1142182 - provisioned hosts have wrong timezone ([email protected])
- Fix possible renaming issue ([email protected])
- Refs BZ#1142295 - Configure DEFROUTE according to subnet assignment
* Fri Sep 19 2014 Marek Hulan <[email protected]> 0.4.0-1
- Add firewall as hard dependency ([email protected])
- Fix BZ#1142211 - NM changed fqdn in %%post ([email protected])
* Mon Sep 15 2014 Marek Hulan <[email protected]> 0.3.5-1
- disable biosdevname for discovery image ([email protected])
- rhbz#1140741 sub-man pool is recommended ([email protected])
- rhbz#1140057 don't run auto-attach if pool is specified ([email protected])
- Update docs regarding discovery images ([email protected])
* Thu Sep 04 2014 Marek Hulan <[email protected]> 0.3.4-1
- Primary network is has always DHCP boot mode ([email protected])
- BZ#1134610 - multiple repos in subscription_manager_repos ([email protected])
- Install modules from git on CentOS ([email protected])
- Modify kickstart templates to configure networking ([email protected])
- BZ#1127196 - ask for password confirmation ([email protected])
- Update readme ([email protected])
* Mon Aug 25 2014 Marek Hulan <[email protected]> 0.3.3-1
- fix syntax from last fix ([email protected])
* Fri Aug 22 2014 Marek Hulan <[email protected]> 0.3.2-1
- Create config templates even if they are missing ([email protected])
- Adds support for CentOS 7 ([email protected])
* Thu Aug 21 2014 Marek Hulan <[email protected]> 0.3.1-1
- Default ssh key value is empty string, nil causes problems
* Wed Aug 20 2014 Marek Hulan <[email protected]> 0.3.0-1
- Print correct admin password on Foreman 1.6+ ([email protected])
- Fix settings values to be strings ([email protected])
* Mon Aug 18 2014 Marek Hulan <[email protected]> 0.2.0-1
- bz 1126982, adding biosdevname=0 to kernel params to make sure nics are named
consistently ([email protected])
* Wed Aug 13 2014 Marek Hulan <[email protected]> 0.1.10-1
- Fix BZ#1127202 - toggle password visibility ([email protected])
- adding a new default ptable so we do not use autopart ([email protected])
- Ref BZ#1127752 - disable IP updating ([email protected])
- Fix BZ#1128679 - do not create empty parameters ([email protected])
* Fri Aug 08 2014 Marek Hulan <[email protected]> 0.1.9-1
- Add proxy options for subscription_manager ([email protected])
- Fix BZ#1127806 - set ntp-server parameter ([email protected])
* Thu Aug 07 2014 Marek Hulan <[email protected]> 0.1.8-1
- Fix BZ#1124850 - accept UDP port 68 ([email protected])
- Fix BZ#1102394 - do not enable RHEL6 ([email protected])
- Fix BZ#1124806 - remove Foreman from provisioning question
- Fix BZ#1124810 - sort interfaces by name ([email protected])
- BZ#1124545 - Write the values for skipping repo and subman ([email protected])
- BZ#1125075 - Ensure firewalld is removed during kickstart
- use correct default gateway on controller ([email protected])
- BZ#1124598 - provisioning+external network default gateway conflict
- add dhcp port to the default firewall ([email protected])
- ensure we only get one interface name for PROVISION_IFACE ([email protected])
- set PEERDNS=no on all but provision iface ([email protected])
- disable NetworkManager and enable network by default ([email protected])
* Fri Jul 25 2014 Marek Hulan <[email protected]> 0.1.7-1
- don't require 100GB for root filesystem ([email protected])
* Thu Jul 24 2014 Marek Hulan <[email protected]> 0.1.6-1
- removing the dependancy on #Dynamic from the ptable. ([email protected])
* Thu Jul 24 2014 Marek Hulan <[email protected]> 0.1.5-1
- Fixes BZ#1121411 - use correct NIC names ([email protected])
- Support random generated password ([email protected])
* Tue Jul 22 2014 Marek Hulan <[email protected]> 0.1.4-1
- set ONBOOT=yes for all nics in the default kickstart template
- dynamically update the partition table that created the cinder volumes vg
* Wed Jul 16 2014 Marek Hulan <[email protected]> 0.1.2-1
- Add non-interactive mode to provisioning wizard ([email protected])
* Fri Jul 11 2014 Marek Hulan <[email protected]> 0.1.1-1
- adding lvm with cinder volumes ptable ([email protected])
- adding ntp package dependancies ([email protected])
* Thu Jul 03 2014 Marek Hulan <[email protected]> 0.1.0-1
- Remove EPEL repo from RHEL KS template ([email protected])
- We need latest kafo to fix password default values ([email protected])
- Fix BZ#1109432 - random root password ([email protected])
- Fix BZ#1114693 - don't crash on missing installation medium
- use subscription-manager instead of yum-config-manager ([email protected])
- Fixing typos ([email protected])
- add explicit ntp requirement to spec file ([email protected])
- some more re-wording changes ([email protected])
- bz#1113748 reword the help text for password/ssh key ([email protected])
- adding service resources for ntpd ([email protected])
- Fix BZ#1113537 - allow empty ssh keys ([email protected])
- moving the repo enable for redhat_register ([email protected])
* Wed Jun 25 2014 Marek Hulan <[email protected]> 0.0.25-1
- Crypts root password using sha256 ([email protected])
* Wed Jun 25 2014 Marek Hulan <[email protected]> 0.0.24-1
- Fix BZ#1103151 ([email protected])
* Tue Jun 24 2014 Marek Hulan <[email protected]> 0.0.23-1
- Fix missing resolv ([email protected])
* Tue Jun 24 2014 Marek Hulan <[email protected]> 0.0.22-1
- Fix BZ#1110438 ([email protected])
- Fix BZ#1112179 ([email protected])
- Fix BZ#1105312 ([email protected])
- Fix rhel kickstart template ([email protected])
* Mon Jun 23 2014 Marek Hulan <[email protected]> 0.0.21-1
- Add root password and ssh key wizard ([email protected])
- Fix output during interupt or cancel ([email protected])
- adding ntp sync to installation tasks ([email protected])
* Thu Jun 19 2014 Marek Hulan <[email protected]> 0.0.20-1
- Disable SCL for installer packages ([email protected])
- Fix BZ#1102952 ([email protected])
- adding firewall rules for udp dns and ssh ([email protected])
* Tue Jun 17 2014 Marek Hulan <[email protected]> 0.0.19-1
- Fix BZ#1108906 ([email protected])
- Fix network interface wizard ([email protected])
* Mon Jun 16 2014 Marek Hulan <[email protected]> 0.0.18-1
- Fix puppetmaster firewall port ([email protected])
- NFS is not supported ([email protected])
- Fix BZ#1103151 ([email protected])
- Fix BZ#1102706 ([email protected])
- Fix BZ#1105328 ([email protected])
- Fix BZ#1102394 ([email protected])
* Fri Jun 13 2014 Marek Hulan <[email protected]> 0.0.17-1
- Fix netmask for nil values ([email protected])
* Thu Jun 12 2014 Marek Hulan <[email protected]> 0.0.16-1
- Don't start configuration if installation fails ([email protected])
- Accept CIDR for netmask and convert it ([email protected])
- Ensure required ports are open ([email protected])
* Thu Jun 05 2014 Marek Hulan <[email protected]> 0.0.15-1
- Fix RHEL7 default repo ([email protected])
* Wed Jun 04 2014 Marek Hulan <[email protected]> 0.0.14-1
- On RHEL setup both 6 and 7 ([email protected])
- Support RHEL7 as a default OS for provisioning ([email protected])
- Update README.md ([email protected])
- Split logic among more hooks ([email protected])
* Tue May 20 2014 Marek Hulan <[email protected]> 0.0.13-2
- Fixes gh#4 - nonscl rpm dependencies ([email protected])
- Fix release configuration ([email protected])
* Fri May 16 2014 Marek Hulan <[email protected]> 0.0.13-1
- Fix docs ([email protected])
- Enable user authentication ([email protected])
- Add foreman_api dependency ([email protected])
- Change default koji tags ([email protected])
* Wed May 07 2014 Marek Hulan <[email protected]> 0.0.12-1
- Configure host nameservers during installation ([email protected])
* Wed May 07 2014 Marek Hulan <[email protected]> 0.0.11-1
- Minor fixes ([email protected])
* Tue May 06 2014 Marek Hulan <[email protected]> 0.0.10-1
- Fix staypuft installation ([email protected])
* Tue May 06 2014 Marek Hulan <[email protected]> 0.0.9-1
- Install staypuft package ([email protected])
- run db:seed at the end to resolve puppet import issues ([email protected])
* Mon May 05 2014 Marek Hulan <[email protected]> 0.0.8-1
- Provisioning changes ([email protected])
- Add foreman tasks mapping ([email protected])
- Change proceed string ([email protected])
- Add own installer script with own config files ([email protected])
- Do not enforce downloading discovery images ([email protected])
* Mon May 05 2014 Marek Hulan <[email protected]> 0.0.7-1
- Update redhat_register snippet template ([email protected])
* Fri May 02 2014 Marek Hulan <[email protected]> 0.0.6-1
- Better user experience ([email protected])
* Fri May 02 2014 Marek Hulan <[email protected]> 0.0.5-1
- Puppet modules installation ([email protected])
* Fri May 02 2014 Marek Hulan <[email protected]> 0.0.4-1
- Adds RHEL support ([email protected])
* Wed Apr 30 2014 Marek Hulan <[email protected]> 0.0.3-1
- Fix pxe_template discovery env issue ([email protected])
* Wed Apr 30 2014 Marek Hulan <[email protected]> 0.0.2-1
- Fix seeding and download discovery images ([email protected])
* Wed Apr 30 2014 Marek Hulan <[email protected]> 0.0.1-0
- new package built with tito