Compare commits

...
This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.

1 commit

Author SHA1 Message Date
John Trowbridge
086592b983 Upstream project has been split up and included in other projects 2016-02-16 06:30:22 -05:00
9 changed files with 1 additions and 115 deletions

1
.gitignore vendored
View file

@ -1 +0,0 @@
/ahc-tools-0.2.0.tar.gz

View file

@ -1,74 +0,0 @@
%{?!_licensedir:%global license %%doc}
%{!?upstream_version: %global upstream_version %{version}}
Name: ahc-tools
Summary: Tools for RDO-Manager automatic health checks
Version: 0.2.0
Release: 1%{?dist}
License: ASL 2.0
URL: https://pypi.python.org/pypi/ahc-tools
Source0: https://pypi.python.org/packages/source/a/ahc-tools/ahc-tools-%{upstream_version}.tar.gz
Source1: compute.specs
Source2: control.specs
Source3: state
Source4: compute.cmdb.example
Source5: control.cmdb.example
BuildArch: noarch
BuildRequires: python-setuptools
BuildRequires: python2-devel
BuildRequires: python-pbr
Requires: python-hardware
Requires: python-ironicclient
Requires: python-swiftclient
Requires: python-oslo-config
%description
Reporting and matching tools for RDO-manager automatic health checks.
%prep
%autosetup -v -p 1 -n %{name}-%{upstream_version}
rm -rf *.egg-info
# Remove the requirements file so that pbr hooks don't add it
# to distutils requires_dist config
rm -rf {test-,}requirements.txt tools/{pip,test}-requires
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
# configuration contains passwords, thus 640
install -p -D -m 640 example.conf %{buildroot}/%{_sysconfdir}/ahc-tools/ahc-tools.conf
# edeploy matching configuration files
install -p -D -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/ahc-tools/edeploy/compute.specs
install -p -D -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/ahc-tools/edeploy/control.specs
install -p -D -m 644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/ahc-tools/edeploy/state
install -p -D -m 644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/ahc-tools/edeploy/compute.cmdb.example
install -p -D -m 644 %{SOURCE5} %{buildroot}/%{_sysconfdir}/ahc-tools/edeploy/control.cmdb.example
%files
%license LICENSE
%config(noreplace) %attr(-,root,root) %{_sysconfdir}/ahc-tools
%doc README.rst
%{python2_sitelib}/ahc_tools*
%exclude %{python2_sitelib}/ahc_tools/test*
%{_bindir}/ahc-report
%{_bindir}/ahc-match
%changelog
* Fri Jun 19 2015 John Trowbridge <trown@redhat.com> - 0.2.0-1
- Add ahc-tools.conf to store Ironic and Swift API credentials
- Add dependency on python-swiftclient
* Fri May 08 2015 John Trowbridge <trown@redhat.com> - 0.1.1-1
- Add default configuration for using edeploy matching
* Tue Apr 28 2015 John Trowbridge <jtrowbri@redhat.com> - 0.1.0-1
- Initial package build

View file

@ -1,14 +0,0 @@
[{'bios_settings': {'ProcVirtualization': 'Enabled'},
'logical_disks': ({'disk_type': 'hdd',
'interface_type': 'sas',
'is_root_volume': 'true',
'raid_level': '1+0',
'size_gb': 50,
'volume_name': 'root_volume'},
{'disk_type': 'hdd',
'interface_type': 'sas',
'number_of_physical_disks': 3,
'raid_level': '5',
'size_gb': 100,
'volume_name': 'data_volume'}),
'used': 1}]

View file

@ -1,5 +0,0 @@
[
('disk', '$disk', 'size', 'gt(4)'),
('network', '$eth', 'ipv4', 'network(192.0.2.0/24)'),
('memory', 'total', 'size', 'ge(4294967296)'),
]

View file

@ -1,14 +0,0 @@
[{'bios_settings': {'ProcVirtualization': 'Disabled'},
'logical_disks': ({'disk_type': 'hdd',
'interface_type': 'sas',
'is_root_volume': 'true',
'raid_level': '1+0',
'size_gb': 50,
'volume_name': 'root_volume'},
{'disk_type': 'hdd',
'interface_type': 'sas',
'number_of_physical_disks': 3,
'raid_level': '5',
'size_gb': 100,
'volume_name': 'data_volume'}),
'used': 1}]

View file

@ -1,5 +0,0 @@
[
('disk', '$disk', 'size', 'gt(4)'),
('network', '$eth', 'ipv4', 'network(192.0.2.0/24)'),
('memory', 'total', 'size', 'ge(4294967296)'),
]

1
dead.package Normal file
View file

@ -0,0 +1 @@
Upstream project has been split up and included in other projects

View file

@ -1 +0,0 @@
4a45f11e2a54eabbe0b8ec73bb336fd4 ahc-tools-0.2.0.tar.gz

1
state
View file

@ -1 +0,0 @@
[('control', '1'), ('compute', '*')]