engine: Allow engine to configure management network

The patch eliminates the need of ovirt-host-deploy to
create the management network on top of the installed
host.

The management network will be created once the host
is being activated by the logical network definition
in the data-center.

However, since the network creation relies on the
setupNetworks, no further action will be taken for
non-supported cluster versions.

Change-Id: Iaf82e10481e595d690e7ce894283b4ed5b9b3269
Bug-Url: https://bugzilla.redhat.com/891056
Signed-off-by: Moti Asayag <masayag@redhat.com>
core: split LocalConfig to allow code reuse

EngineLocalConfig - for engine.
NotifierLocalConfig - [future] for notifier.

Change-Id: I711d045b50b172e00455125363d870a61d2d6fa9
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 EngineLocalConfig

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>