-
Notifications
You must be signed in to change notification settings - Fork 20
/
rho.spec
189 lines (163 loc) · 8.85 KB
/
rho.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
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: rho
Version: 0.0.27
Release: 1%{?dist}
Summary: An SSH system profiler
Group: Applications/Internet
License: GPLv2
URL: https://github.com/candlepin/rho
Source0: http://alikins.fedorapeople.org/files/rho/rho-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python-paramiko
Requires: python-netaddr
Requires: python-simplejson
Requires: python-crypto
%description
Rho is a tool for scanning your network, logging into systems via SSH, and
retrieving information about them.
%prep
%setup -q
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
install -D -p -m 644 doc/rho.1 $RPM_BUILD_ROOT%{_mandir}/man1/rho.1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README AUTHORS COPYING
%{_bindir}/rho
%{python_sitelib}/*
%{_mandir}/man1/rho.1.gz
%changelog
* Mon Oct 17 2016 Alex Wood <[email protected]> 0.0.27-1
- Added 4 date commands to help determine when a server was built.
* Tue Sep 13 2016 Christopher Snyder <[email protected]> 0.0.26-1
- - Added additional columns to the pack-scan report generated by the
initconfig command. The current pack-scan format does not include error,
auth.name, and auth.username fields that are helpful when troubleshooting.
The other fields are added to get additional visibility into all fields Rho
can collect. - replaced some key dmidecode commands that used switches not
available on older versions of RHEL with commands that work on all versions
of RHEL. ([email protected])
- fix srpm_disttag ([email protected])
- update srpm_disttag, and fedora release targets ([email protected])
* Thu Feb 11 2016 jesus m. rodriguez <[email protected]> 0.0.25-1
- added error checking for missing Red Hat packages scan ([email protected])
- add disttag ([email protected])
* Tue Nov 25 2014 jesus m. rodriguez <[email protected]> 0.0.24-1
- fix auth (add|edit) man page entries. ([email protected])
* Mon Nov 24 2014 jesus m. rodriguez <[email protected]> 0.0.23-1
- update doc to reference actual variable used in code ([email protected])
- add an example of using --report ([email protected])
* Thu Aug 07 2014 cnsnyder <[email protected]> 0.0.22-1
- update releasers ([email protected])
- add f21 ([email protected])
- add releasers.conf for tito ([email protected])
- Updates docs to describe use of the new report command. ([email protected])
- Updates URL to current git repo url. ([email protected])
- removes the now uncessary pack-scan.sh script ([email protected])
- Adds initconfig command to generate a default config with some preset data. (plus tests) ([email protected])
- Adds report module (and tests) with commands largely matching profile. ([email protected])
- Updates README to include a brief section on the pack-scan.sh script. ([email protected])
- Updates man page with info on option --hosts where appropriate. ([email protected])
- Changes field names to match the changes to the rho_cmds classes. Moves pack-scan.sh to /bin. ([email protected])
* Tue Jul 22 2014 jesus m. rodriguez <[email protected]> 0.0.21-1
- Adds a RhoCmd and smoke test for subman facts --list ([email protected])
- Fixes VirtWhatRhoCmd.parse_data() exit code checking. ([email protected])
- Changes test_scan_show_fields() to use assertRaises(). ([email protected])
- Fixes date test. Adds redhat-packages tests for new fields. ([email protected])
- Uses open() instead of file(). ([email protected])
- Fixes indexes of command results. ([email protected])
- Adds tests for RedhatPackagesRhoCmd. ([email protected])
- Adds tests for fields date.date and cpu.socket_count ([email protected])
- Adds smoke test for VirtWhatRhoCmd. ([email protected])
- Adds new field virt.num_running_guests. ([email protected])
- Pulls virt-what out of VirtRhoCmd and into VirtWhatRhoCmd. ([email protected])
- Changes PkgInfo separator to required arg. ([email protected])
- Removes unused imports. General code clean up. ([email protected])
- Splits redhat-packages.ratio into two fields. ([email protected])
- Adds install_date and build_date to rpm query. Updates PkgInfo to use these dates. ([email protected])
- Renames MiscRhoCmd to DateRhoCmd and updates fields accordingly. ([email protected])
- Scanner now defaults to explicit list of default commands in rho_cmds. ([email protected])
- remove trailing whitespace ([email protected])
- Adds virt.num_guests field to pack-scan report script. ([email protected])
- Adds virt.num_guests field to VirtRhoCmd class. ([email protected])
- Adds default of '' to scan --hosts option ([email protected])
- Adds pack-scan.sh [USERNAME] [/path/to/file_of_hosts] ([email protected])
- Adds --hosts option to the scan command. ([email protected])
- Adds test for profile add --hosts and fixes up other tests ([email protected])
- chmod -x clicommands-tests.py to enable testing with nosetests ([email protected])
- Adds new option --hosts [path/to/file_of_hosts] to add a file of comma seperated hostnames to a profile. ([email protected])
- Adds new cpu report field cpu.socket_count. ([email protected])
- Adds RedHatPackagesRhoCmd that provides fields pertaining to Red Hat packages installed on a system. ([email protected])
- Adds MiscRhoCmd class for all miscellaneous commands. ([email protected])
- Adds virt-what command to help determine virt.virt and virt.type fields ([email protected])
- Scanner loads all cmds defined in rho_cmds and not in NONDEFAULT_CMDS. ([email protected])
- stylish cleanups for setup.py ([email protected])
- Include gettext if we use it. ([email protected])
- Remove unused 'string' import. ([email protected])
- stylish cleanups ([email protected])
- import gettext ([email protected])
- autopep8'ify PBKDF2.py ([email protected])
- autopep8'ify the code because it needs it. ([email protected])
- added rhel 5 dep for python: python-simplejson ([email protected])
* Wed Nov 18 2009 Adrian Likins <[email protected]> 0.0.20-1
- RHEL5 is using an even older version of python-netaddr that requires most API
transmogrifying. Namely, lack of netaddr.IP class. ([email protected])
* Fri Nov 13 2009 Adrian Likins <[email protected]> 0.0.19-1
- Merge Fedora Package review spec changes from Mark McLoughlin
- Add the config file version to the begining of the encrypted config file as
well ([email protected])
- Change the AES ciper mode of CFB and store/retrive a 16bit initialization
vector for use with CFB. ([email protected])
- Use a different salt each time we say the file. ([email protected])
* Fri Nov 13 2009 Mark McLoughlin <[email protected]> - 0.0.16-2
- Include egg info
- Drop the -O1 arg from 'setup.py install'
- Don't chdir for manpage install
- Kill some whitespace
* Wed Nov 11 2009 Adrian Likins <[email protected]> 0.0.16-1
- Add a RhoCmd class for detecting if we are a virt guest or host
* Wed Nov 04 2009 Adrian Likins <[email protected]> 0.0.15-1
- add bits generated to .gitignore (shut up git) ([email protected])
- Don't use weird style of classes on 2.4, use Class(object)
- A few more tweaks to make Queue24 work the same way as the Queue.Queue in
2.6. ([email protected])
- On python2.4 (aka, rhel5) Queue.Queue doesn't have the .join or .task_done
methods, which we use and like. So check for them and if they aren't there,
use our own implementation (pretty much c&p from the 2.6 version of
Queue.Queue). A little ugly, but alas. ([email protected])
- use new style classes, python2.4 doesn't like class FOO()
* Tue Nov 03 2009 Adrian Likins <[email protected]> 0.0.13-1
- Fix a bug where we weren't actually consuming the Queue if there weren't as
many or more threads than hosts. ([email protected])
- remove --debug option, it doesn't do anything ([email protected])
* Sat Oct 31 2009 Devan Goodwin <[email protected]> 0.0.11-1
- Support Netaddr > 0.7 ([email protected])
- add a DmiRhoCmd. Grab some basic DMI info. ([email protected])
- fix wrong help in "rho profile show" (profile, not auth)
* Thu Oct 29 2009 Adrian Likins <[email protected]> 0.0.10-1
- add SourceURL
- remove ssh_queue.py
- fix man page install
* Wed Oct 28 2009 Devan Goodwin <[email protected]> 0.0.6-1
- Fix "rho scan nosuchprofile". ([email protected])
- Update README. ([email protected])
* Tue Oct 27 2009 Devan Goodwin <[email protected]> 0.0.5-1
- Too many features/bugfixes to list. Approaching first release.
* Wed Oct 21 2009 Devan Goodwin <[email protected]> 0.0.2-1
- Beginning to get usable.
* Thu Oct 15 2009 Devan Goodwin <[email protected]> 0.0.1-1
- Initial packaging.