packaging: refactored firewalld support

Added one service configuration template file for each service
that should be allowed by firewalld under
/usr/share/ovirt-engine/firewalld/*.

During firewalld configuration the template files will be processed
by processTemplate with provided ports.
Then the service files will be copied to /etc/firewalld/services
and enabled for the active zones.

The ovirt-aio service will be enabled only if the plugin is installed and
enabled.

Change-Id: If6a60e1667182f926f399e22bbfbb939e7171cb0
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
core: re-support broken apache proxy

apache proxy support was broken in:
I37156061cbdd, 'core: i18n splash screen.'

The changed cause invalid redirection and the following error message in
console log:
---
Exception while dispatching incoming RPC call:
java.lang.SecurityException: Blocked request without GWT base path
header (XSRF attack?)
---

Content:

1. Remove unused ovirt-engine.html (what was index.html) as it is
   superseded by index.jsp

2. Remove redundant welcome directive from web.xml

3. Rename /index.jsp to /ovirt-engine.jsp to be referenced by both
   apache and jboss.

4. Rename servlet mapping of /index to /ovirt-engine.

5. Modify 404.html pages to redirect to /ovirt-engine instead of
   /ovirt-engine.html

6. Remove reference of ovirt-engine.html from the proxy.

Change-Id: I7ac8feb720d73f0b1107b0bf0908930c525ea542
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
core: broken unit test

- Fixed a unit test that would break if a file didn't exist
in a certain environment.

Change-Id: I9d0627ea770a3194515b22b6d6cc5df5fe8df829
Signed-off-by: Alexander Wels <awels@redhat.com>
packaging: engine.conf: add quotes to selective keys

this to support potential space within value, while
sourcing in shell.

Change-Id: If7b0086fc2927449b54877e3cf1a18bd6e9480e0
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
core: config: support sensitive keys

do not print sensitive keys' value to log.

Change-Id: I8dc10fb3eeb1cc97a03cc160133a84d6b2a23d87
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
pki: move configuration from vdc_options to LocalConfig

root application serves pki resources, in order to support variable
location we need to be able to access these without accessing the
database.

in addition, there is no point in storing file locations within
database, as if we use cluster we have no grantee to have these at the
other node.

handling the root application is not included in this patch.

Change-Id: I1764d9ca7a8c677401f721b3d89f45deff9c1f26
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: serve root customizable location resources

resources are hard coded within root's web.xml, while in development
mode and in different distributions locations may be altered.

this change resolves resource name contained variables at ${xxx}
notation using LocalConfig.

Change-Id: I94f845d36bb075c238e50606187bc22316713cdd
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-setup re-write using otopi

Change-Id: I4d5e3ac7927802326e324c9b98ada75b421638aa
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
Signed-off-by: Alex Lourie <alourie@redhat.com>