-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpulp.spec
1166 lines (1014 loc) · 48.6 KB
/
pulp.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
# Copyright (c) 2010-2012 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public
# License as published by the Free Software Foundation; either version
# 2 of the License (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or implied,
# including the implied warranties of MERCHANTABILITY,
# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
# have received a copy of GPLv2 along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%if 0%{?rhel} == 5
%define pulp_selinux 0
%else
%define pulp_selinux 1
%endif
%if %{pulp_selinux}
#SELinux
%define selinux_variants mls strict targeted
%define selinux_policyver %(sed -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp 2> /dev/null)
%define moduletype apps
%endif
# ---- Pulp Platform -----------------------------------------------------------
Name: pulp
Version: 2.3.0
Release: 0.23.beta%{?dist}
Summary: An application for managing software content
Group: Development/Languages
License: GPLv2
URL: https://fedorahosted.org/pulp/
Source0: https://fedorahosted.org/releases/p/u/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-nose
BuildRequires: rpm-python
%description
Pulp provides replication, access, and accounting for software repositories.
%prep
%setup -q
%build
for directory in agent bindings client_admin client_consumer client_lib common server
do
pushd $directory
%{__python} setup.py build
popd
done
%if %{pulp_selinux}
# SELinux Configuration
cd server/selinux/server
sed -i "s/policy_module(pulp-server,[0-9]*.[0-9]*.[0-9]*)/policy_module(pulp-server,%{version})/" pulp-server.te
./build.sh
cd -
%endif
%install
rm -rf %{buildroot}
for directory in agent bindings client_admin client_consumer client_lib common server
do
pushd $directory
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
popd
done
# Directories
mkdir -p /srv
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/admin
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/admin/conf.d
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/consumer
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/consumer/conf.d
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/server
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/server/plugins.conf.d
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/agent
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/agent/conf.d
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/vhosts80
mkdir -p %{buildroot}/%{_sysconfdir}/pki/%{name}
mkdir -p %{buildroot}/%{_sysconfdir}/pki/%{name}/consumer
mkdir -p %{buildroot}/%{_sysconfdir}/gofer/plugins
mkdir -p %{buildroot}/%{_sysconfdir}/rc.d/init.d
mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/
mkdir -p %{buildroot}/%{_usr}/lib/%{name}/
mkdir -p %{buildroot}/%{_usr}/lib/%{name}/plugins
mkdir -p %{buildroot}/%{_usr}/lib/%{name}/plugins/distributors
mkdir -p %{buildroot}/%{_usr}/lib/%{name}/plugins/importers
mkdir -p %{buildroot}/%{_usr}/lib/%{name}/plugins/profilers
mkdir -p %{buildroot}/%{_usr}/lib/%{name}/plugins/types
mkdir -p %{buildroot}/%{_usr}/lib/%{name}/admin
mkdir -p %{buildroot}/%{_usr}/lib/%{name}/admin/extensions
mkdir -p %{buildroot}/%{_usr}/lib/%{name}/consumer
mkdir -p %{buildroot}/%{_usr}/lib/%{name}/consumer/extensions
mkdir -p %{buildroot}/%{_usr}/lib/%{name}/agent
mkdir -p %{buildroot}/%{_usr}/lib/%{name}/agent/handlers
mkdir -p %{buildroot}/%{_var}/lib/%{name}/
mkdir -p %{buildroot}/%{_var}/lib/%{name}/uploads
mkdir -p %{buildroot}/%{_var}/log/%{name}/
mkdir -p %{buildroot}/%{_libdir}/gofer/plugins
mkdir -p %{buildroot}/%{_bindir}
# Configuration
cp -R server/etc/pulp/* %{buildroot}/%{_sysconfdir}/%{name}
cp -R agent/etc/pulp/agent/agent.conf %{buildroot}/%{_sysconfdir}/%{name}/agent/
cp -R client_admin/etc/pulp/admin/admin.conf %{buildroot}/%{_sysconfdir}/%{name}/admin/
cp -R client_consumer/etc/pulp/consumer/consumer.conf %{buildroot}/%{_sysconfdir}/%{name}/consumer/
# Apache Configuration
%if 0%{?fedora} >= 18
cp server/etc/httpd/conf.d/pulp_apache_24.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/pulp.conf
%else
cp server/etc/httpd/conf.d/pulp_apache_22.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/pulp.conf
%endif
# Pulp Web Services
cp -R server/srv %{buildroot}
# Agent
rm -rf %{buildroot}/%{python_sitelib}/%{name}/agent/gofer
cp agent/etc/gofer/plugins/pulpplugin.conf %{buildroot}/%{_sysconfdir}/gofer/plugins
cp -R agent/pulp/agent/gofer/pulpplugin.py %{buildroot}/%{_libdir}/gofer/plugins
ln -s %{_sysconfdir}/rc.d/init.d/goferd %{buildroot}/%{_sysconfdir}/rc.d/init.d/pulp-agent
# Tools
cp server/bin/* %{buildroot}/%{_bindir}
# Ghost
touch %{buildroot}/%{_sysconfdir}/pki/%{name}/consumer/consumer-cert.pem
touch %{buildroot}/%{_sysconfdir}/pki/%{name}/ca.key
touch %{buildroot}/%{_sysconfdir}/pki/%{name}/ca.crt
# Cron
cp -R server/etc/cron.monthly %{buildroot}/%{_sysconfdir}
%if %{pulp_selinux}
# Install SELinux policy modules
cd server/selinux/server
./install.sh %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_datadir}/pulp/selinux/server
cp enable.sh %{buildroot}%{_datadir}/pulp/selinux/server
cp uninstall.sh %{buildroot}%{_datadir}/pulp/selinux/server
cp relabel.sh %{buildroot}%{_datadir}/pulp/selinux/server
cd -
%endif
%clean
rm -rf %{buildroot}
# define required pulp platform version.
%global pulp_version %{version}
# ---- Server ------------------------------------------------------------------
%package server
Summary: The pulp platform server
Group: Development/Languages
Requires: python-%{name}-common = %{pulp_version}
Requires: pymongo >= 2.1.1
Requires: python-setuptools
Requires: python-webpy
Requires: python-okaara >= 1.0.32
Requires: python-oauth2 >= 1.5.170-2.pulp
Requires: python-httplib2
Requires: python-isodate >= 0.5.0-1.pulp
Requires: python-BeautifulSoup
Requires: python-qpid
Requires: python-nectar >= 1.1.4
Requires: httpd
Requires: mod_ssl
Requires: openssl
Requires: nss-tools
Requires: python-ldap
Requires: python-gofer >= 0.77
Requires: crontabs
Requires: acl
Requires: mod_wsgi >= 3.4-1.pulp
Requires: mongodb
Requires: mongodb-server
Requires: qpid-cpp-server
Requires: m2crypto >= 0.21.1.pulp-7
Requires: genisoimage
# RHEL6 ONLY
%if 0%{?rhel} == 6
Requires: nss >= 3.12.9
%endif
Obsoletes: pulp
%description server
Pulp provides replication, access, and accounting for software repositories.
%files server
# root
%defattr(-,root,root,-)
%{python_sitelib}/%{name}/server/
%{python_sitelib}/%{name}/plugins/
%{python_sitelib}/pulp_server*.egg-info
%config(noreplace) %{_sysconfdir}/%{name}/server.conf
%config(noreplace) %{_sysconfdir}/%{name}/logging/
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%dir %{_sysconfdir}/%{name}/vhosts80
%dir %{_sysconfdir}/%{name}/server
%dir %{_sysconfdir}/%{name}/server/plugins.conf.d
%{_bindir}/pulp-manage-db
%{_bindir}/pulp-monthly
%{_bindir}/pulp-qpid-ssl-cfg
%{_bindir}/pulp-gen-ca-certificate
%defattr(700,root,root,-)
%config %{_sysconfdir}/cron.monthly/pulp_monthly.sh
%ghost %{_sysconfdir}/pki/%{name}/ca.key
%ghost %{_sysconfdir}/pki/%{name}/ca.crt
# apache
%defattr(-,apache,apache,-)
%dir /srv/%{name}
%dir %{_var}/log/%{name}
%dir %{_sysconfdir}/pki/%{name}
%{_var}/lib/%{name}/
%{_usr}/lib/%{name}/plugins/distributors
%{_usr}/lib/%{name}/plugins/importers
%{_usr}/lib/%{name}/plugins/profilers
%{_usr}/lib/%{name}/plugins/types
/srv/%{name}/webservices.wsgi
%doc README LICENSE
%post server
# OAuth credentials
SECTION="oauth"
MATCH_SECTION="/^\[$SECTION\]$/"
KEY="oauth_key:"
SECRET="oauth_secret:"
function generate() {
echo `< /dev/urandom tr -dc A-Z0-9 | head -c8`
}
sed -e "$MATCH_SECTION,/^$/s/^$KEY$/$KEY $(generate)/" \
-e "$MATCH_SECTION,/^$/s/^$SECRET$/$SECRET $(generate)/" \
-i %{_sysconfdir}/%{name}/server.conf
# CA certificate
if [ $1 -eq 1 ]; # not an upgrade
then
pulp-gen-ca-certificate
fi
# ---- Common ------------------------------------------------------------------
%package -n python-pulp-common
Summary: Pulp common python packages
Group: Development/Languages
Obsoletes: pulp-common
Requires: python-isodate >= 0.5.0-1.pulp
Requires: python-iniparse
# RHEL5 ONLY
%if 0%{?rhel} == 5
Requires: python-simplejson
%endif
%description -n python-pulp-common
A collection of components that are common between the pulp server and client.
%files -n python-pulp-common
%defattr(-,root,root,-)
%dir %{_usr}/lib/%{name}
%dir %{python_sitelib}/%{name}
%{python_sitelib}/%{name}/__init__.*
%{python_sitelib}/%{name}/common/
%{python_sitelib}/pulp_common*.egg-info
%doc README LICENSE
# ---- Client Bindings ---------------------------------------------------------
%package -n python-pulp-bindings
Summary: Pulp REST bindings for python
Group: Development/Languages
Requires: python-%{name}-common = %{pulp_version}
Requires: python-oauth2 >= 1.5.170-2.pulp
Requires: m2crypto
%description -n python-pulp-bindings
The Pulp REST API bindings for python.
%files -n python-pulp-bindings
%defattr(-,root,root,-)
%{python_sitelib}/%{name}/bindings/
%{python_sitelib}/pulp_bindings*.egg-info
%doc README LICENSE
# ---- Client Extension Framework -----------------------------------------------------
%package -n python-pulp-client-lib
Summary: Pulp client extensions framework
Group: Development/Languages
Requires: m2crypto
Requires: python-%{name}-common = %{pulp_version}
Requires: python-okaara >= 1.0.32
Requires: python-isodate >= 0.5.0-1.pulp
Requires: python-setuptools
Obsoletes: pulp-client-lib
%description -n python-pulp-client-lib
A framework for loading Pulp client extensions.
%files -n python-pulp-client-lib
%defattr(-,root,root,-)
%{python_sitelib}/%{name}/client/commands/
%{python_sitelib}/%{name}/client/extensions/
%{python_sitelib}/%{name}/client/upload/
%{python_sitelib}/%{name}/client/*.py
%{python_sitelib}/%{name}/client/*.pyc
%{python_sitelib}/%{name}/client/*.pyo
%{python_sitelib}/pulp_client_lib*.egg-info
%doc README LICENSE
# ---- Agent Handler Framework -------------------------------------------------
%package -n python-pulp-agent-lib
Summary: Pulp agent handler framework
Group: Development/Languages
Requires: python-%{name}-common = %{pulp_version}
%description -n python-pulp-agent-lib
A framework for loading agent handlers that provide support
for content, bind and system specific operations.
%files -n python-pulp-agent-lib
%defattr(-,root,root,-)
%{python_sitelib}/%{name}/agent/
%{python_sitelib}/pulp_agent*.egg-info
%dir %{_sysconfdir}/%{name}/agent
%dir %{_sysconfdir}/%{name}/agent/conf.d
%dir %{_usr}/lib/%{name}/agent
%doc README LICENSE
# ---- Admin Client (CLI) ------------------------------------------------------
%package admin-client
Summary: Admin tool to administer the pulp server
Group: Development/Languages
Requires: python-okaara >= 1.0.32
Requires: python-%{name}-common = %{pulp_version}
Requires: python-%{name}-bindings = %{pulp_version}
Requires: python-%{name}-client-lib = %{pulp_version}
Obsoletes: pulp-admin
Obsoletes: pulp-builtins-admin-extensions <= %{pulp_version}
%description admin-client
A tool used to administer the pulp server, such as repo creation and
synching, and to kick off remote actions on consumers.
%files admin-client
%defattr(-,root,root,-)
%{python_sitelib}/%{name}/client/admin/
%{python_sitelib}/pulp_client_admin*.egg-info
%dir %{_sysconfdir}/%{name}/admin
%dir %{_sysconfdir}/%{name}/admin/conf.d
%dir %{_usr}/lib/%{name}/admin/extensions/
%config(noreplace) %{_sysconfdir}/%{name}/admin/admin.conf
%{_bindir}/%{name}-admin
%doc README LICENSE
# ---- Consumer Client (CLI) ---------------------------------------------------
%package consumer-client
Summary: Consumer tool to administer the pulp consumer.
Group: Development/Languages
Requires: python-%{name}-common = %{pulp_version}
Requires: python-%{name}-bindings = %{pulp_version}
Requires: python-%{name}-client-lib = %{pulp_version}
Obsoletes: pulp-consumer
Obsoletes: pulp-builtins-consumer-extensions <= %{pulp_version}
%description consumer-client
A tool used to administer a pulp consumer.
%files consumer-client
%defattr(-,root,root,-)
%{python_sitelib}/%{name}/client/consumer/
%{python_sitelib}/pulp_client_consumer*.egg-info
%dir %{_sysconfdir}/%{name}/consumer
%dir %{_sysconfdir}/%{name}/consumer/conf.d
%dir %{_sysconfdir}/pki/%{name}/consumer/
%dir %{_usr}/lib/%{name}/consumer/extensions/
%config(noreplace) %{_sysconfdir}/%{name}/consumer/consumer.conf
%{_bindir}/%{name}-consumer
%ghost %{_sysconfdir}/pki/%{name}/consumer/consumer-cert.pem
%doc README LICENSE
# ---- Agent -------------------------------------------------------------------
%package agent
Summary: The Pulp agent
Group: Development/Languages
Requires: python-%{name}-bindings = %{pulp_version}
Requires: python-%{name}-agent-lib = %{pulp_version}
Requires: %{name}-consumer-client = %{pulp_version}
Requires: gofer >= 0.77
%description agent
The pulp agent, used to provide remote command & control and
scheduled actions such as reporting installed content profiles
on a defined interval.
%files agent
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/%{name}/agent/agent.conf
%{_sysconfdir}/gofer/plugins/pulpplugin.conf
%{_libdir}/gofer/plugins/pulpplugin.*
%{_sysconfdir}/rc.d/init.d/pulp-agent
%doc README LICENSE
# --- Selinux ---------------------------------------------------------------------
%if %{pulp_selinux}
%package selinux
Summary: Pulp SELinux policy for pulp components.
Group: Development/Languages
BuildRequires: rpm-python
BuildRequires: make
BuildRequires: checkpolicy
BuildRequires: selinux-policy-devel
BuildRequires: hardlink
Obsoletes: pulp-selinux-server
%if "%{selinux_policyver}" != ""
Requires: selinux-policy >= %{selinux_policyver}
%endif
%if 0%{?fedora} == 19
Requires(post): selinux-policy-targeted >= 3.12.1-74
%endif
Requires(post): policycoreutils-python
Requires(post): /usr/sbin/semodule, /sbin/fixfiles, /usr/sbin/semanage
Requires(postun): /usr/sbin/semodule
%description selinux
SELinux policy for Pulp's components
%post selinux
# Enable SELinux policy modules
if /usr/sbin/selinuxenabled ; then
%{_datadir}/pulp/selinux/server/enable.sh %{_datadir}
fi
# restorcecon wasn't reading new file contexts we added when running under 'post' so moved to 'posttrans'
# Spacewalk saw same issue and filed BZ here: https://bugzilla.redhat.com/show_bug.cgi?id=505066
%posttrans selinux
if /usr/sbin/selinuxenabled ; then
%{_datadir}/pulp/selinux/server/relabel.sh %{_datadir}
fi
%preun selinux
# Clean up after package removal
if [ $1 -eq 0 ]; then
%{_datadir}/pulp/selinux/server/uninstall.sh
%{_datadir}/pulp/selinux/server/relabel.sh
fi
exit 0
%files selinux
%defattr(-,root,root,-)
%doc server/selinux/server/pulp-server.fc server/selinux/server/pulp-server.if server/selinux/server/pulp-server.te README LICENSE
%{_datadir}/pulp/selinux/server/*
%{_datadir}/selinux/*/pulp-server.pp
%{_datadir}/selinux/devel/include/%{moduletype}/pulp-server.if
%endif
%changelog
* Fri Oct 18 2013 Jeff Ortel <[email protected]> 2.3.0-0.23.beta
- 1019455 - Loosened validation checks on the presence of the feed for certain
configuration parameters ([email protected])
* Wed Oct 16 2013 Jeff Ortel <[email protected]> 2.3.0-0.22.beta
- Pulp rebuild
* Tue Oct 15 2013 Jeff Ortel <[email protected]> 2.3.0-0.21.beta
- 1011716 - updated spec file to add selinux-policy-targeted dependency for f19
and removing wrong version dependency on policycoreutils-python
- 973678 - Add support for reporting unit upload statuses to the API and CLI.
- 975503 - Add status command to iso publish ([email protected])
* Mon Oct 14 2013 Jeff Ortel <[email protected]> 2.3.0-0.20.beta
- Pulp rebuild
* Fri Oct 11 2013 Jeff Ortel <[email protected]> 2.3.0-0.19.beta
- 1017924 - unzip the units.json instead of reading/seeking using gzip.
* Thu Oct 10 2013 Jeff Ortel <[email protected]> 2.3.0-0.18.beta
- 1017815 - Added logging about publish success and failure
- 965283 - Document the response for a repo importer delete ([email protected])
- 1014368 - added python-requests-2.0.0 package to pulp dependencies in order
to support proxy with https ([email protected])
- 1009617 - limit options for repo sync and publish history now states the
default limit is 5 ([email protected])
- 965283 - updating the REST API docs for repo updates as they pertain to
importers and distributors ([email protected])
- 1004805 - pulp-dev.py now looks at the apache version instead of the linux
distribution version when deciding which config file to install, since the
apache version is really what matters. ([email protected])
- 1014660 - Add command line parsers for numerics & booleans that return empty
strings for empty values because None is interpreted by the rest api as
having the value not specified ([email protected])
- 999129 - removing loading of tracker files at the time of initializing upload
manager and adding it when listing remaining uploads ([email protected])
- 1010292 - serialize _last_modified only when it exists. ([email protected])
- 1010016 - blacklist options; require gofer 0.77 which logs messages at DEBUG.
- 1011972 - fixed in nectar 1.1.2. ([email protected])
- 952748 - adding documentation about how to use a UnitAssociationCriteria with
the REST API. ([email protected])
* Wed Oct 02 2013 Jeff Ortel <[email protected]> 2.3.0-0.17.beta
- 1009926 - Fix Exception thrown on applicability generation
- 1013097 - permit (.) in node IDs. ([email protected])
- 1011268 - Add support for SHA hash which is an alias for SHA1
- 721314 - including the README and LICENSE files in all platform packages.
Also tweaked the README. ([email protected])
- 988119 - Convert Python types (list,dict) to JSON types (array, object) in
api documentation ([email protected])
- 1011053 - Add a from_dict() method to the Criteria model.
* Thu Sep 26 2013 Jeff Ortel <[email protected]> 2.3.0-0.16.alpha
- 1012636 - fix post script. ([email protected])
- 976435 - load puppet importer config from a file using a common method.
* Thu Sep 26 2013 Jeff Ortel <[email protected]> 2.3.0-0.15.alpha
- 1004559 - python-simplejson is now required by pulp-common on rhel5. this
also removes any direct imports of simplejson from outside the pulp-common
package. ([email protected])
- 1011728 - encode unicode values in oauth header. ([email protected])
- 975980 - When a repository is updated, push an udpate to all of the
distributors that depend on the repo. ([email protected])
- 1009912 - removing pymongo dependency for consumers by using actual constants
instead of importing pymongo in common/constants.py ([email protected])
- 1003326 - generate pulp CA on initial install. ([email protected])
- 906039 - do not allow the running weigt to drop below 0
- 1009617 - Fixed the limit option in 'pulp-admin repo history publish'
* Wed Sep 18 2013 Jeff Ortel <[email protected]> 2.3.0-0.14.alpha
- Pulp rebuild
* Wed Sep 18 2013 Jeff Ortel <[email protected]> 2.3.0-0.13.alpha
- 965751 - migrate nodes to use threaded downloader. ([email protected])
- 1009118 - bindings require python-oauth. ([email protected])
- 1004346 - deal with bindings w (None) as binding_config. ([email protected])
- 995528 - Remove legacy usage of AutoReference as it has a significant
performance impact on queries of larger repositories and is no longer being
used. ([email protected])
- 1004790 - Remove legacy dependency on Grinder that is no longer required.
- 993424 - forced unbind when bindings have notify_agent=False
- 959031 - 968524 - rewritten scheduler that fixes bug in subsequent schedule
runs and allows next_run to be updated when upating the schedule of a
scheduled_call ([email protected])
* Fri Sep 13 2013 Jeff Ortel <[email protected]> 2.3.0-0.12.alpha
- Pulp rebuild
* Thu Sep 12 2013 Jeff Ortel <[email protected]> 2.3.0-0.11.alpha
- Pulp rebuild
* Thu Sep 12 2013 Jeff Ortel <[email protected]> 2.3.0-0.10.alpha
- 1005898 - Remove unnecessary dependency on gofer in pulp-nodes.spec file
- 1003285 - fixed an attribute access for an attribute that doesn't exist in
python 2.6. ([email protected])
* Tue Sep 10 2013 Jeff Ortel <[email protected]> 2.3.0-0.9.alpha
- Pulp rebuild
* Fri Sep 06 2013 Barnaby Court <[email protected]> 2.3.0-0.8.alpha
- 1004897 - Fix bug where distributor validate_config is finding relative path
conflicts with the repository that is being updated ([email protected])
- 952737 - updated repo creation documentation with parameters to configure
importers and distributors ([email protected])
- 915330 - Fix performance degradation of importer and distributor
configuration validation as the number of repositories increased
* Fri Aug 30 2013 Barnaby Court <[email protected]> 2.3.0-0.7.alpha
- Pulp rebuild
* Thu Aug 29 2013 Jeff Ortel <[email protected]> 2.3.0-0.6.alpha
- Pulp rebuild
* Thu Aug 29 2013 Barnaby Court <[email protected]> 2.3.0-0.5.alpha
- Pulp rebuild
* Tue Aug 27 2013 Jeff Ortel <[email protected]> 2.3.0-0.4.alpha
- Pulp rebuild
* Tue Aug 27 2013 Jeff Ortel <[email protected]> 2.3.0-0.3.alpha
- 956711 - Raise an error to the client if an attempt is made to install an
errata that does not exist in a repository bound to the consumer
- 991500 - updating get_repo_units conduit call to return plugin units instead
of dictionary ([email protected])
- 976561 - updated the list of decorated collection methods to match the
Collection object in 2.1.1 ([email protected])
- 976561 - removed superfluous re-fetching of collection we already have a
handle to ([email protected])
* Thu Aug 01 2013 Jeff Ortel <[email protected]> 2.3.0-0.2.alpha
- Pulp rebuild
* Thu Aug 01 2013 Jeff Ortel <[email protected]> 2.3.0-0.1.alpha
- 976561 - added and explicit pool size for the socket "pool" added a new
decorator around the query methods that calls end_request in order to manage
the sockets automagically ([email protected])
- 981736 - when a sync fails, pulp-admin's exit code is now 1 instead of 0.
- 977948 - fix distributor updating during node sync. ([email protected])
- purge changelog
- 973402 - Handle CallReport.progress with value of {} or None.
- 927216 - remove reference to CDS in the server.conf security section.
- 928413 - fix query used to determine of bind has pending actions.
- 970741 - Upgraded nectar for error_msg support ([email protected])
- 968012 - Replaced grinder logging config with nectar logging config
* Tue Jun 04 2013 Jeff Ortel <[email protected]> 2.2.0-0.16.alpha
- 947445 - allowing consumer ids to allow dots ([email protected])
- 906420 - update storing of resources used by each task in the taskqueue to
allow dots in the repo id ([email protected])
- 906420 - update storing of resources used by each task in the taskqueue to
allow dots in the repo id ([email protected])
- 968543 - remove conditional in pulp_version macro. ([email protected])
- 927033 - added missing consumer group associate and unassociate webservices
tests ([email protected])
- 927033 - updating consumer group associate and unassociate calls to return a
list of all consumers similar to repo group membership instead of just those
who fulfil the search criteria, updating unit tests and documentation
- 965743 - Changed help text to reflect the actual units
- 963823 - Made the feed SSL options group name a bit more accurate
* Thu May 30 2013 Jeff Ortel <[email protected]> 2.2.0-0.15.alpha
- 913670 - fix consumer group bind/unbind. ([email protected])
- 878234 - use correct method on coordinator. ([email protected])
* Fri May 24 2013 Jeff Ortel <[email protected]> 2.2.0-0.14.alpha
- 966202 - Change the config options to use the optional parsers.
* Thu May 23 2013 Jeff Ortel <[email protected]> 2.2.0-0.13.alpha
- Pulp rebuild
* Thu May 23 2013 Jeff Ortel <[email protected]> 2.2.0-0.12.alpha
- Pulp rebuild
* Tue May 21 2013 Jeff Ortel <[email protected]> 2.2.0-0.11.alpha
- 923796 - Changed example to not cite a specific command
* Mon May 20 2013 Jeff Ortel <[email protected]> 2.2.0-0.10.alpha
- Pulp rebuild
* Mon May 20 2013 Jeff Ortel <[email protected]> 2.2.0-0.9.alpha
- Pulp rebuild
* Fri May 17 2013 Jeff Ortel <[email protected]> 2.2.0-0.8.alpha
- Pulp rebuild
* Fri May 17 2013 Jeff Ortel <[email protected]> 2.2.0-0.7.alpha
- Pulp rebuild
* Fri May 17 2013 Jeff Ortel <[email protected]> 2.2.0-0.6.alpha
- Pulp rebuild
* Mon May 13 2013 Jeff Ortel <[email protected]> 2.2.0-0.5.alpha
- Pulp rebuild
* Mon May 13 2013 Jeff Ortel <[email protected]> 2.2.0-0.4.alpha
- Pulp rebuild
* Mon May 13 2013 Jeff Ortel <[email protected]> 2.2.0-0.3.alpha
- 952775 - Fixed broken unit filter application when sorted by association
- 913171 - using get method instead of dict lookup ([email protected])
- 915473 - fixing login api to return a json document with key and certificate
- 913171 - fixed repo details to display list of actual schedules instead of
schedule ids and unit tests ([email protected])
- 957890 - removing duplicate units in case when consumer is bound to copies of
same repo ([email protected])
- 957890 - fixed duplicate unit listing in the applicability report and
performance improvement fix to avoid loading unnecessary units
- 954038 - updating applicability api to send unit ids instead of translated
plugin unit objects to profilers and fixing a couple of performance issues
- 924778 - Added hook for a subclass to manipulate the file bundle list after
the metadata is generated ([email protected])
- 916729 - Fixed auth failures to return JSON documents containing a
programmatic error code and added client-side exception middleware support
for displaying the proper user message based on the error.
- 887000 - removed dispatch lookups in sync to determine canceled state
- 927244 - unit association log blacklist criteria ([email protected])
- 903414 - handle malformed queued calls ([email protected])
- 927216 - remove CDS section from server.conf. ([email protected])
* Fri Apr 19 2013 Jeff Ortel <[email protected]> 2.2.0-0.2.alpha
- 953665 - added ability for copy commands to specify the fields of their units
that should be fetched, so as to avoid loading the entirety of every unit in
the source repository into RAM. Also added the ability to provide a custom
"override_config" based on CLI options. ([email protected])
- 952310 - support file:// urls. ([email protected])
- 949174 - Use a single boolean setting for whether the downloaders should
validate SSL hosts. ([email protected])
* Fri Apr 12 2013 Jeff Ortel <[email protected]> 2.2.0-0.1.alpha
- 950632 - added unit_id search index on the repo_content_units collection
- 928081 - Take note of HTTP status codes when downloading files.
- 947927 - This call should support both the homogeneous and heterogeneous
cases ([email protected])
- 928509 - Platform changes to support override config in applicability
- 949186 - Removed the curl TIMEOUT setting and replaced it with a low speed
limit. ([email protected])
- 928087 - serialized call request replaced in archival with string
representation of the call request ([email protected])
- 924327 - Make sure to run the groups/categories upgrades in the aggregate
- 918160 - changed --summary flag to *only* display the summary
- 916794 - 918160 - 920792 - new generator approach to orphan management to
keep us from stomping on memory ([email protected])
- 923402 - Clarifications to the help text in logging config files
- 923402 - Reduce logging level from DEBUG to INFO ([email protected])
- 923406 - fixing typo in repo copy bindings causing recursive copy to never
run ([email protected])
- 922214 - adding selinux context for all files under /srv/pulp instead of
individual files ([email protected])
- 919155 - Added better test assertions ([email protected])
- 919155 - Added handling for connection refused errors
- 918782 - render warning messages as normal colored text. ([email protected])
- 911166 - Use pulp_version macro for consistency and conditional requires on
both version and release for pre-release packages only. ([email protected])
- 908934 - Fix /etc/pki/pulp and /etc/pki/pulp/consumer ownership.
- 918600 - _content_type_id wasn't being set for erratum and drpm
* Mon Mar 04 2013 Jeff Ortel <[email protected]> 2.1.0-0.19.alpha
- 855053 - repository unit counts are now tracked per-unit-type. Also wrote a
migration that will convert previously-created repositories to have the new
style of unit counts. ([email protected])
- 902514 - removing NameVirtualHost because we weren't using it, and adding one
authoritative <VirtualHost *:80> block for all plugins to use, since apache
will only let us use one. ([email protected])
- 873782 - added non-authenticate status resource at /v2/status/
- 860089 - added ability to filter tasks using ?id=...&id=...
* Tue Feb 26 2013 Jeff Ortel <[email protected]> 2.1.0-0.18.alpha
- Pulp rebuild
* Tue Feb 26 2013 Jeff Ortel <[email protected]> 2.1.0-0.17.alpha
- 915795 - Fix logging import statemet in pulp-manage-db. ([email protected])
* Mon Feb 25 2013 Jeff Ortel <[email protected]> 2.1.0-0.16.alpha
- Pulp rebuild
* Mon Feb 25 2013 Jeff Ortel <[email protected]> 2.1.0-0.15.alpha
- 908676 - adding pulp-v1-upgrade-selinux script to enable new selinux policy
and relabel filesystem after v1 upgrade ([email protected])
- 908676 - adding obsoletes back again for pulp-selinux-server since pulp v1
has a dependency on this package ([email protected])
* Fri Feb 22 2013 Jeff Ortel <[email protected]> 2.1.0-0.14.alpha
- 909493 - adding a separate apache2.4 compatible pulp apache conf file for F18
- 909493 - adding a different httpd2.4 compatible pulp config file for f18
build ([email protected])
- 908676 - make pulp-selinux conflict with pulp-selinux-server instead of
obsoleting pulp-selinux-server ([email protected])
* Thu Feb 21 2013 Jeff Ortel <[email protected]> 2.1.0-0.13.alpha
- 913205 - Removed config options if they aren't relevant
- 913205 - Corrected storage of feed certificates on upgrade
* Tue Feb 19 2013 Jeff Ortel <[email protected]> 2.1.0-0.12.alpha
- Pulp rebuild
* Tue Feb 19 2013 Jeff Ortel <[email protected]> 2.1.0-0.11.alpha
- 910419 - added *args and **kwargs to OPTIONS signature to handle regular
expressions in the url path ([email protected])
* Thu Feb 14 2013 Jeff Ortel <[email protected]> 2.1.0-0.10.alpha
- Pulp rebuild
* Thu Feb 14 2013 Jeff Ortel <[email protected]> 2.1.0-0.9.alpha
- 906426 - Create the upload directory if someone deletes it
* Wed Feb 13 2013 Jeff Ortel <[email protected]> 2.1.0-0.8.alpha
- Pulp rebuild
* Wed Feb 13 2013 Jeff Ortel <[email protected]> 2.1.0-0.7.alpha
- Pulp rebuild
* Wed Feb 13 2013 Jeff Ortel <[email protected]> 2.1.0-0.6.alpha
- 910540 - fix file overlaps in platform packaging. ([email protected])
* Tue Feb 12 2013 Jeff Ortel <[email protected]> 2.1.0-0.5.alpha
- Pulp rebuild
* Tue Feb 12 2013 Jeff Ortel <[email protected]> 2.1.0-0.4.alpha
- 908510 - Corrected imports to use compat layer ([email protected])
- 908082 - updated SSLRenegBufferSize in apache config to 1MB
- 903797 - Corrected docstring for import_units ([email protected])
- 905588 - Adding "puppet_module" as an example unit type. This should not
become a list of every possible unit type, but it's not unreasonable here to
include some mention of puppet modules. ([email protected])
* Tue Feb 05 2013 Jeff Ortel <[email protected]> 2.1.0-0.3.alpha
- Pulp rebuild
* Tue Feb 05 2013 Jeff Ortel <[email protected]> 2.1.0-0.2.alpha
- 880780 - Added config parsing exception to convey more information in the
event the conf file isn't valid JSON ([email protected])
- 905548 - fix handler loading; imp.load_source() supports .py files only.
- 903387 - remove /var/lib/pulp/(packages|repos) and /var/lib/pulp/published
- 878234 - added consumer group itineraries and updated group content install
apis to return a list of call requests, also added unit tests
- 888058 - Changed model for the client-side exception handler to be overridden
and specified to the launcher, allowing an individual client (admin,
consumer, future other) to customize error messages where relevant.
* Sat Jan 19 2013 Jeff Ortel <[email protected]> 2.1.0-0.1.alpha
- 891423 - Added conduit calls to be able to create units on copy
- 894467 - Parser methods need to return the value, not just validate it
- 889893 - added detection of still queued scheduled calls and skip re-
enqueueing with log message ([email protected])
- 883938 - Bumped required version of okaara in the spec
- 885128 - Altered two more files to use the 'db' logger. ([email protected])
- 885128 - pulp.plugins.loader.api should use the "db" logger.
- 891423 - Added conduit calls to be able to create units on copy
- 891760 - added importer and distributor configs to kwargs and
kwargs_blacklist to prevent logging of sensitive data
- 889320 - updating relabel script to run restorecon on /var/www/pulp_puppet
- 889320 - adding httpd_sys_content_rw_t context to /var/www/pulp_puppet
- 887959 - Removing NameVirtualHost entries from plugin httpd conf files and
adding it only at one place in main pulp.conf ([email protected])
- 886547 - added check for deleted schedule in scheduled call complete callback
- 882412 - Re-raising PulpException upon upload error instead of always
replacing exceptions with PulpExecutionException, the latter of which results
in an undesirable 500 HTTP response. ([email protected])
- 875843 - added post sync/publish callbacks to cleanup importer and
distributor instances before calls are archived ([email protected])
- 769381 - Fixed delete confirmation message to be task centric
- 856762 - removing scratchpads from repo search queries ([email protected])
- 886148 - used new result masking to keep full consumer package profiles from
showing up in the task list and log file ([email protected])
- 856762 - removing scratchpad from the repo list --details commmand for repo,
importer and distributor ([email protected])
- 883899 - added conflict detection for call request groups in the webservices
execution wrapper module ([email protected])
- 876158 - Removed unused configuration values and cleaned up wording and
formatting of the remaining options ([email protected])
- 882403 - Flushed out the task state to user display mapping as was always the
intention but never actually came to fruition. ([email protected])
- 882422 - added the distributor_list keyword argument to the call requets
kwarg_blacklist to prevent it from being logged ([email protected])
- 885229 - add requires: nss-tools. ([email protected])
- 885098 - Use a separate logging config for pulp-manage-db.
- 885134 - Added check to not parse an apache error as if it has the Pulp
structure and handling in the exception middleware for it
- 867464 - Renaming modules to units and a fixing a few minor output errors
- 882421 - moving unit remove command into the platform from RPM extensions so
it can be used by other extension families ([email protected])
- 877147 - added check for path type when removing orphans
- 882423 - fix upload in repo controller. ([email protected])
- 883568 - Reworded portion about recurrences ([email protected])
- 883754 - The notes option was changed to have a parser, but some code using
it was continuing to manually parse it again, which would tank.
- 866996 - Added ability to hide the details link on association commands when
it isn't a search. ([email protected])
- 877797 - successful call of canceling a task now returns a call report
through the rest api ([email protected])
- 867464 - updating general module upload command output ([email protected])
- 882424 - only have 1 task, presumedly the "main" one, in a task group update
the last_run field ([email protected])
- 883059 - update server.conf to make server_name optional
- 883059 - updating default server config to lookup server hostname
- 862187 /var/log/pulp/db.log now includes timestamps. ([email protected])
- 883025 - Display note to copy qpid certificates to each consumer.
- 880441 - Fixed call to a method that was renamed ([email protected])
- 881120 - utilized new serialize_result call report flag to hide consumer key
when reporting the task information ([email protected])
- 882428 - utilizing new call report serialize_result flag to prevent the call
reports from being serialized and reported over the rest api
- 882401 - added skipped as a recognized state to the cli parser
- 862290 - Added documentation for the new ListRepositoriesCommand methods
- 881639 - more programmatic. ([email protected])
- 881389 - fixed rpm consumer bind to raise an error on non existing repos
- 827620 - updated repo, repo_group, consumer and user apis to use execute
instead of execute_ok ([email protected])
- 878620 - fixed task group resource to return only tasks in the group instead
of all tasks ever run... :P ([email protected])
- 866491 - Change the source repo ID validation to be a 400, not 404
- 866491 - Check for repo existence and raise a 404 if not found instead of
leaving the task to do it ([email protected])
- 881120 - strip the private key from returned consumer object.
- 862290 - Added support in generic list repos command for listing other
repositories ([email protected])
- 877914 - updating old file links from selinux installation and un-
installation ([email protected])
- 873786 - updating enable.sh for correct amqp ports ([email protected])
- 878654 - fixed error message when revoking permission from a non-existing
user and added unit tests ([email protected])
- added database collection reaper system that will wake up periodically and
remove old documents from configured collections ([email protected])
- 876662 - Added middleware exception handling for when the client cannot
resolve the server hostname ([email protected])
- 753680 - Taking this opportunity to quiet the logs a bit too
- 753680 - Increased the logging clarity and location for initialization errors
- 871858 - Implemented sync and publish status commands
- 873421 - changed a wait-time message to be more appropriate, and added a bit
of function parameter documentation. ([email protected])
- 877170 - Added ability to ID validator to handle multiple inputs
- 877435 - Pulled the filters/order to constants and use in search
- 875606 - Added isodate and python-setuptools deps. Rolled into a quick audit
of all the requirements and changed quite a few. There were several missing
and several no longer applicaple. Also removed a stray import of okaara from