[os-collect-config] Add default config file
Steven Dake
sdake at fedoraproject.org
Tue Feb 25 19:00:40 UTC 2014
commit dbaae76631c48f7becd7d8e33a4ee760dcc88b6e
Author: Steven Dake <sdake at redhat.com>
Date: Tue Feb 25 12:01:19 2014 -0700
Add default config file
os-collect-config.conf | 2 ++
os-collect-config.spec | 8 +++++++-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/os-collect-config.conf b/os-collect-config.conf
new file mode 100644
index 0000000..b4b0c6f
--- /dev/null
+++ b/os-collect-config.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+command=os-refresh-config
diff --git a/os-collect-config.spec b/os-collect-config.spec
index 4706fe2..8862de4 100644
--- a/os-collect-config.spec
+++ b/os-collect-config.spec
@@ -1,12 +1,13 @@
Name: os-collect-config
Version: 0.1.11
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Collect and cache metadata running hooks on changes
License: ASL 2.0
URL: http://pypi.python.org/pypi/%{name}
Source0: http://tarballs.openstack.org/%{name}/%{name}-%{version}.tar.gz
Source1: os-collect-config.service
+Source2: os-collect-config.conf
Patch0001: 0001-Remove-pbr-runtime-dependency-and-replace-with-build.patch
@@ -49,6 +50,7 @@ sed -i s/REDHATOSCOLLECTCONFIGRELEASE/%{release}/ os_collect_config/version.py
%install
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
install -p -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/os-collect-config.service
+install -p -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/os-collect-config.conf
%post
%systemd_post os-collect-config.service
@@ -63,10 +65,14 @@ install -p -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/os-collect-config.servic
%doc README.rst
%doc LICENSE
%{_bindir}/os-collect-config
+%config(noreplace) %attr(-, root, root) %{_sysconfdir}/os-collect-config.conf
%{python_sitelib}/os_collect_config*
%{_unitdir}/os-collect-config.service
%changelog
+* Tue Feb 24 2014 Steven Dake <sdake at redhat.com> - 0.1.11-5
+- install a os-collect-config default conf file
+
* Mon Feb 24 2014 Steven Dake <sdake at redhat.com> - 0.1.11-4
- Make runtime version calculation instead of using python-pbr
More information about the scm-commits
mailing list