Add default solar.yaml config

Change-Id: Ifbbbdfa5cddbff1860d342bd05db004e57a89d37
This commit is contained in:
alexz 2016-03-03 13:19:52 +02:00
parent d06c647c28
commit 85152234a8
3 changed files with 12 additions and 8 deletions

View File

@ -1,8 +0,0 @@
celery_broker: sqla+sqlite:////tmp/celery.db
celery_backend: db+sqlite:////tmp/celery.db
solar_db: sqlite:////tmp/solar.db
# solar_db: postgresql:///postgres:password@10.0.0.2:5432/solardb
# solar_db: riak://10.0.0.2:8087
riak_ensemble: False
lock_bucket_type: ''
counters_bucket_type: ''

View File

@ -0,0 +1,10 @@
---
celery_backend: "db+sqlite:////tmp/celery.db"
celery_broker: "sqla+sqlite:////tmp/celery.db"
counters_bucket_type: ""
lock_bucket_type: ""
riak_ensemble: false
# solar_db: "sqlite:////tmp/solar.db"
# Example:
# solar_db: "postgresql:///postgres:password@10.0.0.2:5432/solardb"
# solar_db: "riak://10.0.0.2:8087"

View File

@ -56,9 +56,11 @@ cd %{_builddir}/%{name}-%{version} && PBR_VERSION=%{version} python setup.py bui
%install
cd %{_builddir}/%{name}-%{version} && PBR_VERSION=%{version} python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=%{_builddir}/%{name}-%{version}/INSTALLED_FILES
install -p -D -m 644 %{_builddir}/%{name}-%{version}/etc/solar/solar.yaml.sample %{buildroot}%{_sysconfdir}/solar/solar.yaml
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{_builddir}/%{name}-%{version}/INSTALLED_FILES
%config(noreplace) %{_sysconfdir}/solar/solar.yaml.sample