This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
forked from candlepin/rho
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrho.spec
274 lines (241 loc) · 12.9 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
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
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: rho
Version: 0.0.34
Release: 1%{?dist}
Summary: An SSH system profiler
Group: Applications/Internet
License: GPLv2
URL: http://github.com/quipucords/rho
Source0: http://github.com/quipucords/rho/archive/master.tar.gz
%if 0%{?rhel}
%global py2_prefix python
%else
%global py2_prefix python2
%endif
BuildArch: noarch
BuildRequires: %{py2_prefix}-devel
BuildRequires: %{py2_prefix}-setuptools
BuildRequires: pandoc
BuildRequires: %{py2_prefix}-crypto
Requires: %{py2_prefix}-netaddr
Requires: ansible
%{?fedora:Requires: python2-pexpect}
%{?rhel:Requires: pexpect}
Requires: %{py2_prefix}-six
Requires: %{py2_prefix}-enum34
%{?fedora:Requires: python2-pyyaml}
%{?rhel:Requires: PyYAML}
%{?rhel:Requires: epel-release}
Requires: python2-future
Requires: python2-sh
%{?fedora:Requires: python2-pyxdg}
%{?rhel:Requires: pyxdg}
%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
make manpage
%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
mkdir -p %{buildroot}%{_datadir}/ansible/%{name}
cp rho_playbook.yml %{buildroot}%{_datadir}/ansible/%{name}
cp -rp roles %{buildroot}%{_datadir}/ansible/%{name}/
%files
%defattr(-,root,root,-)
%doc README.rst AUTHORS.rst COPYING
%{_bindir}/rho
%{python_sitelib}/*
%{_mandir}/man1/rho.1.gz
%dir %{_datadir}/ansible/%{name}
%{_datadir}/ansible/%{name}/rho_playbook.yml
%{_datadir}/ansible/%{name}/roles/*
%changelog
* Mon May 28 2018 Christopher Hambridge <[email protected]> 0.0.34-1
- Update Python 2 dependency for EPEL support
- Bug fix for unicode processing ([email protected])
- Bug fix for rpm output to /dev/null ([email protected])
* Thu Apr 19 2018 Iryna Shcherbina <[email protected]> - 0.0.33-2
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Wed Mar 21 2018 Noah Lavine <[email protected]> 0.0.33-1
- Bug fix to Ansible task bash globbing ([email protected])
- Bug fix for unicode truncation ([email protected])
* Thu Feb 15 2018 Christopher Hambridge <[email protected]> 0.0.32-6
- Bug fix to resolve missing release Engineering clean up
* Wed Feb 14 2018 Christopher Hambridge <[email protected]> 0.0.32-1
- Bug fix to resolve unreachable processing when using sshkeyfile for connection
- Bug fix for cpu core count on vmware
* Fri Feb 09 2018 Fedora Release Engineering <[email protected]> - 0.0.31-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Tue Jan 9 2018 Christopher Hambridge <[email protected]> 0.0.31-2
- Enhancements to handle target system timeouts ([email protected])
- Enhancements to capture JBoss products installation state ([email protected])
- Bug fix to resolve RHEL6 install support ([email protected])
* Wed Nov 29 2017 Noah Lavine <[email protected]> 0.0.31-1
- Enhancements to capture presence of JBoss Fuse from init subscriptions
- Enhancements to find common JBoss Fuse files using locate command
- Enhancements to find common JBoss BRMS files using locate command
* Wed Nov 8 2017 Noah Lavine <[email protected]> 0.0.30-1
- Enhancements to capture presence of EAP from init subscriptions
- Enhancements to find common EAP files using locate command
* Thu Nov 2 2017 Noah Lavine <[email protected]> 0.0.29-1
- Split JBoss scanning into full and lightweight scans; lightweight scan is
active by default. ([email protected])
- Enhancements of JBoss lightweight scanning for EAP common files and
directories and capturing the JBoss user. ([email protected])
- Bug fix for handling systems that do not report rpm data.([email protected])
- Bug fix for systems that report etc_release differently.([email protected])
- Bug fix for non-sudo user task handling.([email protected])
- Bug fix for invalid host range input.([email protected])
- Enhancements to gather cpu core count, cpu hyperthreading, Red Hat
certificates, consumed subscriptions, rpm data filtered by GPG keys.
- Enhancement to provide user with more knowledge during the discovery process.
* Thu Sep 21 2017 Christopher Hambridge <[email protected]> 0.0.28-5
- Updated to utilize Ansible 2.3.1.0 and an Ansible playbook and associate
roles.
- Encryption of auth credential entries and network profile entries using a
password and Ansible vault.
- Added additional error checking with associated messages and more user
feedback on success.
- Added ability to create a network profile with a specified ssh port value.
- Added support for scans with sudo user both with and without password.
- Extracted fact information that can be obtaind during a scan into a new
subcommand.
- Provided updated scan options to utilize Ansible. Capturing data in console
and within a log file, additionally tying into the Ansible verbosity levels.
Tune the number of concurrent ssh connections.
- Added the capability to hash values from within a generated report.
* 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.