Added infrastructure files

* .gitreview
* .gitignore
* run_tests.sh
* specs/fuel-agent.spec

Change-Id: Id4f3ca3f44dbb40bd8da8a51f76d42459ea61c85
This commit is contained in:
Vladimir Kozhukalov 2015-07-14 14:32:42 +03:00
parent 8ebe1f0c54
commit 21f4b55f16
4 changed files with 120 additions and 0 deletions

19
.gitignore vendored Normal file
View File

@ -0,0 +1,19 @@
.venv
*.pyc
# vim swap files
.*.swp
# services' runtime files
*.log
*.pid
build
dist
*.egg
.testrepository
.tox
.idea
.DS_Store
*.egg-info

5
.gitreview Normal file
View File

@ -0,0 +1,5 @@
[gerrit]
host=review.openstack.org
port=29418
project=stackforge/fuel-agent.git

20
run_tests.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
# Copyright 2015 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
set -e
set -x
tox -v

76
specs/fuel-agent.spec Normal file
View File

@ -0,0 +1,76 @@
%define name fuel-agent
%{!?version: %define version 7.0.0}
%{!?release: %define release 1}
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
Summary: Fuel-agent package
URL: http://mirantis.com
License: Apache
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Prefix: %{_prefix}
BuildRequires: git
BuildRequires: python-setuptools
BuildRequires: python-pbr
BuildArch: noarch
Requires: python
Requires: python-babel
Requires: python-eventlet
Requires: python-jsonschema
Requires: python-oslo-config
Requires: python-oslo-serialization >= 1.0.0
Requires: python-iso8601
Requires: python-six
Requires: python-stevedore
Requires: python-jinja2
Requires: python-requests
Requires: python-urllib3
Requires: PyYAML
Requires: python-argparse
Requires: python-pbr
Requires: tar
Requires: gzip
Requires: bzip2
Requires: openssh-clients
Requires: mdadm
Requires: util-linux-ng
Requires: udev
Requires: lvm2
Requires: dmidecode
Requires: parted
Requires: cloud-utils
Requires: e2fsprogs
Requires: gdisk
Requires: genisoimage
Requires: xfsprogs
Requires: pciutils
Requires: ethtool
%description
Fuel-agent package
%prep
%setup -cq -n %{name}-%{version}
%build
cd %{_builddir}/%{name}-%{version} && python setup.py build
%install
cd %{_builddir}/%{name}-%{version} && python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=%{_builddir}/%{name}-%{version}/INSTALLED_FILES
install -d -m 755 %{buildroot}%{_sysconfdir}/fuel-agent
install -p -D -m 644 %{_builddir}/%{name}-%{version}/etc/fuel-agent/fuel-agent.conf.sample %{buildroot}%{_sysconfdir}/fuel-agent/fuel-agent.conf
# Install template file
install -d -m 755 %{buildroot}%{_datadir}/fuel-agent/cloud-init-templates
install -p -D -m 644 %{_builddir}/%{name}-%{version}/cloud-init-templates/* %{buildroot}%{_datadir}/fuel-agent/cloud-init-templates
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{_builddir}/%{name}-%{version}/INSTALLED_FILES
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/fuel-agent/fuel-agent.conf
%{_datadir}/fuel-agent/cloud-init-templates/*