Alex Lourie has uploaded a new change for review.

Change subject: packaging: setup: update Makefile and spec to include DB 
settings
......................................................................

packaging: setup: update Makefile and spec to include DB settings

Related-To: https://bugzilla.redhat.com/1026089
Change-Id: I8bbe4b4b3a156d127a938cac089272c3ae3fcd90
Signed-off-by: Alex Lourie <alou...@redhat.com>
---
M Makefile
A packaging/10-setup-database-dwh.conf
M packaging/ovirt-engine-dwh.spec.in
3 files changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-dwh refs/changes/44/21144/1

diff --git a/Makefile b/Makefile
index 7b24db7..b08e21b 100644
--- a/Makefile
+++ b/Makefile
@@ -152,6 +152,7 @@
        install -d $(DESTDIR)$(DATA_DIR)/etl
        install -d $(DESTDIR)$(DATA_DIR)/db-scripts
        install -d $(DESTDIR)$(SYSCONF_DIR)/ovirt-engine/$(OVIRT_DWH_NAME)
+       install -d $(DESTDIR)$(SYSCONF_DIR)/$(OVIRT_DWH_NAME)/engine-dwh.conf.d
        install -d $(DESTDIR)$(SYSCONF_DIR)/cron.hourly
        install -d $(DESTDIR)$(SYSCONF_DIR)/logrotate.d
 
@@ -163,6 +164,7 @@
        cp -a  data-warehouse/history_etl/context_files/* 
$(DESTDIR)$(DATA_DIR)/etl
        cp -r -a  data-warehouse/historydbscripts_postgres/* 
$(DESTDIR)$(DATA_DIR)/db-scripts
        install -p -m 660 
data-warehouse/history_etl/context_files/ovirt_engine_dwh/historyetl_3_3/contexts/Default.properties
 $(DESTDIR)$(SYSCONF_DIR)/ovirt-engine/$(OVIRT_DWH_NAME)
+       install -p -m 660 packaging/10-setup-database-dwh.conf 
$(DESTDIR)$(SYSCONF_DIR)/$(OVIRT_DWH_NAME)/engine-dwh.conf.d
        install -p -m 644 packaging/resources/$(OVIRT_DWH_NAME)d.logrotate 
$(DESTDIR)$(SYSCONF_DIR)/logrotate.d/$(OVIRT_DWH_NAME)d
        install -p -m 755 packaging/resources/ovirt_engine_dwh_watchdog.cron 
$(DESTDIR)$(SYSCONF_DIR)/cron.hourly
 
diff --git a/packaging/10-setup-database-dwh.conf 
b/packaging/10-setup-database-dwh.conf
new file mode 100644
index 0000000..00468e3
--- /dev/null
+++ b/packaging/10-setup-database-dwh.conf
@@ -0,0 +1,3 @@
+DWH_USER=engine_history
+DWH_PASSWORD=
+DWH_DATABASE=ovirt_engine_history
diff --git a/packaging/ovirt-engine-dwh.spec.in 
b/packaging/ovirt-engine-dwh.spec.in
index c156b9d..69977df 100644
--- a/packaging/ovirt-engine-dwh.spec.in
+++ b/packaging/ovirt-engine-dwh.spec.in
@@ -130,6 +130,9 @@
 %{_mavenpomdir}/JPP.%{name}-*
 %endif
 
+%dir %attr(-, %{engine_user}, %{engine_group}) 
%{_sysconfdir}/%{dwh_name}/engine-dwh.conf.d
+%config(noreplace) 
%{_sysconfdir}/%{dwh_name}/engine-dwh.conf.d/10-setup-database-dwh.conf
+
 %dir %{_sysconfdir}/ovirt-engine/%{dwh_name}
 %{_initddir}/%{dwh_name}d
 %config(noreplace) %{_sysconfdir}/logrotate.d/%{dwh_name}d


-- 
To view, visit http://gerrit.ovirt.org/21144
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8bbe4b4b3a156d127a938cac089272c3ae3fcd90
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-dwh
Gerrit-Branch: master
Gerrit-Owner: Alex Lourie <alou...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to