From 21f4b55f16725cfe0af2928e8d0de3f1792caedc Mon Sep 17 00:00:00 2001 From: Vladimir Kozhukalov Date: Tue, 14 Jul 2015 14:32:42 +0300 Subject: [PATCH] Added infrastructure files * .gitreview * .gitignore * run_tests.sh * specs/fuel-agent.spec Change-Id: Id4f3ca3f44dbb40bd8da8a51f76d42459ea61c85 --- .gitignore | 19 +++++++++++ .gitreview | 5 +++ run_tests.sh | 20 ++++++++++++ specs/fuel-agent.spec | 76 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 120 insertions(+) create mode 100644 .gitignore create mode 100644 .gitreview create mode 100755 run_tests.sh create mode 100644 specs/fuel-agent.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ecfa440 --- /dev/null +++ b/.gitignore @@ -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 diff --git a/.gitreview b/.gitreview new file mode 100644 index 0000000..5d60d29 --- /dev/null +++ b/.gitreview @@ -0,0 +1,5 @@ +[gerrit] +host=review.openstack.org +port=29418 +project=stackforge/fuel-agent.git + diff --git a/run_tests.sh b/run_tests.sh new file mode 100755 index 0000000..e83b2d6 --- /dev/null +++ b/run_tests.sh @@ -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 diff --git a/specs/fuel-agent.spec b/specs/fuel-agent.spec new file mode 100644 index 0000000..0683279 --- /dev/null +++ b/specs/fuel-agent.spec @@ -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/*