Initial import (#1219540).
This commit is contained in:
parent
5b51f2650d
commit
eaf718cebb
8 changed files with 115 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -0,0 +1 @@
|
|||
/ahc-tools-0.2.0.tar.gz
|
||||
74
ahc-tools.spec
Normal file
74
ahc-tools.spec
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
%{?!_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
|
||||
|
||||
14
compute.cmdb.example
Normal file
14
compute.cmdb.example
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[{'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}]
|
||||
5
compute.specs
Normal file
5
compute.specs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
('disk', '$disk', 'size', 'gt(4)'),
|
||||
('network', '$eth', 'ipv4', 'network(192.0.2.0/24)'),
|
||||
('memory', 'total', 'size', 'ge(4294967296)'),
|
||||
]
|
||||
14
control.cmdb.example
Normal file
14
control.cmdb.example
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[{'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}]
|
||||
5
control.specs
Normal file
5
control.specs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
('disk', '$disk', 'size', 'gt(4)'),
|
||||
('network', '$eth', 'ipv4', 'network(192.0.2.0/24)'),
|
||||
('memory', 'total', 'size', 'ge(4294967296)'),
|
||||
]
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
4a45f11e2a54eabbe0b8ec73bb336fd4 ahc-tools-0.2.0.tar.gz
|
||||
1
state
Normal file
1
state
Normal file
|
|
@ -0,0 +1 @@
|
|||
[('control', '1'), ('compute', '*')]
|
||||
Reference in a new issue