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

Change subject: services: add package information to configuration
......................................................................

services: add package information to configuration

as long as we use mead there is no way to pre-generate files for java
before maven process.

adding this to configuration provides trivial remedy, so that we can
inject configuration values into environment and/or read it directly
from java.

especially useful for --version and --help cmdline.

Change-Id: I595ebfa4c83d5b18cb9db3abc18a8fb61b7b74d2
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M packaging/services/ovirt-engine-notifier/ovirt-engine-notifier.conf.in
M packaging/services/ovirt-engine/ovirt-engine.conf.in
M 
packaging/services/ovirt-fence-kdump-listener/ovirt-fence-kdump-listener.conf.in
M packaging/services/ovirt-websocket-proxy/ovirt-websocket-proxy.conf.in
4 files changed, 28 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/75/39375/1

diff --git 
a/packaging/services/ovirt-engine-notifier/ovirt-engine-notifier.conf.in 
b/packaging/services/ovirt-engine-notifier/ovirt-engine-notifier.conf.in
index dfca4a3..8e35718 100644
--- a/packaging/services/ovirt-engine-notifier/ovirt-engine-notifier.conf.in
+++ b/packaging/services/ovirt-engine-notifier/ovirt-engine-notifier.conf.in
@@ -4,6 +4,13 @@
 #
 
 #
+# Package information
+#
+PACKAGE_NAME="@PACKAGE_NAME@"
+PACKAGE_VERSION="@PACKAGE_VERSION@"
+PACKAGE_DISPLAY_VERSION="@DISPLAY_VERSION@"
+
+#
 # Comma separated list of keys
 # not to be logged.
 #
diff --git a/packaging/services/ovirt-engine/ovirt-engine.conf.in 
b/packaging/services/ovirt-engine/ovirt-engine.conf.in
index b419585..df6b775c 100644
--- a/packaging/services/ovirt-engine/ovirt-engine.conf.in
+++ b/packaging/services/ovirt-engine/ovirt-engine.conf.in
@@ -7,6 +7,13 @@
 #
 
 #
+# Package information
+#
+PACKAGE_NAME="@PACKAGE_NAME@"
+PACKAGE_VERSION="@PACKAGE_VERSION@"
+PACKAGE_DISPLAY_VERSION="@DISPLAY_VERSION@"
+
+#
 # Comma separated list of keys
 # not to be logged.
 #
diff --git 
a/packaging/services/ovirt-fence-kdump-listener/ovirt-fence-kdump-listener.conf.in
 
b/packaging/services/ovirt-fence-kdump-listener/ovirt-fence-kdump-listener.conf.in
index 2bde38c..ca4c71e 100644
--- 
a/packaging/services/ovirt-fence-kdump-listener/ovirt-fence-kdump-listener.conf.in
+++ 
b/packaging/services/ovirt-fence-kdump-listener/ovirt-fence-kdump-listener.conf.in
@@ -3,6 +3,13 @@
 #
 
 #
+# Package information
+#
+PACKAGE_NAME="@PACKAGE_NAME@"
+PACKAGE_VERSION="@PACKAGE_VERSION@"
+PACKAGE_DISPLAY_VERSION="@DISPLAY_VERSION@"
+
+#
 # Defines the IP address to receive fence_kdump messages on
 #
 # WARNING: If it's changed to specific address, please make sure the new
diff --git 
a/packaging/services/ovirt-websocket-proxy/ovirt-websocket-proxy.conf.in 
b/packaging/services/ovirt-websocket-proxy/ovirt-websocket-proxy.conf.in
index fc9f2bb..d6032af 100644
--- a/packaging/services/ovirt-websocket-proxy/ovirt-websocket-proxy.conf.in
+++ b/packaging/services/ovirt-websocket-proxy/ovirt-websocket-proxy.conf.in
@@ -1,4 +1,11 @@
 #
+# Package information
+#
+PACKAGE_NAME="@PACKAGE_NAME@"
+PACKAGE_VERSION="@PACKAGE_VERSION@"
+PACKAGE_DISPLAY_VERSION="@DISPLAY_VERSION@"
+
+#
 # This is a default configuration file for oVirt/RHEV-M websockets proxy
 #
 PROXY_HOST=*


-- 
To view, visit https://gerrit.ovirt.org/39375
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I595ebfa4c83d5b18cb9db3abc18a8fb61b7b74d2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
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