forked from tskirvin/puppetdb-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcms-puppetdb-utils.spec
121 lines (95 loc) · 3.74 KB
/
cms-puppetdb-utils.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
Name: cms-puppetdb-utils
Summary: Scripts for querying the puppetdb
Version: 2.5.1
Release: 0
Packager: Tim Skirvin <[email protected]>
Group: Applications/System
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{version}-%{release}.tar.gz
BuildArch: noarch
Requires: python python-dateutil python-requests
BuildRequires: rsync
Vendor: Fermi USCMS-T1
License: BSD
Distribution: CMS
URL: http://www.fnal.gov/
%description
USCMS-T1 @ FNAL - scripts for querying the puppetdb
%prep
%setup -c -n %{name}-%{version}
%build
%install
if [[ $RPM_BUILD_ROOT != "/" ]]; then
rm -rf $RPM_BUILD_ROOT
fi
mkdir -p usr/share/man/man8
for i in `ls usr/sbin`; do
pod2man --section 8 --center="System Commands" usr/sbin/${i} \
> usr/share/man/man8/${i}.8 ;
bzip2 usr/share/man/man8/${i}.8 ;
done
rsync -Crlpt ./usr ${RPM_BUILD_ROOT}
rsync -Crlpt ./etc ${RPM_BUILD_ROOT}
for i in bin sbin; do
if [ -d ${RPM_BUILD_ROOT}/$i ]; then
chmod 0755 ${RPM_BUILD_ROOT}
fi
done
%clean
if [[ $RPM_BUILD_ROOT != "/" ]]; then
rm -rf $RPM_BUILD_ROOT
fi
%files
%defattr(-,root,root)
/usr/share/man/man8/*
/usr/sbin/*
/etc/puppetdb/puppetdb.json
%changelog
* Wed Dec 23 2015 Tim Skirvin <[email protected]> 2.5.1-0
- puppetdb-tangled - skips 'noop' operations as well
* Thu Jul 02 2015 Tim Skirvin <[email protected]> 2.5.0-0
- puppetdb-failed - added https support
- puppetdb-tangled - added https support
- puppetdb-tooquiet - added https support
- significant documentation improvements
* Thu Jul 02 2015 Tim Skirvin <[email protected]> 2.4.1-0
- puppetdb-host-csv - looks for 'tibs' fact instead of 'backup::tibs' class
* Mon Jun 22 2015 Tim Skirvin <[email protected]> 2.4.0-0
- added puppetdb-monitor
- fixes to documentation for puppetdb-manager
* Wed May 6 2015 Tim Skirvin <[email protected]> 2.3.0-0
- added puppetdb-resources
* Thu Apr 30 2015 Tim Skirvin <[email protected]> 2.2.0-0
- added puppetdb-uuid-by-host
* Fri Feb 27 2015 Tim Skirvin <[email protected]> 2.1.0-1
- changed to better versioning scheme
- puppetdb-tangled, puppetdb-tooquiet, and puppetdb-failed have a
consistent output scheme ('%-25s' for host width, etc)
* Thu Feb 5 2015 Tim Skirvin <[email protected]> 2-4
- puppetdb-report-uptime - new script that reports on uptimes/kernels
* Mon Oct 20 2014 Tim Skirvin <[email protected]> 2-3
- puppetdb-manager - lists hosts with associated primaries/secondaries
- puppetdb-failed - now prints system role along with the hostname
- puppetdb-tooquiet - now prints system role along with the hostname
- puppetdb-tooquiet - now following central json config
* Mon Oct 20 2014 Tim Skirvin <[email protected]> 2-2
- puppetdb-node-csv - now prints primary/secondary as well
* Thu Mar 06 2014 Tim Skirvin <[email protected]> 2-1
- puppetdb-node-csv - new script
- puppetdb-failed - only lists puppetdb nodes that are active
- puppetdb-failed, puppetdb-tangled - now returns in sorted order
* Thu Mar 06 2014 Tim Skirvin <[email protected]> 2-0
- added puppetdb-node-failed and puppetdb-node-tangled
- puppetdb-tooquiet changed its text
- added central configuration file in /etc/puppetdb
* Mon Feb 24 2014 Tim Skirvin <[email protected]> 1-3
- now pointing at cmspuppetdb1
- puppetdb-node-events now points at v3 API
* Mon Feb 24 2014 Tim Skirvin <[email protected]> 1-2
- cleanup for local build system and spec file
* Tue Jun 04 2013 Tim Skirvin <[email protected]> 1-1
- initial version: puppetdb-node-events
- initial version: puppetdb-node-report
- initial version: puppetdb-node-resources
* Tue Jun 04 2013 Tim Skirvin <[email protected]> 1-0
- initial version: puppetdb-tooquiet