forked from cobbler/cobbler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cobbler.spec
1335 lines (1274 loc) · 68.5 KB
/
cobbler.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
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]" || echo 0)}
%define _binaries_in_noarch_packages_terminate_build 0
%global debug_package %{nil}
Summary: Boot server configurator
Name: cobbler
License: GPLv2+
AutoReq: no
Version: 2.5.0
Release: 1%{?dist}
Source0: http://shenson.fedorapeople.org/cobbler/cobbler-%{version}.tar.gz
Group: Applications/System
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
Url: http://www.cobblerd.org/
BuildRequires: redhat-rpm-config
BuildRequires: git
BuildRequires: PyYAML
BuildRequires: python-cheetah
Requires: python >= 2.3
Requires: httpd
Requires: tftp-server
Requires: mod_wsgi
Requires: createrepo
Requires: python-cheetah
Requires: python-netaddr
Requires: python-simplejson
Requires: python-urlgrabber
Requires: PyYAML
Requires: rsync
Requires: syslinux
%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6
Requires: python(abi) >= %{pyver}
Requires: genisoimage
%else
Requires: mkisofs
%endif
%if 0%{?fedora} >= 8
BuildRequires: python-setuptools-devel
%else
BuildRequires: python-setuptools
%endif
%if 0%{?fedora} >= 6 || 0%{?rhel} >= 5
Requires: yum-utils
%endif
%if 0%{?fedora} >= 16
BuildRequires: systemd-units
Requires(post): systemd-sysv
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
%endif
%description
Cobbler is a network install server. Cobbler supports PXE,
virtualized installs, and re-installing existing Linux machines. The
last two modes use a helper tool, 'koan', that integrates with
cobbler. There is also a web interface 'cobbler-web'. Cobbler's
advanced features include importing distributions from DVDs and rsync
mirrors, kickstart templating, integrated yum mirroring, and built-in
DHCP/DNS Management. Cobbler has a XMLRPC API for integration with
other applications.
%prep
%setup -q
%build
%{__python} setup.py build
%install
test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --optimize=1 --root=$RPM_BUILD_ROOT $PREFIX
mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d
mv config/cobbler.conf $RPM_BUILD_ROOT/etc/httpd/conf.d/
mv config/cobbler_web.conf $RPM_BUILD_ROOT/etc/httpd/conf.d/
mkdir -p $RPM_BUILD_ROOT/var/spool/koan
%if 0%{?fedora} >= 9 || 0%{?rhel} > 5
mkdir -p $RPM_BUILD_ROOT/var/lib/tftpboot/images
%else
mkdir -p $RPM_BUILD_ROOT/tftpboot/images
%endif
rm -f $RPM_BUILD_ROOT/etc/cobbler/cobblerd
%if 0%{?fedora} >= 16
rm -rf $RPM_BUILD_ROOT/etc/init.d
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
install -m0644 config/cobblerd.service $RPM_BUILD_ROOT%{_unitdir}
%post
if [ $1 -eq 1 ] ; then
# Initial installation
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
elif [ "$1" -ge "2" ]; then
# backup config
if [ -e /var/lib/cobbler/distros ]; then
cp /var/lib/cobbler/distros* /var/lib/cobbler/backup 2>/dev/null
cp /var/lib/cobbler/profiles* /var/lib/cobbler/backup 2>/dev/null
cp /var/lib/cobbler/systems* /var/lib/cobbler/backup 2>/dev/null
cp /var/lib/cobbler/repos* /var/lib/cobbler/backup 2>/dev/null
cp /var/lib/cobbler/networks* /var/lib/cobbler/backup 2>/dev/null
fi
if [ -e /var/lib/cobbler/config ]; then
cp -a /var/lib/cobbler/config /var/lib/cobbler/backup 2>/dev/null
fi
# upgrade older installs
# move power and pxe-templates from /etc/cobbler, backup new templates to *.rpmnew
for n in power pxe; do
rm -f /etc/cobbler/$n*.rpmnew
find /etc/cobbler -maxdepth 1 -name "$n*" -type f | while read f; do
newf=/etc/cobbler/$n/`basename $f`
[ -e $newf ] && mv $newf $newf.rpmnew
mv $f $newf
done
done
# upgrade older installs
# copy kickstarts from /etc/cobbler to /var/lib/cobbler/kickstarts
rm -f /etc/cobbler/*.ks.rpmnew
find /etc/cobbler -maxdepth 1 -name "*.ks" -type f | while read f; do
newf=/var/lib/cobbler/kickstarts/`basename $f`
[ -e $newf ] && mv $newf $newf.rpmnew
cp $f $newf
done
/bin/systemctl try-restart cobblerd.service >/dev/null 2>&1 || :
fi
%preun
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
/bin/systemctl --no-reload disable cobblerd.service > /dev/null 2>&1 || :
/bin/systemctl stop cobblerd.service > /dev/null 2>&1 || :
fi
%postun
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
/bin/systemctl try-restart cobblerd.service >/dev/null 2>&1 || :
fi
%triggerun -- cobbler < 2.0.11-3
# Save the current service runlevel info
# User must manually run systemd-sysv-convert --apply cobblerd
# to migrate them to systemd targets
/usr/bin/systemd-sysv-convert --save cobblerd >/dev/null 2>&1 ||:
# Run these because the SysV package being removed won't do them
/sbin/chkconfig --del cobblerd >/dev/null 2>&1 || :
/bin/systemctl try-restart cobblerd.service >/dev/null 2>&1 || :
%else
%post
if [ "$1" = "1" ];
then
# This happens upon initial install. Upgrades will follow the next else
/sbin/chkconfig --add cobblerd
elif [ "$1" -ge "2" ];
then
# backup config
if [ -e /var/lib/cobbler/distros ]; then
cp /var/lib/cobbler/distros* /var/lib/cobbler/backup 2>/dev/null
cp /var/lib/cobbler/profiles* /var/lib/cobbler/backup 2>/dev/null
cp /var/lib/cobbler/systems* /var/lib/cobbler/backup 2>/dev/null
cp /var/lib/cobbler/repos* /var/lib/cobbler/backup 2>/dev/null
cp /var/lib/cobbler/networks* /var/lib/cobbler/backup 2>/dev/null
fi
if [ -e /var/lib/cobbler/config ]; then
cp -a /var/lib/cobbler/config /var/lib/cobbler/backup 2>/dev/null
fi
# upgrade older installs
# move power and pxe-templates from /etc/cobbler, backup new templates to *.rpmnew
for n in power pxe; do
rm -f /etc/cobbler/$n*.rpmnew
find /etc/cobbler -maxdepth 1 -name "$n*" -type f | while read f; do
newf=/etc/cobbler/$n/`basename $f`
[ -e $newf ] && mv $newf $newf.rpmnew
mv $f $newf
done
done
# upgrade older installs
# copy kickstarts from /etc/cobbler to /var/lib/cobbler/kickstarts
rm -f /etc/cobbler/*.ks.rpmnew
find /etc/cobbler -maxdepth 1 -name "*.ks" -type f | while read f; do
newf=/var/lib/cobbler/kickstarts/`basename $f`
[ -e $newf ] && mv $newf $newf.rpmnew
cp $f $newf
done
# reserialize and restart
# FIXIT: ?????
#/usr/bin/cobbler reserialize
/sbin/service cobblerd condrestart
fi
%preun
if [ $1 = 0 ]; then
/sbin/service cobblerd stop >/dev/null 2>&1 || :
chkconfig --del cobblerd || :
fi
%postun
if [ "$1" -ge "1" ]; then
/sbin/service cobblerd condrestart >/dev/null 2>&1 || :
/sbin/service httpd condrestart >/dev/null 2>&1 || :
fi
%endif
%clean
test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/cobbler
%{_bindir}/cobbler-ext-nodes
%{_bindir}/cobblerd
%{_sbindir}/tftpd.py*
%config(noreplace) %{_sysconfdir}/cobbler
%if 0%{?fedora} >= 16
%{_unitdir}/cobblerd.service
%else
/etc/init.d/cobblerd
%endif
%{python_sitelib}/cobbler
%config(noreplace) /var/lib/cobbler
%exclude /var/lib/cobbler/webui_sessions
/var/log/cobbler
/var/www/cobbler
%{_mandir}/man1/cobbler.1.gz
%config(noreplace) /etc/httpd/conf.d/cobbler.conf
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 5
%exclude %{python_sitelib}/cobbler/sub_process.py*
%endif
%if 0%{?fedora} >= 9 || 0%{?rhel} > 5
%{python_sitelib}/cobbler*.egg-info
/var/lib/tftpboot/images
%else
/tftpboot/images
%endif
%doc AUTHORS CHANGELOG README COPYING
%package -n koan
Summary: Helper tool that performs cobbler orders on remote machines
Group: Applications/System
Requires: python >= 2.0
%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6
Requires: python(abi) >= %{pyver}
Requires: python-simplejson
Requires: virt-install
%endif
%description -n koan
Koan stands for kickstart-over-a-network and allows for both
network installation of new virtualized guests and reinstallation
of an existing system. For use with a boot-server configured with Cobbler
%files -n koan
%defattr(-,root,root,-)
%dir /var/spool/koan
%dir /var/lib/koan/config
%{_bindir}/koan
%{_bindir}/ovz-install
%{_bindir}/cobbler-register
%{python_sitelib}/koan
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 5
%exclude %{python_sitelib}/koan/sub_process.py*
%exclude %{python_sitelib}/koan/opt_parse.py*
%exclude %{python_sitelib}/koan/text_wrap.py*
%endif
%{_mandir}/man1/koan.1.gz
%{_mandir}/man1/cobbler-register.1.gz
%dir /var/log/koan
%doc AUTHORS COPYING CHANGELOG README
%package -n cobbler-web
Summary: Web interface for Cobbler
Group: Applications/System
Requires: cobbler
Requires: Django >= 1.1.2
Requires: mod_wsgi
%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6
Requires: python(abi) >= %{pyver}
%endif
%description -n cobbler-web
Web interface for Cobbler that allows visiting
http://server/cobbler_web to configure the install server.
%post -n cobbler-web
# Change the SECRET_KEY option in the Django settings.py file
# required for security reasons, should be unique on all systems
RAND_SECRET=$(openssl rand -base64 40 | sed 's/\//\\\//g')
sed -i -e "s/SECRET_KEY = ''/SECRET_KEY = \'$RAND_SECRET\'/" /usr/share/cobbler/web/settings.py
%files -n cobbler-web
%defattr(-,root,root,-)
%doc AUTHORS COPYING CHANGELOG README
%config(noreplace) /etc/httpd/conf.d/cobbler_web.conf
%defattr(-,apache,apache,-)
/usr/share/cobbler/web
%dir %attr(700,apache,root) /var/lib/cobbler/webui_sessions
/var/www/cobbler_webui_content/
%changelog
* Wed Oct 05 2011 Scott Henson <[email protected]> 2.2.1-1
- Import changes for systemd from the fedora spec file ([email protected])
* Wed Oct 05 2011 Scott Henson <[email protected]> 2.2.0-1
- Remove the version ([email protected])
- New upstream 2.2.0 release ([email protected])
- Add networking snippet for SuSE systems. ([email protected])
- Add a /etc/hosts snippet for SuSE systems. ([email protected])
- Add a proxy snippet for SuSE systems. ([email protected])
- Buildiso: make use of the proxy field (SuSE, Debian/Ubuntu).
- Rename buildiso.header to buildiso.template for consistency. Also restore the
local LABEL in the template. ([email protected])
- Bugfix: uppercase macaddresses used in buildiso netdevice= keyword cause the
autoyast installer to not setup the network and thus fail.
- Buildiso: minor cleanup diff. ([email protected])
- Buildiso: behaviour changed after feedback from the community.
- Build standalone ISO from the webinterface. ([email protected])
- Fix standalone ISO building for SuSE, Debian and Ubuntu.
- add proxy field to field_info.py ([email protected])
- Remove FreeBSD from the unix breed as it has it's own now. Also, add freebsd7
as it is supported until feb 2013. Minor version numbers don't make sense,
also removed. ([email protected])
- Add a proxy field to profile and system objects. This is useful for
environments where systems are not allowed to make direct connections to the
cobbler/repo servers. ([email protected])
- Introduce a "status" field to system objects. Useful in environments where
DTAP is required, the possible values for this field are: development,
testing, acceptance, production ([email protected])
- Buildiso: only process profiles for selected systems. ([email protected])
- Buildiso: add batch action to build an iso for selected profiles.
- Buildiso: use management interface feature. ([email protected])
- Buildiso: get rid of some code duplication (ISO header).
- Buildiso: add interface to macaddr resolution. ([email protected])
- Buildiso: add Debian and Ubuntu support. ([email protected])
- Buildiso: select systems from the webinterface. ([email protected])
- Fix an exception when buildiso is called from the webinterface.
- fix power_virsh template to check dom status before executing command.
- if hostname is not resolvable do not fail and use that hostname
- Removed action_import module and references to it in code to prevent future
confusion. ([email protected])
- Fixing redirects after a failed token validation. You should now be
redirected back to the page you were viewing after having to log back in due
to a forced login. ([email protected])
- Use port to access cobbler ([email protected])
- Stripping "g" from vgs output case-insensitive runs faster
- Adding ability to create new sub-directories when saving snippets. Addresses
trac #634 - save new snippet fails on non existing subdir ([email protected])
- Fix traceback when executing "cobbler system reboot" with no system name
specified Trac ticket #578 - missing check for name option with system reboot
- bind zone template writing ([email protected])
- Removing the duplicate lines from importing re module ([email protected])
- Merge remote-tracking branch 'jimi1283/bridge-interface' ([email protected])
- Modification to allow DEPRECATED options to be added as options to optparse
so they work as aliases ([email protected])
- Re-adding the ability to generate a random mac from the webui. Trac #543
(Generate random mac missing from 2.x webui) ([email protected])
- Merge remote-tracking branch 'jsabo/fbsdreplication' ([email protected])
- Tim Verhoeven <[email protected]> (Tue. 08:35) (Cobbler attachment)
Subject: [PATCH] Add support to koan to select type of network device to
emulate To: cobbler development list <[email protected]>
Date: Tue, 2 Aug 2011 14:35:21 +0200 ([email protected])
- Hello, ([email protected])
- scm_track: Add --all to git add options to handle deletions ([email protected])
- Moved HEADER heredoc from action_buildiso.py to
/etc/cobbler/iso/buildiso.header ([email protected])
- Enable replication for FreeBSD ([email protected])
- Merge branch 'master' into bridge-interface ([email protected])
- Remove json settings from local_get_cobbler_xmlrpc_url() ([email protected])
- 1) Moving --subnet field to --netmask 2) Created DEPRECATED_FIELDS structure
in field_info.py to deal with moves like this * also applies to the
bonding->interface_type move for bridged interface support ([email protected])
- Merge remote-tracking branch 'jimi1283/bridge-interface' ([email protected])
- Fixing up some serializer module stuff: * detecting module load errors when
trying to deserialize collections * added a what() function to all the
serializer modules for ID purposes * error detection for mongo stuff,
including pymongo import problems as well as connection issues
- Cleanup of bonding stuff in all files, including webui and koan. Additional
cleanup in the network config scripts, and re-added the modprobe.conf
renaming code to the post install network config. ([email protected])
- Initial rework to allow bridge/bridge slave interfaces Added static route
configuration to pre_install_network_config Major cleanup/reworking of
post_install_network_config script ([email protected])
- Fix for bad commit of some json settings test ([email protected])
- Merge remote-tracking branch 'jsabo/fbsdimport' ([email protected])
- Adding initial support for FreeBSD media importing ([email protected])
- Setting TIME_ZONE to None in web/settings.py causes a 500 error on a RHEL5
system with python 2.4 and django 1.1. Commenting out the config line has the
same effect as setting it to None, and prevents the 500. ([email protected])
- Fixes for importing RHEL6: * path_tail() was previously moved to utils, a
couple places in the import modules still used self.path_tail instead
of utils.path_tail, causing a stack dump * Fixed an issue in
utils.path_tail(), which was using self. still from when it was a member
of the import class * When mirror name was set on import and using
--available-as, it was appending a lot of junk instead of just using the
specified mirror name ([email protected])
- Merge branch 'master' of git://git.fedorahosted.org/cobbler ([email protected])
- Fix a quick error ([email protected])
- Set the tftpboot dir for rhel6 hosts ([email protected])
- Fixed a typo ([email protected])
- Added an extra field in the system/interface item. The field is called
"management" and should be used to identify the management interface, this
could be useful information for multihomed systems. ([email protected])
- In the event log view the data/time field got wrapped which is very annoying.
Fast fix for now, i'm pretty sure there are better ways to do this.
- Event log soring on date reverted, let's sort on id instead. Reverse over
events in the template. Convert gmtime in the template to localtime.
- Sort the event log by date/time ([email protected])
- Remove some unsupported OS versions from codes.py ([email protected])
- Some changes in the generate_netboot_iso function/code: - Users had to supply
all system names on the commandline which they wanted to include in the ISO
boot menu. This patch changes that behaviour; all systems are included by
default now. You can still provide an override with the --systems parameter,
thus making this feature more consistent with what one might expect from
reading the help. - While at it I tried to make the code more readable and
removed some unneeded iterations. - Prevent some unneeded kernel/initrd
copies. - You can now override ip/netmask/gateway/dns parameters with
corresponding kernel_options. - Fixed a bug for SuSE systems where ksdevice
should be netdevice. - If no ksdevice/netdevice (or equivalent) has been
supplied via kernel_options try to guess the proper interface to use, but
don't just use one if we can't be sure about it (e.g. for multihomed
systems). ([email protected])
- Add SLES 11 to codes.py ([email protected])
- Add support for Fedora15 to codes.py ([email protected])
- Django uses the timezone information from web/settings.py Changing the
hardcoded value to None forces Django to use the systems timezone instead of
this hardcoded value ([email protected])
- Fix cobbler replication for non-RHEL hosts. The slicing used in the
link_distro function didn't work for all distros. ([email protected])
- Fix vmware esx importing. It was setting the links dir to the dir the iso was
mounted on import ([email protected])
- Merge remote-tracking branch 'jsabo/webuifun' ([email protected])
- Fix bug with esxi replication. It wasn't rsyncing the distro over if the
parentdir already existed. ([email protected])
- Merge branch 'master' of git://git.fedorahosted.org/cobbler ([email protected])
- Initial commit for mongodb backend support and adding support for settings as
json ([email protected])
- Web UI patches from Greg Swift applied ([email protected])
- whitespace fix ([email protected])
- Fix to fix to py_tftp change to sync in bootloaders
- Fixing a bug reported by Jonathan Sabo. ([email protected])
- Merge branch 'master' of git://git.fedorahosted.org/cobbler
- Revert "Jonathan Sabo <[email protected]> (June 09) (Cobbler)"
- Unmount and deactivate all software raid devices after searching for ssh keys
- Merge remote-tracking branch 'ugansert/master' ([email protected])
- Jonathan Sabo <[email protected]> (June 09) (Cobbler) Subject: [PATCH] Fix
issue with importing distro's on new cobbler box To: cobbler development list
<[email protected]> Date: Thu, 9 Jun 2011 16:17:20 -0400
- missing manage_rsync option from config/settings ([email protected])
- Remove left-over debugging log message ([email protected])
- SUSE requires the correct arch to find kernel+initrd on the inst-source
- added autoyast=... parameter to the ISO building code when breed=suse
- calculate meta data in the XML file without cheetah variables now
- render the cheetah template before passing the XML to the python XML parser
- made the pathes flexible to avoid problem on other distros than fedora/redhat
- bugfix ([email protected])
- Merge patch from stable ([email protected])
- utils: initialize main_logger only when needed ([email protected])
- During refactor, failed to move templater initialization into
write_boot_files_distro. ([email protected])
- Fixed a couple of simple typos. Made the boot_files support work (added
template support for the key, defined the img_path attribute for that
expansion) ([email protected])
- Fixes to get to the "minimally tested" level. Fixed two syntax errors in
tftpd.py, and fixed refences to api and os.path in manage_in_tftpd.py
- Rebasing commit, continued. ([email protected])
- Change the vmware stuff to use 'boot_files' as the space to set files that
need to be available to a tftp-booting process ([email protected])
- Added 'boot_files' field for 'files that need to be put into tftpboot'
- Merge conflict. ([email protected])
- Add in a default for puppet_auto_setup, thanks to Camille Meulien
<[email protected]> for finding it. ([email protected])
- Add a directory remap feature to fetchable_files processing. /foo/*=/bar/
Client requests for "/foo/baz" will be turned into requests for /bar/baz.
Target paths are evaluated against the root filesystem, not tftpboot.
Template expansion is done on "bar/baz", so that would typically more
usefully be something like /boot/*=$distro_path/boot
- Removed trailing whitespace causing git warnings ([email protected])
- Fix a bug where tftpd.py would throw if a client requested '/'.
- Allow slop in the config, not just the client. modules: don't hardcode
/tftpboot ([email protected])
- Moved footer to actually float at the bottom of the page or visible section,
whichever is further down. Unfortunately leaves a slightly larger margin pad
on there. Will have to see if it can be made cleaner ([email protected])
- Removed right padding on delete checkboxes ([email protected])
- Adjusted all the self closing tags to end eith a " />" instead of not having
a space separating them ([email protected])
- Added "add" button to the filter bit ([email protected])
- Removed "Enabled" label on checkboxes, this can be added via css as part of
the theme if people want it using :after { content: " Enabled" } Padded the
context-tip off the checkboxes so that it lines up with most of the other
context tips instead of being burring in the middle of the form
- Added bottom margin on text area so that it isn't as tight next to other form
fields ([email protected])
- Added id tags to the forms for ks templates and snippets Set some margins for
those two forms, they were a bit scrunched because they didn't have a
sectionbody fieldset and legend Removed inline formatting of input sizes on
those two pages Set the textareas in those two pages via css
- Made the tooltips get hiddent except for on hover, with a small image
displayed in their place ([email protected])
- Added a top margin to the submit/reset buttons... looks cleaner having some
space. ([email protected])
- Changed generic edit form to the following: - Made blocks into fieldsets
again, converting the h2 to a legend. I didn't mean to change this the first
time through. - Pulled up a level, removing the wrapping div, making each
fieldset contain an order list, instead of each line being an ordered list,
which was silly of me. - Since it went up a level, un-indented all of the
internal html tags 2 spaces - changed the place holder for the network
widgets to spans so that they displayed cleanly (Don't like the spans either,
but its for the javascript) In the stylesheet just changed the
div.sectionbody to ol.sectionbody ([email protected])
- Fixed closing ul->div on multiselect section. Must have missed it a few
commits ago. ([email protected])
- IE uses input styling such as borders even on checkboxes... was not intended,
so has been cleared for checkboxes ([email protected])
- This is a change to the multiselect buttons view, i didn't mean to commit
the style sheet along with the spelling check fixes, but since I did might as
well do the whole thing and then erevert it later if people dislike it
- Fixed another postition mispelling ([email protected])
- fixed typo postition should be position ([email protected])
- Returned the multiselect section to being div's, since its actually not a set
of list items, it is a single list item. Re-arranged the multiselect so that
the buttons are centered between the two sections Removed all of the line
breaks form that section Made the select box headings actually labels moved
the order of multiselect after sectionbody definition due to inheritence
- Restored select boxes to "default" styling since they are not as cleanly css-
able Made visibly selected action from Batch Actions bold, mainly so by
default Batch Action is bold. Moved text-area and multi-select sizing into
stylesheet. re-alphabetized some of the tag styles Made the default login's
text inputs centered, since everything else on that page is
- Added missing bracket from two commits ago in the stylesheet.
- Re-added the tool tips for when they exist in the edit forms and set a style
on them. Removed an extraneous line break from textareas in edit form
- Fixed javascript where I had used teh wrong quotes, thus breaking the network
interface widgets ([email protected])
- Added label and span to cleanup block ([email protected])
- Added version across all of the template loads so that the footer is
populated with it ([email protected])
- all css: - set overall default font size of 1em - added missing tags to the
cleanup css block - fixed button layout -- list line buttons are smaller font
to keep lines smaller -- set action input button's size - set indentation and
bolding of items in batch action - redid the list formatting -- removed zebra
stripes, they share the standard background now -- hover is now the
background color of the old darker zebra stripe -- selected lines now
background of the older light zebra stripe - added webkit border radius
- generic_lists.tmpl - Removed force space on the checklists generic_lists.tmpl
- Added javascript to allow for selected row highlighting
- Removed inline formatting from import.tmpl Made the context tips spans
- Made both filter-adder elements exist in the same li element
- Added default formatting for ordered lists Added formatting for the new
multiselect unordered list Changed old div definitions for the multiselect to
li Added label formatting for inside sectionbody to line up all the forms.
- Adjusted multiselect section to be an unordered list instead of a div
- Moved the close list tag inside the for loop, otherwise we generate lots of
nasty nested lists ([email protected])
- Changed edit templates to use ol instead of ul, because it apparently helps
out those using screen readers, and we should be making things accessible,
yes? ([email protected])
- Re-structured the edit templates to be unordered lists. Standardized the
tooltip/contextual data as context-tip class Redid the delete setup so that
its Delete->Really? Instead of Delete:Yes->Really? Same number of check
boxes. Setup the delete bit so that Delete and Really are labels for the
checkboxes and there isn't extraneous html input tags ([email protected])
- Added top margin on the filter adder ([email protected])
- Adjusted single action item buttons to be in the same list element, as it
makes alignment cleaner, and more sense from a grouping standpoint Set
submenubar default height to 26px Set submenubar's alignment to be as clean
as I've been able to get so far. ([email protected])
- Set background color back to original ([email protected])
- Adjusted all buttons to hover invert from blue to-blackish, the inverse of
the normal links (which go blackish to blue) but left the text color the
same. i'm not sure its as pretty, but dfinately more readable. Plus the
color change scheme is more consistant. Also made table buttons smaller than
other buttons ([email protected])
- Fixed width on paginate select boxes to auto, instead of over 200px
- Removed margin around hr tag, waste of space, and looks closer to original
now ([email protected])
- Removed extraneous body div by putting user div inside container.
- Adjuested style sheet to improve standardization of form fields, such as
buttons, text input widths, and fontsizes in buttons vs drop downs.
- Some menu re-alignment on both menubar and submenubar ([email protected])
- Got the container and the user display into a cleaner size alignment to
display on the screen. less chance of horiz scroll ([email protected])
- Fix to get login form a bit better placed without duplicate work
- pan.action not needed... .action takes care of it ([email protected])
- Removed padding on login screen ([email protected])
- Redid action and button classes to make them look like buttons.. still needs
work. Resized pointer classes to make things a bit more level on that row
- New cleanup at the top negates the need for this table entry
- Removed the body height to 99%. Was doing this for sticky footer, but
current path says its not needed ([email protected])
- Added some windows and mac default fonts Made the body relative, supposed to
help with the layout Set text color to slightly off black.. was told there is
some odd optical reasoning behind this ([email protected])
- Made class settings for the table rows a touch more specific in the css
- Added "normalization" to clean up cross browser differences at top of
style.css ([email protected])
- Added button class to all buttons, submit, and resets ([email protected])
- Fixed sectionheader to not be styled as actions... they are h2!
- Fixed container reference from class to id ([email protected])
- Added missing action class on the "Create new" links in generic_list.tmpl
- Revert part of 344969648c1ce1e753af because RHEL5's django doesn't support
that ([email protected])
- removed underline on remaing links ([email protected])
- Fixed the way the logo was placed on the page and removed the excess
background setting. ([email protected])
- Some cleanup to the style sheet along - removed fieldset since no more exist
(not sure about this in long run.... we'll see) - cleaned up default style
for ul cause it was causing override issues - got menubar and submenu bar
mostly settled ([email protected])
- Fixed submenu bar ul to be identified by id not class ([email protected])
- Rebuilt primary css stylesheet - not complete yet ([email protected])
- Removed logout from cobbler meft hand menu ([email protected])
- Next step in redoing layout: - added current logged in user and logout button
to a div element at top of page - fixed content div from class to id - added
footer (version entry doesn't work for some reason) - links to cobbler
website ([email protected])
- in generic_list.tmpl - set the edit link to class 'action' - merged the
creation of the edit action 'View kickstart' for system and profile
- Replaced tool tip as div+em with a span classed as tooltip. tooltip class
just adds italic. ([email protected])
- Fixed table header alignment to left ([email protected])
- Take the logo out of the html, making it a css element, but retain the
location and basic feel of the placement. ([email protected])
- Step one of redoing the action list, pagination and filters. - split
pagination and filters to two tmpl files - pagination can be called on its
own (so it can live in top and bottom theoretically) - filter will eventually
include pagination so its on the bottom - new submenubar includes pagination
- new submenubar does age specific actiosn as links instead of drop downs
cause there is usually 1, rarely 2, never more. ([email protected])
- Removed pagination from left hand column ([email protected])
- Removed an erroneous double quote from master.tmpl ([email protected])
- Went a bit overboard and re-adjusted whitespace in all the templates. Trying
to do the code in deep blocks across templates can be a bit tedious and
difficult to maintain. While the output is not perfect, at least the
templates are more readable. ([email protected])
- Removed remaining vestige of action menu shading feature
- Removed header shade references completely from the lists and the code from
master.tmpl ([email protected])
- Wrapped setting.tmpl error with the error class ([email protected])
- Changed h3 to h2 inside pages Made task_created's h4 into a h1 and
standarized with the other pages ([email protected])
- Standardized header with a hr tag before the form tags ([email protected])
- Added base width on the multiple select boxes, primarily for when they are
empty ([email protected])
- Removed fieldset wrappers and replaced legends with h1 and h2 depending on
depth ([email protected])
- Adjusted logic for the legent to only change one word, instead of the full
string ([email protected])
- Removed empty cell from table in generic_edit.tmpl ([email protected])
- Revert 8fed301e61f28f8eaf08e430869b5e5df6d02df0 because it was to many
different changes ([email protected])
- Removed empty cell from table in generic_edit.tmpl ([email protected])
- Moved some cobbler admin and help menus to a separate menu in the menubar
- Added HTML5 autofocus attribute to login.tmpl. Unsupported browsers just
ignores this. ([email protected])
- Re-built login.tmpl: - logo isn't a link anymore back to the same page - logo
is centered with the login form - fieldset has been removed - set a css class
for the body of the login page, unused for now. And the css: - removed the
black border from css - centered the login button as well
- Made the links and span.actions hover with the same color as used for the
section headings ([email protected])
- Removed as much in-HTML placed formatting as possible and implemented them in
css. The main bit remaining is the ul.li floats in paginate.tmpl
- Cleaned up single tag closing for several of the checkboxes
- removed a trailing forward slash that was creating an orphaned close span tag
- Relabeled cells in thead row from td tags to th ([email protected])
- Added tr wrapper inside thead of tables for markup validation
- Use :// as separator for virsh URIs ([email protected])
- Create more condensed s390 parm files ([email protected])
- Add possibility to interrupt zPXE and to enter CMS ([email protected])
- Cleanup the way that we download content - Fixes a bug where we were only
downloading grub-x86_64.efi ([email protected])
- Port this config over as well ([email protected])
- Only clear logs that exist. ([email protected])
- Pull in new configs from the obsoletes directory. ([email protected])
- Removed extraneous close row tag from events.tmpl ([email protected])
- Fixed spelling of receive in enoaccess.tmpl ([email protected])
- Added missing close tags on a few menu unordered list items in master.tmpl
- Added missing "for" correlation tag for labels in generic_edit.tmpl
- Removed extraneous close divs from generic_edit.tmpl ([email protected])
- Removing old and unused template files ([email protected])
- Add support for Ubuntu distros. ([email protected])
- Koan install tree path for Ubuntu/Debian distros. ([email protected])
- Fixing hardlink bin path. ([email protected])
- Do not fail when yum python module is not present. ([email protected])
- Add Ubuntu/Debian support to koan utils for later use. ([email protected])
- typo in autoyast xml parsing ([email protected])
- Minor change to validate a token before checking on a user. ([email protected])
- get install tree from install=... parameter for SUSE ([email protected])
- handle autoyast XML files ([email protected])
- fixed support for SUSE in build-iso process. Fixed a typo ([email protected])
- added SUSE breed to import-webui ([email protected])
- Merge remote-tracking branch 'lanky/master' ([email protected])
- Merge remote-tracking branch 'jimi1283/master' ([email protected])
- added support for suse-distro import ([email protected])
- Fix a sub_process Popen call that did not set close_fds to true. This causes
issues with sync where dhcpd keeps the XMLRPC port open and prevents cobblerd
from restarting ([email protected])
- Cleanup of unneccsary widgets in distro/profile. These needed to be removed
as part of the multiselect change. ([email protected])
- Yet another change to multiselect editing. Multiselects are now presented as
side-by-side add/delete boxes, where values can be moved back and forth and
only appear in one of the two boxes. ([email protected])
- Fix for django traceback when logging into the web interface with a bad
username and/or password ([email protected])
- Fix for snippet/kickstart editing via the web interface, where a 'tainted
file path' error was thrown ([email protected])
- added the single missed $idata.get() item ([email protected])
- updated post_install_network_config to use $idata.get(key, "") instead of
$idata[key]. This stops rendering issues with the snippet when some keys are
missing (for example after an upgrade from 2.0.X to 2.1.0, where a large
number of new keys appear to have been added.) and prevents us from having to
go through all system records and add default values for them.
- Take account of puppet_auto_setup in install_post_puppet.py
- Take account of puppet_auto_setup in install_pre_puppet.py
- Add puppet snippets to sample.ks ([email protected])
- Add puppet_auto_setup to settings file ([email protected])
- Add snippets/puppet_register_if_enabled ([email protected])
- Add snippets/puppet_install_if_enabled ([email protected])
- Add configuration of puppet pre/post modules to settings file
- Add install_post_puppet.py module ([email protected])
- Add install_pre_puppet.py module ([email protected])
- Apply a fix for importing red hat distros, thanks jsabo ([email protected])
- Changes to action/batch actions at top of generic list pages * move logic
into views, where it belongs * simplify template code * change actions/batch
actions into drop down select lists * added/modified javascript to deal with
above changes ([email protected])
- Minor fixes to cobbler.conf, since the AliasMatch was conflicting with the
WSGI script alias ([email protected])
- Initial commit for form-based login and authentication ([email protected])
- Convert webui to use WSGI instead of mod_python ([email protected])
- Save field data in the django user session so the webui doesn't save things
unnecessarily ([email protected])
- Make use of --format in git and use the short hash. Thanks Todd Zullinger
- We need git. Thanks to Luc de Louw <[email protected]> ([email protected])
- Start of the change log supplied by Michael MacDonald <[email protected]>
- Fix typo in cobbler man page entry for profile ([email protected])
- Fix cobbler man page entry for parent profile option
- Set SELinux context of host ssh keys correctly after reinstallation
- Fixing bug with img_path. It was being used prior to being set if you have
images. ([email protected])
- Add firstboot install trigger mode ([email protected])
- Fix old style shell triggers by checking for None prior to adding args to arg
list and fix indentation ([email protected])
- Bugfix: restore --no-fail functionality to CLI reposync
- Add the ability to replicate the new object types (mgmtclass,file,package).
- Add VMware ESX and ESXi replication. ([email protected])
- Add batch delete option for profiles and mgmtclasses
- Spelling fail ([email protected])
- Remove deploy as a valid direct action ([email protected])
- Trac Ticket #509: A fix that does not break everything else.
(https://fedorahosted.org/cobbler/ticket/509) ([email protected])
- Only chown the file if it does not already exist ([email protected])
- Modification to cobbler web interface, added a drop-down select box for
management classes and some new javascript to add/remove items from the
multi-select ([email protected])
- Check if the cachedir exists before we run find on it. ([email protected])
- Fix trac#574 memtest ([email protected])
- Add network config snippets for esx and esxi network configuration
$SNIPPET('network_config_esxi') renders to: ([email protected])
- Trac Ticket #510: Modified 'cobbler buildiso' to use
/var/cache/cobbler/buildiso by default. Added a /etc/cobbler/settings value
of 'buildisodir' to make it setable by the end user. --tempdir will still
overwrite either setting on the command line. ([email protected])
- Add img_path to the metadata[] so that it's rendered out in the esxi pxe
templates. Add os_version checks for esxi in kickstart_done so that it uses
wget or curl depending on what's known to be available.
- Added --sync-all option to cobbler replicate which forces all systems,
distros, profiles, repos and images to be synced without specifying each.
- Added manage_rsync option which defaults to 0. This will make cobbler not
overwrite a local rsyncd.conf unless enabled.
- Added semicolon master template's placement of the arrow in the page heading
- Quick fix from jsabo ([email protected])
- added hover line highlighting to table displays ([email protected])
- Modification to generic_edit template so that the name field is not a text
box when editing. ([email protected])
- Minor fixes for mgmt classes webui changes. - Bug when adding a new obj,
since obj is None it was causing a django stack dump - Minor tweaks to
javascript ([email protected])
- Fixed error in which the json files for mgmtclasses was not being deleted
when a mgmtclass was removed, meaning they showed back up the next time
cobblerd was restarted ([email protected])
- Fixed syntax error in clogger.py that was preventing cobblerd from starting
- Supports an additional initrd from kernel_options. ([email protected])
- Remove a bogus self ([email protected])
- Re-enable debmirror. ([email protected])
- Extending the current Wake-on-Lan support for wider distro compatibility.
Thanks to Dustin Kirkland. ([email protected])
- Dont hardcode /etc/rc.d/init.d redhatism. ([email protected])
- Newer (pxe|sys)linux's localboot value produces unreliable results when using
documented options, -1 seems to provide the best supported value
- Detect the webroot to be used based on the distro.
- If the logfile path doesn't exist, don't attempt to create the log file.
Mainly needed when cobbler is required to run inside the build env
(cobbler4j). Thanks to Dave Walker <[email protected]>
- Implement system power status API method and CLI command ([email protected])
- Update setup files to use proper apache configuration path
- Debian has www-data user for web server file access instead of apache.
- Update init script to work under debian. ([email protected])
- Use lsb_release module to detect debian distributions. Debian release is
returned as a string because it could be sid which will never have a version
number. ([email protected])
- Fix check for apache installation ([email protected])
- Handle Cheetah version with more than 3 parts ([email protected])
- Allow dlcontent to use proxy environment variables ([email protected])
- Copy memtest to $bootloc/images/. Fixes BZ#663307 ([email protected])
- Merge remote branch 'jimi1283/master' ([email protected])
- Turn the cheetah version numbers into integers while testing them so we don't
always return true ([email protected])
- Kill some whitespace ([email protected])
- Fix for bug #587 - Un-escaped '$' in snippet silently fails to render
- Fix for bug #587 - Un-escaped '$' in snippet silently fails to render
- Merge branch 'master' of git://git.fedorahosted.org/cobbler ([email protected])
- Don't use link caching in places it isn't needed ([email protected])
- Better logging on subprocess calls ([email protected])
- Fix for trac #541 - cobbler sync deletes /var/www/cobbler/pub ([email protected])
- Merged work in the import-modules branch with the debian/ubuntu modules
created by Chuck Short ([email protected])
- Merge branch 'cshort' into import-modules ([email protected])
- Finished up debian/ubuntu support for imports Tweaked redhat/vmware import
modules logging output Added rsync function to utils to get it out of each
module - still need to fix the redhat/vmware modules to actually use this
- Initial commit for the Debian import module. * tested against Debian squeeze.
- Initial commit for the Ubuntu import module. * tested against Natty which
imported successfully. ([email protected])
- tftp-hpa users for both Ubuntu Debian use /var/lib/tftpboot.
- Disable the checks that are not really valid for Ubuntu or Debian.
- Add myself to the authors file. ([email protected])
- Updates for debian/ubuntu support in import modules ([email protected])
- Fix a problem with cheetah >= 2.4.2 where the snippets were causing errors,
particularly on F14 due to its use of cheetah 2.4.3. ([email protected])
- Initial commit of the Ubuntu import module ([email protected])
- Merge remote branch 'jimi1283/import-modules' ([email protected])
- Merge remote branch 'jimi1283/master' ([email protected])
- Extended ESX/ESXi support * Fixed release detection for both ESX and ESXi *
Added support to kickstart_finder() so that the fetchable_files list gets
filled out when the distro is ESXi ([email protected])
- Fixed distro_adder() in manage_import_vmware so ESXi gets imported properly
- Initial commit for the VMWare import module * tested against esx4 update 1,
which imported successfully ([email protected])
- Minor style changes for web css * darken background slightly so the logo
doesn't look washed out * make text input boxes wider ([email protected])
- Fix for the generic_edit function for the web page. The choices field for
management classes was not being set for distros/profiles - only systems,
causing a django stack dump ([email protected])
- modify keep_ssh_host_keys snippet to use old keys during OS installation
- Merge remote branch 'jimi1283/master' ([email protected])
- Added replicate to list of DIRECT_ACTIONS, so it shows up in the --help
output ([email protected])
- Merge branch 'master' into import-modules ([email protected])
- Merge branch 'master' of git://git.fedorahosted.org/cobbler ([email protected])
- Some fixes to the manage_import_redhat module * stop using mirror_name for
path stuff - using self.path instead * fixed rsync command to use self.path
too, this should really be made a global somewhere else though
- Add synopsis entries to man page to enable whatis command
- Add "ubuntu" as detected distribution. ([email protected])
- Fix for redhat import module. Setting the kickstart file with a default
value was causing some issues later on with the kickstart_finder() function,
which assumes all new profiles don't have a kickstart file yet
- Fix for non x86 arches, bug and fix by David Robinson <[email protected]>
- Don't die when we find deltas, just don't use them ([email protected])
- Merge remote branch 'khightower/khightower/enhanced-configuration-management'
- By: Bill Peck <[email protected]> exclude initrd.addrsize as well. This
affects s390 builds ([email protected])
- Fix an issue where an item was getting handed to remove_item instead of the
name of the item. This would cause an exception further down in the stack
when .lower() was called on the object (by the call to get_item).
- Add a check to make sure system is in obj_types before removing it. Also
remove an old FIXME that this previously fixed ([email protected])
- Fix regression in 2.0.8 that dumped into pxe cfg files ([email protected])
- Initial commit of import module for redhat ([email protected])
- Merge branch 'master' of git://git.fedorahosted.org/cobbler ([email protected])