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>
packaging: move all packaging related to packaging

currently we manage packaging scripts all over the tree, sometimes in
different names than the file installed.

this patch collects all files to be under the packaging directory using
hierarchy similar to the installation and using same file naming.

Change-Id: I6d0bd7b8cd5381ddb80b4b2e5ee7df65bab487bc
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-cleanup: drop user as well

currently we drop database, but we create user as well,
no reason why not to attempt remove it.

Change-Id: I5cc437890d7cce686329435c12d82a50ab0df4b0
Signed-off-by: Alon Bar-Lev <alonbl@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>