forked from tskirvin/omdclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathomdclient.spec
107 lines (82 loc) · 3.38 KB
/
omdclient.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
Name: omdclient
Group: System Environment/Libraries
Version: 1.1.7
Release: 0%{?dist}
Summary: OMD/WATO API check_mk connection tools for puppet
URL: http://github.com/tskirvin/omdclient.git
License: Artistic 2.0
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: rsync shyaml moreutils python-beautifulsoup4 python-requests
BuildRequires: rsync
Source: omdclient-%{version}-%{release}.tar.gz
%description
Tools to interact with the OMD/WATO API for check_mk, and to tie them
into puppet.
%prep
%setup -q -c -n omdclient
%build
# Empty build section added per rpmlint
%install
if [[ $RPM_BUILD_ROOT != "/" ]]; then
rm -rf $RPM_BUILD_ROOT
fi
for i in etc usr; do
rsync -Crlpt --delete ./${i} ${RPM_BUILD_ROOT}
done
for i in bin sbin; do
if [ -d ${RPM_BUILD_ROOT}/$i ]; then
chmod 0755 ${RPM_BUILD_ROOT}
fi
done
mkdir -p ${RPM_BUILD_ROOT}/usr/share/man/man1
for i in `ls usr/bin`; do
pod2man --section 1 --center="System Commands" usr/bin/${i} \
> ${RPM_BUILD_ROOT}/usr/share/man/man1/${i}.1 ;
done
python setup.py install --prefix=${RPM_BUILD_ROOT}/usr
%clean
# Adding empty clean section per rpmlint. In this particular case, there is
# nothing to clean up as there is no build process
%files
%defattr(-,root,root)
%config(noreplace) /etc/omdclient/config.yaml
%config(noreplace) /etc/omdclient/place.holder
%{_bindir}/omd-*
/usr/share/man/man1/*
/usr/libexec/omdclient/git-hooks/*
/usr/lib*/python*/site-packages/*
/etc/omdclient/*
%changelog
* Tue Mar 24 2017 Tim Skirvin <tskirvin@fnal.gov> 1.1.7-0
- omd-nagios-report - now deals with UTF-8 better
* Tue Mar 24 2017 Tim Skirvin <tskirvin@fnal.gov> 1.1.6-0
- omd-nagios-hostlist
- some additional changes from epleterte involving IP addresses
- omdclient/__init.py__ - inventories can now choose to do tabula rasa
- omd-reinventory - allowed to select tabula rasa
- omd-activate - allows us to activate foreign keys
* Tue Jun 21 2016 Tim Skirvin <tskirvin@fnal.gov> 1.1.5-1
- omdclient/__init.py__ - inventories can now choose to do tabula rasa
- omd-reinventory - allowed to select tabula rasa
- omd-activate - allows us to activate foreign keys
* Tue Jun 21 2016 Tim Skirvin <tskirvin@fnal.gov> 1.1.5-0
- omdclient/__init.py__ - inventories now do tabula rasa refresh
* Tue Jun 21 2016 Tim Skirvin <tskirvin@fnal.gov> 1.1.4-0
- omd-nagios-hosts-with-problem - discover hosts with a given problem
- omd-reinventory - start a reinventory of a given host
* Wed Jun 15 2016 Tim Skirvin <tskirvin@fnal.gov> 1.1.3-0
- omd-nagos-report - skips errors on service prints rather than crashing
- omdclient/__init__.py - actually sets downtimes now (I had the required
date format wrong)
* Thu Jun 25 2015 Tim Skirvin <tskirvin@fnal.gov> 1.1.2-0
- omd-puppet-crud - adds 'inventory' option (kinda cheating)
* Thu Jun 25 2015 Tim Skirvin <tskirvin@fnal.gov> 1.1.2-0
- omd-puppet-enc - sends shyaml errors to stderr
* Thu Jun 25 2015 Tim Skirvin <tskirvin@fnal.gov> 1.1.1-0
- omd-puppet-enc - sends shyaml errors to stderr
* Mon Jun 15 2015 Tim Skirvin <tskirvin@fnal.gov> 1.1.0-0
- added omd-nagios-report, omd-nagios-ack, omd-nagios-downtime
- fixed the git post-receive hook
* Mon Jun 15 2015 Tim Skirvin <tskirvin@fnal.gov> 1.0.0-0
- initial commit