Alon Bar-Lev has uploaded a new change for review.

Change subject: packaging: setup: database: align manual instructions with 
defaults
......................................................................

packaging: setup: database: align manual instructions with defaults

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1067548
Change-Id: I3bc5329aff8898f406eb02f3544e165b115ea9b4
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M packaging/setup/plugins/ovirt-engine-setup/ovirt-engine-dwh/db/connection.py
1 file changed, 8 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-dwh refs/changes/10/25510/1

diff --git 
a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine-dwh/db/connection.py 
b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine-dwh/db/connection.py
index 193ebe0..c131813 100644
--- 
a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine-dwh/db/connection.py
+++ 
b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine-dwh/db/connection.py
@@ -135,15 +135,18 @@
                     "Please create database for ovirt-engine-dwh use. "
                     "Use the following commands as an example:\n"
                     "\n"
-                    "create role engine_history with login encrypted password "
-                    "'engine_history';"
-                    "create database engine_history owner engine_history "
+                    "create role {user} with login encrypted password "
+                    "'{user}';\n"
+                    "create database {database} owner {user} "
                     "template template0\n"
-                    "encoding 'UTF8' lc_collate 'en_US.UTF-8'\n"
-                    "lc_ctype 'en_US.UTF-8';\n"
+                    " encoding 'UTF8' lc_collate 'en_US.UTF-8'\n"
+                    " lc_ctype 'en_US.UTF-8';\n"
                     "\n"
                     "Make sure that database can be accessed remotely.\n"
                     "\n"
+                ).format(
+                    user=odwhcons.Defaults.DEFAULT_DB_USER,
+                    database=odwhcons.Defaults.DEFAULT_DB_DATABASE,
                 ),
             )
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3bc5329aff8898f406eb02f3544e165b115ea9b4
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-dwh
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to